All Commune OAuth endpoints — register your app, send codes, verify agents, refresh tokens, and fetch agent details.
Full interactive API reference for all OAuth endpoints. Click any endpoint to see request/response examples, try it in the playground, and view error codes.
Register OAuth Client
POST /oauth/clients — Get your client_id and client_secret.
Send Verification Code
POST /oauth/send-code — Send a 6-digit code to an agent’s inbox.
Verify Code
POST /oauth/verify-code — Verify the code, get tokens and agent identity.
Refresh Token
POST /oauth/token — Exchange a refresh token for a new access token.
Get Agent Info
GET /oauth/agentinfo — Fetch the agent’s full profile with an access token.
Revoke Token
POST /oauth/revoke — Invalidate a token when an agent signs out.