Skip to content

Grant Consent

POST /oauth/authorize/consent

Approve 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.

FieldTypeNotes
paramsAuthorizationParamsrequired—
approvebooleanrequired—
organization_idstring (uuid) | nulloptional—
workspace_idstring (uuid) | nulloptional—
knowledge_setstring | nulloptional—
StatusDescriptionBody
200Successful Response—
422Validation ErrorHTTPValidationError

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.

Terminal window
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
}'