Grant Consent
POST /oauth/authorize/consentApprove or refuse, and answer with where to send the browser.
Authenticated by the console’s ordinary bearer credential, which is also the CSRF
answer: it travels in a header the browser does not attach on its own, so a cross-site
form cannot forge this call. The refresh cookie is HttpOnly and cannot reach here
without one.
Request body — ConsentRequest
Section titled “Request body — ConsentRequest”| Field | Type | Notes | |
|---|---|---|---|
params | AuthorizationParams | required | — |
approve | boolean | required | — |
organization_id | string (uuid) | null | optional | — |
workspace_id | string (uuid) | null | optional | — |
knowledge_set | string | null | optional | — |
Responses
Section titled “Responses”| Status | Description | Body |
|---|---|---|
200 | Successful Response | — |
422 | Validation Error | HTTPValidationError |
Example
Section titled “Example”The body shows the fields the schema always carries. Which combination is legal is a service rule the schema cannot express, so read the description above before copying this.
curl -X POST https://your-deployment.example.com/oauth/authorize/consent \ -H "Authorization: Bearer $COBRE_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "params": { "client_id": "string", "redirect_uri": "string", "code_challenge": "string" }, "approve": true }'