Error Response Format
Clara API errors return a JSON body with at minimum amessage field:
details array or an error string field depending on the API version.
This page describes Clara API responses from
public-api.*.clara.com. Missing pages on developers.clara.team are documentation-site errors and may be rendered as HTML by the docs platform.HTTP Status Codes
Response body examples by status code
400 — Bad request (invalid parameter)Auth Errors (401 / 403)
401 — Token expired
Tokens have a finite lifetime (expires_in seconds). When one expires, every request returns 401.
/oauth/token and retry. In production, refresh proactively before expiry rather than waiting for a 401.
401 — Missing certificate
If the mTLS handshake fails because no client certificate is presented:--cert and --key are included in every request. See Troubleshooting for certificate debugging steps.
403 — Insufficient role
A valid token from a user role that doesn’t have access to the endpoint. Fix: Confirm the API user has theCOMPANY_OWNER or required role. Role requirements vary by endpoint.
Business Error Codes
Clara API returns business-specific error codes for validation failures. These appear in thecode or message field of the response body.
Cards
Users
Transactions / Filtering
Digital Account (Brazil)
Rate Limits
Requests are rate-limited per client certificate across all endpoints. Limits are applied separately to read (GET) and write (POST, PATCH, DELETE) operations — write endpoints have lower limits.
When you exceed the limit, the API returns 429 Too Many Requests:
