File a bug report
curl --request POST \ --url https://example.com/api/v1/bug-reports \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "browser": "example", "capture": "example", "consoleErrors": [ "example" ], "customData": { "additionalProperty": "example" }, "description": "example", "operatingSystem": "example", "pageTitle": "example", "priority": "NONE", "projectId": "example", "reportKey": "example", "reporter": { "email": "example", "name": "example" }, "title": "example", "url": "example", "viewport": { "height": 1, "width": 1 } }'Opens a task in a project from a bug report: the page, the browser, the console, custom data and a screenshot. Two ways in. Signed in with a bearer token, an app token or a session, the report is the caller’s own and projectId is required; it needs tasks.create and the project in the caller’s reach. From a client’s site, send the project’s public key in the X-Bug-Report-Key header and no other credential: the key names the project, the browser’s Origin must be on the key’s allow-list of domains, and the report is filed by the system at no priority. A request with the key header is always a key request. Sending the same report again, with the same reportKey or the same content within ten minutes, answers 200 with outcome duplicate and opens no second task. Answers 201 with outcome created for a new task. A key request learns only outcome and captureStored, never a task, link or project. A key is held to 30 requests a minute per site, 60 an hour per source IP, each counted per key, and 100 reports and 100 MB of screenshots a day for the project, past which it answers 429. A project that takes reports only from a signed-in contact answers a key request with no session 401; the report button cannot send a session yet, so the project’s acceptsAnonymous stays true for now. Any origin may call it; the key allow-list is the gate.
Authorizations
Section titled “Authorizations”Request Body
Section titled “Request Body”object
The sender’s browser.
A screenshot as base64 (PNG, JPEG or WebP), with or without a data: prefix. A report whose screenshot cannot be stored is still filed and answers captureStored: false.
What the page’s console showed, at most 100 entries.
Anything else the page wants to tell, as named values, at most 40 keys.
object
What happened, in the sender’s words.
The sender’s operating system.
The title of that page.
How urgent the report is. Honored only when signed in; a report key files at NONE.
The project the report goes to (CUID2). Required when signed in; ignored when the request carries a report key, which already names its project.
What the sender calls this report. Sending it again with the same key opens no second task.
Who the sender says they are. Shown in the report; never taken as its author.
object
A short title for the report.
The address of the page it happened on.
The size of the sender’s browser window, in pixels.
object
Responses
Section titled “Responses”The same report was already filed.
object
The result of filing a bug report.
object
False when a screenshot was sent and could not be stored; the task exists without it.
created when the report opened a task, duplicate when the same report was already filed.
The project the report went to. Absent when the request carried a report key.
The task of the report; null for a duplicate whose task is not known yet. Absent when the request carried a report key, which learns nothing about the workspace.
Link to the task in the Chelsea web app; null when taskId is. Absent when the request carried a report key.
Example
{ "data": { "outcome": "created" }}The report opened a task.
object
The result of filing a bug report.
object
False when a screenshot was sent and could not be stored; the task exists without it.
created when the report opened a task, duplicate when the same report was already filed.
The project the report went to. Absent when the request carried a report key.
The task of the report; null for a duplicate whose task is not known yet. Absent when the request carried a report key, which learns nothing about the workspace.
Link to the task in the Chelsea web app; null when taskId is. Absent when the request carried a report key.
Example
{ "data": { "outcome": "created" }}Validation error. Parse failures include field paths and expectations.
Validation error with safe field paths and expected values; submitted values are never returned.
object
object
Stable machine-readable error code.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}The report is larger than the intake accepts.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Invalid input, with field-level messages.
Error envelope with field-level messages.
object
object
Stable machine-readable error code.
Message per offending field; a list item is keyed <field>.<index>.<key>.
object
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
This instance cannot receive reports right now.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Chelsea is operated by Arepa Labs LLC