OAuth | API & MCP Reference | Archera

OAuth 2.0 authorization endpoints for third-party integrations

Redirect to React consent page.Direct link to heading

Get /oauth/authorize

Query Parameters (handled by Authlib):

Returns:

Redirect to React consent page with OAuth params and client info

Responses


Handle user authorization decision from React consent page.Direct link to heading

Post /oauth/authorize

Query Parameters:

All OAuth params from GET (client_id, redirect_uri, state, etc.)

Form Parameters:

Returns:

Redirect to client with authorization code or error

Responses


Issue access tokens.Direct link to heading

Post /oauth/token

Form Parameters (authorization_code grant):

Form Parameters (refresh_token grant):

Returns:

JSON response with access_token (JWT), refresh_token, expires_in, etc.

Responses


List all active OAuth sessions for the current user.Direct link to heading

Get /oauth/sessions

Returns:

List of active sessions including client info, creation time, and scope

Responses


Revoke a specific OAuth session by token ID.Direct link to heading

Delete /oauth/sessions/{token_id}

Args:

Returns:

Path parameters

Responses


Revoke all OAuth sessions (refresh tokens) for the current user across all clients.Direct link to heading

Post /oauth/revoke-all

Returns:

JSON with message and count of revoked sessions

Responses


Revoke an access token or refresh token.Direct link to heading

Post /oauth/revoke

Form Parameters:

Returns:

Responses


Post /oauth/register

Responses


Last updated 13 hours ago.