Skip to main content
All Barekey API errors use this response shape:
The code field is stable and machine-readable. The message field is human-readable and may change between releases — don’t parse it.

Error code reference

Authentication and authorization

Request validation

Variables

Billing and usage

CLI device flow

Token management


Handling errors in code

SDK

The SDK throws a BarekeyError on any non-2xx response:

HTTP / curl

Check the error.code field in the response body:

Retry guidance