The GetQR API is in beta and is available to selected workspaces. Details may change before the general release.
2xx. Failed requests return 4xx or 5xx with a JSON body that explains what went wrong.
Error format
Every error has the same shape: a stable code, a human-readable message and a link to that code’s description.string
required
Stable, machine-readable error code. Use it in your code instead of the message. See Error codes.
string
required
Human-readable description of the problem. The wording can change.
string
required
Link to the description of the error code in the API documentation in your GetQR account.
Error codes
Validation errors
When the body or query parameters fail validation, the API answers422. The message describes the first invalid field as <issue>: <field>: <details>:
link.url.
Handle errors
- Branch on
error.code, not onerror.message. - Don’t retry
4xxerrors unchanged: fix the request first. The exceptions are a409for a request still in progress and429. - On
429, wait for the number of seconds in theRetry-Afterheader. See Rate limits. - Retry
5xxerrors with exponential backoff.
Common issues
Every request returns 404 "This endpoint is not available."
Every request returns 404 "This endpoint is not available."
The API is in beta and isn’t enabled for your workspace yet.
404 "This endpoint does not exist."
404 "This endpoint does not exist."
The path is wrong. Check it against the endpoint pages, and that it starts with
/api/v1/.403 "Access denied: This account does not have an active subscription."
403 "Access denied: This account does not have an active subscription."
The workspace owner’s subscription has ended. The API key works again as soon as the owner resubscribes.
403 "API access is not available for this role."
403 "API access is not available for this role."
Your role in the workspace is viewer. Only the workspace owner and editors can use the API.