Read how a project's report button is set up
curl --request GET \ --url https://example.com/api/v1/projects/example/bug-report-settings \ --header 'Authorization: Bearer <token>'Returns whether the project’s report button files reports, the sites allowed to send them, whether a visitor with no portal session is taken, the public key the button sends (null until the project turns reports on), the project’s own site as a suggested first domain and whether the caller may change these settings. The public key is read from the client’s page source by design. Requires projects.view and a project the caller reaches; a project out of reach answers 404, and a personal project, which takes no reports, answers 422.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Resource identifier (CUID2).
Resource identifier (CUID2).
Responses
Section titled “Responses”The project’s report button settings.
object
How a project’s report button is set up.
object
Whether a report from a visitor with no portal session is taken. Signed-in reporting from a site is not available yet, so false refuses every report until it is.
The sites allowed to send reports.
Whether the caller may change these settings.
Whether the report button may file reports.
The key the report button sends. It is read from the client’s page source by design; null until the project turns reports on.
The project’s own site as an allowed domain, to start the list from.
Example generated
{ "data": { "acceptsAnonymous": true, "allowedDomains": [ "example" ], "canManage": true, "isActive": true, "publicKey": "example", "suggestedDomain": "example" }}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" }}Invalid input.
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" }}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.
Chelsea is operated by Arepa Labs LLC