Create a ticket
From the CLI, run:source to cli. --diagnostics adds only the binary name, CLI
version, operating system, and architecture. Run logbrew support --help for
all flags.
The CLI makes a retry key from the exact command values. If the result is
uncertain, run the same command again. LogBrew then returns the first ticket
and does not create a second ticket. A changed value creates a new ticket.
From the API, send POST /api/support/tickets with source, category,
title, and description. To make a retry safe, create a retry key once for
the report and send it in the Idempotency-Key header. This example uses
synthetic values:
Idempotency-Key header is optional. Without it, a
repeated request can create another ticket.
Optional fields are project_id, environment, runtime, framework,
sdk_package, sdk_version, release, trace_id, event_id, and
diagnostics. Omit project_id when the problem is not project-specific. A
project_id must identify an active project of your account.
A successful request returns HTTP
200:
sup_. Use next as guidance for a person and
next_action for program control.
To delete a project, use project settings or logbrew projects delete. Do not
ask for project deletion in a support ticket.
Write a useful report
- Report one problem in each ticket.
- Choose the closest
category. Useotheronly when no category fits. - Name one symptom and one surface in the
title. - Write the
descriptionas steps, then the expected and observed result. - Add project, release, trace, or event IDs only when they identify the same failure.
diagnostics keys:
diagnostics is a JSON object of up to 16 KB after redaction. LogBrew replaces
a value with [redacted] when its key names a credential, a session, or an
email address. It also replaces text that looks like a credential, a URL, or a
local path. LogBrew also shortens long strings and limits nesting, keys, and
list items. Do not depend on this redaction. Remove private
data before you send the request.
Track the ticket
The list accepts
project_id, status, source, category, release, and
limit. The default limit is 100, and the maximum is 500. For cursor
pagination, send pagination=cursor. On later pages, repeat the same filters
and send cursor_time and cursor_id from next_cursor. The cursor ID is a
sup_ ticket ID. Stop when next_cursor is null. The CLI uses the
--project, --status, --source, --category, --release, --limit,
--pagination, --cursor-time, and --cursor-id flags.
Status values are open, routed, in_progress, waiting_on_user,
resolved, and closed. You can set only open or closed. A repeated close
or reopen request is a successful no-op, so you can retry the exact request.
Follow the returned status and next_action:
Add requested context
Reply when the ticket asks for context. That ticket has statuswaiting_on_user and next_action.code provide_context.
context and optional diagnostics. The context text must
contain 1 to 4,000 characters. Do not put credentials, URLs, host names, or
local paths in context. The API rejects that text with 422. Send a retry
key in the Idempotency-Key header. The context route requires this header.
The key contains 1 to 128 visible ASCII characters, without spaces. Use a new
key for each reply. Reuse a key only to retry the same reply.
The API accepts context while the ticket is open, routed, in_progress, or
waiting_on_user. It accepts 1 reply for each ticket state. After a reply,
wait for a status change before you send more context. A reply to a
waiting_on_user ticket sets the ticket to open. Read the returned status
instead of assuming this change.
A successful reply returns ticket_id, context_id, status, created_at,
next, and next_action. The context_id starts with ctx_. Read the ticket
again before you answer a later request.
GET /api/support/tickets/{ticket_id}/context returns the 20 most recent
context entries, oldest first. Each entry has context_id, context,
diagnostics, and created_at. This list has no cursor.
A reply to a resolved or closed ticket returns 422 with
code: "validation_failed". Reopen the ticket only if the user wants to
continue that support request. A next_action does not give an agent
permission to change account state.
Recover from errors
Error responses contain
error, code, next, and next_action. See
API errors.
