Skip to content

File a bug report

POST
/bug-reports
Code sample: Shell / cURL
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.

Media typeapplication/json
object
browser

The sender’s browser.

string
<= 2000 characters
capture

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.

string
<= 34952538 characters
consoleErrors

What the page’s console showed, at most 100 entries.

Array
<= 100 items
customData

Anything else the page wants to tell, as named values, at most 40 keys.

object
key
additional properties
description

What happened, in the sender’s words.

string
<= 20000 characters
operatingSystem

The sender’s operating system.

string
<= 2000 characters
pageTitle

The title of that page.

string
<= 2000 characters
priority

How urgent the report is. Honored only when signed in; a report key files at NONE.

string
Allowed values: NONE LOW MEDIUM HIGH URGENT
projectId

The project the report goes to (CUID2). Required when signed in; ignored when the request carries a report key, which already names its project.

string
>= 1 characters
reportKey

What the sender calls this report. Sending it again with the same key opens no second task.

string
>= 1 characters <= 200 characters
reporter

Who the sender says they are. Shown in the report; never taken as its author.

object
email
string
<= 2000 characters
name
string
<= 2000 characters
title
required

A short title for the report.

string
>= 1 characters <= 500 characters
url

The address of the page it happened on.

string
<= 2000 characters
viewport

The size of the sender’s browser window, in pixels.

object
height
required
integer
<= 100000
width
required
integer
<= 100000

The same report was already filed.

Media typeapplication/json
object
data
required

The result of filing a bug report.

object
captureStored
required

False when a screenshot was sent and could not be stored; the task exists without it.

boolean
outcome
required

created when the report opened a task, duplicate when the same report was already filed.

string
Allowed values: created duplicate
projectId

The project the report went to. Absent when the request carried a report key.

string
taskId

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.

string | null
taskUrl

Link to the task in the Chelsea web app; null when taskId is. Absent when the request carried a report key.

string | null

Example

{
"data": {
"outcome": "created"
}
}

The report opened a task.

Media typeapplication/json
object
data
required

The result of filing a bug report.

object
captureStored
required

False when a screenshot was sent and could not be stored; the task exists without it.

boolean
outcome
required

created when the report opened a task, duplicate when the same report was already filed.

string
Allowed values: created duplicate
projectId

The project the report went to. Absent when the request carried a report key.

string
taskId

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.

string | null
taskUrl

Link to the task in the Chelsea web app; null when taskId is. Absent when the request carried a report key.

string | null

Example

{
"data": {
"outcome": "created"
}
}

Validation error. Parse failures include field paths and expectations.

Media typeapplication/json

Validation error with safe field paths and expected values; submitted values are never returned.

object
error
required
object
code
required

Stable machine-readable error code.

string
issues
Array<object>
object
expected
required
string
message
required
string
path
required
Array<string | number>
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Unauthorized.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Forbidden.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Not found.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

The report is larger than the intake accepts.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Invalid input, with field-level messages.

Media typeapplication/json

Error envelope with field-level messages.

object
error
required
object
code
required

Stable machine-readable error code.

string
fieldErrors
required

Message per offending field; a list item is keyed <field>.<index>.<key>.

object
key
additional properties
string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}

Rate limit exceeded. Wait for Retry-After before retrying.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}
RateLimit-Limit
string
/^\d+$/

Maximum requests in the current quota window.

RateLimit-Policy
string

Quota policy in requests and window seconds, for example 60;w=60.

RateLimit-Remaining
string
/^\d+$/

Requests left in this quota window (zero when blocked).

RateLimit-Reset
string
/^\d+$/

Seconds until the current quota window resets, when available from the rate-limit store.

Retry-After
string
/^\d+$/

Seconds until another request may be attempted.

This instance cannot receive reports right now.

Media typeapplication/json

Standard error envelope.

object
error
required
object
code
required

Stable machine-readable error code.

string
message
required

Human-readable error message.

string
status
required

HTTP status code, mirrored in the body.

integer
>= -9007199254740991 <= 9007199254740991

Example

{
"error": {
"code": "UNAUTHORIZED"
}
}