API reference
Oauth
Connected apps: the consent screen of the OAuth sign-in used by the /mcp endpoint (ChatGPT, Claude and other MCP clients).
Sign in and allow (or deny) a connected app
POST/api/v1/oauth/approve
Signs the person in (without opening a panel session) and sends the app back with a code.
Parameters
| Name | In |
|---|---|
client_id | query |
code_challenge | query |
code_challenge_method | query |
redirect_uri | query |
resource | query |
response_type | query |
scope | query |
state | query |
Request body
| Field | Type |
|---|---|
as | string |
code | string |
deny | boolean |
password | string |
query | string |
read_only | boolean |
username | string |
Responses
- 200 OK
Body
Field Type mfa_requiredboolean - 400 Bad Request: invalid-request, validation
- 401 Unauthorized: invalid-code, invalid-credentials
- 500 Internal Server Error: internal
Describe a connected app's authorization request (consent screen)
GET/api/v1/oauth/request
Tells the consent screen (the SPA at /oauth/authorize) who asks, or why the request is invalid.
Parameters
| Name | In |
|---|---|
client_id | query |
code_challenge | query |
code_challenge_method | query |
redirect_uri | query |
resource | query |
response_type | query |
scope | query |
state | query |
Responses
- 200 OK
Body
Field Type client_hoststring client_namestring panel_namestring read_onlyboolean serverstring