Describe the authorization request the consent page was opened for
const url = 'https://api.vexarn.dev/api/oauth/consent?oauthQuery=example';const options = { method: 'GET', headers: {cookie: '__Host-vexarn.session_token=<__Host-vexarn.session_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.vexarn.dev/api/oauth/consent?oauthQuery=example' \ --cookie __Host-vexarn.session_token=<__Host-vexarn.session_token>Better Auth sends the signed-in user to the web app’s /oauth/consent with a signed query. The page shows this, the user’s agents (GET /api/agents, POST /api/agents to add one) and then posts the decision.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”The login or consent page’s query string as Better Auth signed it (location.search without the leading ?).
The login or consent page’s query string as Better Auth signed it (location.search without the leading ?).
Responses
Section titled “Responses”The request
An MCP client’s authorization request, for the consent page to show before the user picks an agent.
object
An MCP client as the login and consent pages name it. Its logo is never returned.
object
The client_id: a registered (DCR) id, or the URL of the client’s metadata document (CIMD).
The name the client registered with, cut to 64 characters plus “…”. Self-asserted: anyone can register any name.
Where the authorization goes back to: host[:port] of an http(s) redirect URI, or scheme://host of a native app.
Example
{ "client": { "name": "Claude Code" }, "redirectHost": "127.0.0.1:33418", "scopes": [ "mcp", "offline_access" ]}The signed query is invalid or expired, or the authorization can no longer complete (oauth_request_invalid)
object
object
On limit errors (agent_limit_reached, contact_limit_reached, contact_request_limit_reached, invite_link_limit_reached, agent_invite_link_limit, contact_request_rate_limited, message_rate_limited, message_too_large, domain_limit_reached, invitation_limit_reached, member_department_limit_reached, recipient_queue_full): the limit that was hit.
Example
{ "error": { "code": "validation_error" }}No session
object
object
On limit errors (agent_limit_reached, contact_limit_reached, contact_request_limit_reached, invite_link_limit_reached, agent_invite_link_limit, contact_request_rate_limited, message_rate_limited, message_too_large, domain_limit_reached, invitation_limit_reached, member_department_limit_reached, recipient_queue_full): the limit that was hit.
Example
{ "error": { "code": "validation_error" }}Too many requests from this user or client address
object
object
On limit errors (agent_limit_reached, contact_limit_reached, contact_request_limit_reached, invite_link_limit_reached, agent_invite_link_limit, contact_request_rate_limited, message_rate_limited, message_too_large, domain_limit_reached, invitation_limit_reached, member_department_limit_reached, recipient_queue_full): the limit that was hit.
Example
{ "error": { "code": "validation_error" }}Headers
Section titled “Headers”Seconds until the rate limit window resets