/.well-known/oauth-authorization-server
Authorization server metadata (RFC 8414)
Responses 200 · 401 · 429
200 Success
object
401 Problem details (401)
429 Problem details (429)
The OAuth 2.1 authorization server: authorization code + PKCE, refresh rotation, client credentials, the device grant, revocation and introspection. Errors are RFC 6749 `{error, error_description}`.
← All groups/.well-known/oauth-authorization-server
200 Success
object
401 Problem details (401)
429 Problem details (429)
/.well-known/oauth-protected-resource
200 Success
| authorization_servers | [string (uri)] | |
| bearer_methods_supported | [string] | |
| resource | string (uri) | |
| scopes_supported | [string] |
401 Problem details (401)
429 Problem details (429)
/.well-known/oauth-protected-resource/mcp
200 Success
| authorization_servers | [string (uri)] | |
| bearer_methods_supported | [string] | |
| resource | string (uri) | |
| scopes_supported | [string] |
401 Problem details (401)
429 Problem details (429)
/oauth/authorize
Signed in; PKCE S256 required. Answers HTML; on a decision it redirects to the client.
| Parameter | In | Type | Description |
|---|---|---|---|
| response_type * | query | "code" | |
| client_id * | query | string | |
| redirect_uri | query | string (uri) | |
| scope | query | string | |
| state | query | string | |
| code_challenge * | query | string | |
| code_challenge_method * | query | "S256" | |
| resource | query | string (uri) | |
| account_id | query | string (uuid) |
200 Success
string
401 Problem details (401)
429 Problem details (429)
/oauth/authorize
| account_id | string (uuid) | |
| decision * | "allow" | "deny" | |
| mailbox_ids | [string (uuid)] | |
| scopes | [string] | |
| workspace_ids | [string (uuid)] |
302 Redirect
401 Problem details (401)
429 Problem details (429)
/oauth/device
| Parameter | In | Type | Description |
|---|---|---|---|
| user_code | query | string |
200 Success
string
401 Problem details (401)
429 Problem details (429)
/oauth/device/approve
| account_id | string (uuid) | |
| decision * | "allow" | "deny" | |
| scopes | [string] | |
| user_code * | string | |
| workspace_ids | [string (uuid)] |
200 Success
string
401 Problem details (401)
429 Problem details (429)
/oauth/device_authorization
| client_id * | string | |
| scope | string |
200 Success
| device_code | string | |
| expires_in | integer | |
| interval | integer | |
| user_code | string | |
| verification_uri | string (uri) | |
| verification_uri_complete | string (uri) |
401 Problem details (401)
429 Problem details (429)
/oauth/introspect
A client learns about its own tokens only.
| client_id | string | |
| client_secret | string | |
| token * | string |
200 Success
OAuthIntrospection
| account_id | string (uuid) | |
| active * | boolean | |
| aud | string | |
| client_id | string | |
| exp | integer | |
| grant_type | string | |
| iat | integer | |
| iss | string | |
| mailbox_ids | [string (uuid)] | |
| scope | string | |
| sub | string | null | |
| token_type | string | |
| username | string | null | |
| workspace_ids | [string (uuid)] |
401 Problem details (401)
429 Problem details (429)
/oauth/register
| client_name | string | |
| client_uri | string (uri) | |
| logo_uri | string (uri) | |
| redirect_uris * | [string (uri)] | |
| scope | string |
201 Success
| client_id | string | |
| client_id_issued_at | integer | |
| client_name | string | |
| grant_types | [string] | |
| redirect_uris | [string] | |
| scope | string | |
| token_endpoint_auth_method | string |
401 Problem details (401)
429 Too many registrations
Problem
| code * | string | Stable machine-readable code (snake_case) |
| detail | string | A sentence an app can show |
| error | object | string | Legacy member kept for existing clients (deprecated) |
| errors | object | Field → messages, for validation errors |
| instance | string | The request path |
| message | string | Legacy member of the mobile sign-in errors (deprecated) |
| request_id | string | |
| status * | integer | |
| title * | string | |
| type | string (uri) | A URI identifying the problem type (https://recordsender.com/problems/<code>) |
/oauth/revoke
| client_id | string | |
| client_secret | string | |
| token * | string | |
| token_type_hint | "access_token" | "refresh_token" |
200 Success
object
401 Problem details (401)
429 Problem details (429)
/oauth/token
grant_type = authorization_code (code, code_verifier, redirect_uri), refresh_token (refresh_token, scope to narrow), client_credentials (account_id, scope) or urn:ietf:params:oauth:grant-type:device_code (device_code).
| account_id | string (uuid) | |
| client_id | string | |
| client_secret | string | |
| code | string | |
| code_verifier | string | |
| device_code | string | |
| grant_type * | string | |
| redirect_uri | string | |
| refresh_token | string | |
| resource | string | |
| scope | string |
200 Success
OAuthToken
| access_token * | string | rso_at_…, one hour |
| expires_in * | integer | |
| refresh_token | string | rso_rt_…, 30 days; rotated on each use |
| scope | string | |
| token_type * | "Bearer" |
400 invalid_grant, invalid_request, invalid_scope, authorization_pending, slow_down, expired_token, access_denied, unsupported_grant_type
Problem
| code * | string | Stable machine-readable code (snake_case) |
| detail | string | A sentence an app can show |
| error | object | string | Legacy member kept for existing clients (deprecated) |
| errors | object | Field → messages, for validation errors |
| instance | string | The request path |
| message | string | Legacy member of the mobile sign-in errors (deprecated) |
| request_id | string | |
| status * | integer | |
| title * | string | |
| type | string (uri) | A URI identifying the problem type (https://recordsender.com/problems/<code>) |
401 Problem details (401)
429 Problem details (429)