Skip to main content
These are the endpoints your apps call to sign people in. The discovery document lists them all, so an OpenID Connect library needs only the issuer address, https://accounts.aiveth.com.

Discovery

The main fields of the answer: On a custom domain, the document names that domain as the issuer and in every endpoint.

Authorize

Starts a sign-in in the person’s browser.
string
required
Must be code.
string
required
Your app’s client ID.
string
required
One of the app’s registered return addresses, matched exactly. A loopback address registered without a port matches on any port.
string
required
Space-separated. Must include openid. Allowed: openid, email, profile, roles, groups, offline_access.
string
required
The base64url-encoded SHA-256 of your code_verifier.
string
required
Must be S256.
string
Returned unchanged. Use it to stop cross-site request forgery.
string
Put in the ID token unchanged. Use it to stop replay.
string
none (never show a screen), login (prove it’s them now). consent and select_account are accepted. none must be alone.
integer
The longest time, in seconds, since the person last proved it’s them. 0 is the same as prompt=login.
string
urn:aiveth:acr:2fa to require a second factor proved in this session. Unknown values are ignored.
Success: a 302 redirect to redirect_uri with code, iss (RFC 9207) and state. The code lasts 2 minutes and works once. Errors: a redirect with error, error_description and state: unsupported_response_type, invalid_scope, invalid_request, access_denied, login_required, interaction_required, unmet_authentication_requirements. An unknown app or unregistered return address gets an error page, never a redirect. See Login with Aiveth.

Token

App authentication: a server app sends its client ID and secret with HTTP Basic (client_secret_basic) or as client_id and client_secret in the form (client_secret_post). A public app sends only client_id and must not send a secret. DPoP: for a person’s grant, send a DPoP header to get a bound token. See DPoP.

Authorization code

Refresh token

Client credentials (machine apps)

See Machine-to-machine.

Device code

See Device login.

Other grants

The jwt-bearer and token-exchange grants serve AI agents, server-to-server calls between your MCP servers, and connected accounts. See Agent tokens.

Answer

  • token_type is DPoP when the token is bound to a DPoP key.
  • id_token is present for person grants. A machine token has none.
  • refresh_token is present only when the scope includes offline_access.
Every answer carries Cache-Control: no-store. Errors are listed in Errors and limits.

Userinfo

For a DPoP-bound token, use Authorization: DPoP <access token> with a DPoP proof header. Success: 200 with sub and the claims for the token’s scopes, as in the ID token. See Tokens and claims. Error: 401, {"error": "invalid_token"}, with a WWW-Authenticate header. The token is unknown, expired, ended, or presented with the wrong scheme.

JWKS

Aiveth’s public signing keys as a JSON Web Key Set. Use them to verify ID tokens, machine tokens, logout tokens and other JWTs Aiveth signs. Cache the set, and fetch it again when a token names a key ID you don’t have.

Revoke

Authenticate the app as at the token endpoint. An app can end only its own tokens. Answer: always 200 with {}, whether or not there was anything to end (RFC 7009). A wrong app or secret gets 401 invalid_client. Ending a refresh token ends the whole sign-in.

Logout

With a valid hint for this session, the person is signed out at once and redirected with 303. Without one, Aiveth asks the person first. See Logout.

Device authorization

Answer: device_code, user_code, verification_uri, verification_uri_complete, expires_in (300) and interval (5). Device login must be turned on for the app, or the answer is unauthorized_client. See Device login.

Introspect

For AI agent tokens only (RFC 7662). The answer is {"active": false} for any token Aiveth wouldn’t issue again now: bad or expired, an agent stopped or paused, a person who can no longer sign in. An active answer has active, token_type and the token’s sub, client_id, scope, aud, iss, exp, iat, org_id, and act when present. See Agent tokens. App access tokens are opaque; check them at userinfo instead.

Browser calls

Single-page apps may call the token, userinfo and revoke endpoints, the discovery document and the JWKS from a registered web origin. See Single-page apps.