Agents
Exchange an authorization code or a refresh token for an access token
grant_type=authorization_code (with the PKCE code_verifier) or grant_type=refresh_token. The access token is an ES256 JWT that lives 15 minutes and is verified locally against /.well-known/jwks.json; it carries the tenant, the application the grant is bound to, the grant, the scopes and aud. A refresh token rotates: every refresh returns a new one and retires the old, and presenting a retired one again revokes the whole grant (a client racing itself within ten seconds is only refused). Errors use the RFC 6749 envelope.
post/oauth/agent/token
Request
- Base URL: https://api.customdomain.ai
- URL: https://api.customdomain.ai/oauth/agent/token
- Auth: none required
Request body
Response
The tokens
Changes
No recorded changes to this operation across all 1 revision of this API.