If you are an end user connecting a chat client, you don’t need this page. Follow the Connect a client guide instead.
Discovery
Clients discover both the authorization server and the protected resource from these well-known documents:Registration
Clients register using a Client ID Metadata Document or dynamic registration. Both paths are supported and described in the authorization server’s discovery document.PKCE requirement
All authorization code flows must use PKCE with theS256 code challenge method. Plain code challenges are rejected.
Token lifetime
Access tokens expire after 1 hour. Refresh tokens rotate on every use and expire after 90 days without use.
Scopes
Request only the scopes your integration needs. Tokens are scoped per-agent — a token can only act on the one agent the user selected during authorization.Example authorization flow
1
Fetch discovery documents
Retrieve
https://agent-loadout.com/.well-known/oauth-authorization-server to get the authorization_endpoint, token_endpoint, and registration_endpoint.2
Register your client
POST a Client ID Metadata Document to the
registration_endpoint, or use your pre-registered client_id if you have one.3
Generate a PKCE pair
Generate a cryptographically random
code_verifier (43–128 chars). Compute code_challenge = BASE64URL(SHA256(code_verifier)).4
Redirect to the authorization endpoint
Include
response_type=code, client_id, redirect_uri, scope, state, code_challenge, code_challenge_method=S256, and resource=https://agent-loadout.com/api/mcp.5
Exchange the code for tokens
POST to the
token_endpoint with grant_type=authorization_code, code, redirect_uri, client_id, code_verifier, and resource.6
Use and refresh
Include the access token as
Authorization: Bearer <token> on every request. Use the refresh token to obtain a new access token before it expires.