For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/auth/oauth-consent.md.
Record a consent decision
POST/oauth/consent
The signed-in user's answer to the consent screen. Approving records
the grant and mints an authorization code; denying returns the client
to its redirect with error=access_denied.
The authorize parameters are repeated here and validated again, because nothing but the user's browser carries them between the two requests.
Returns where the browser should go rather than redirecting, since the consent screen issues this as a fetch.
Request
Responses
- 200
- 400
- 401
- 403
Decision recorded
The authorize parameters no longer validate.
Not authenticated
error=login_required — approving a sensitive scope such as
mcp:trade needs a credential presented within the last few
minutes, and this session's is older.