Skip to main content
Aiveth’s APIs use standard HTTP status codes. The body shape depends on the kind of API: the OAuth and OpenID Connect endpoints follow their specifications, and the server APIs use a detail field.

Request ID

Every answer has an X-Request-ID header. Aiveth writes the same ID on its own logs and on the activity log entries the request made. Quote it when you contact support. You may send your own X-Request-ID. Aiveth keeps it beside its own ID, so you can find your request either way, but the header in the answer is always Aiveth’s.

OAuth and OpenID Connect errors

The token, device authorization, revocation and introspection endpoints answer errors as JSON (RFC 6749 §5.2):
These answers carry Cache-Control: no-store. An invalid_client answer is 401 and carries WWW-Authenticate: Basic realm="aiveth". Errors at /oauth/authorize go back to the app’s registered return address as error and error_description query parameters. If the app or return address isn’t registered, Aiveth shows an error page and never redirects. See Login with Aiveth. /oauth/userinfo answers a token it won’t accept with 401, {"error": "invalid_token"}, and a WWW-Authenticate header.

Server API errors

The admin API, consent API, events API and Shared Signals streams answer errors with a detail field in plain English:

Validation errors

When a request body or parameter has the wrong shape, the answer is 422 with a list:
Each item has only loc (where), msg (the rule) and type. Aiveth never echoes the value you sent, so a password or token in a bad request never comes back in the answer. Some 422 answers have a plain-text detail instead, for a rule that isn’t about shape, such as "limit is 1 to 100.". The SDKs raise these as AivethError, with Aiveth’s words and the status.

Rate limits

Aiveth counts requests in one-minute windows. Past a limit, the answer is 429. Sign-in pages, codes and passwords have their own limits to stop guessing. See Attack protection. Some 429 answers include a Retry-After header with the seconds to wait. When there is none, wait until the next minute. Reuse tokens until they end instead of asking for new ones on every call.

Size limits