ServicesApplicationsHTTP APIUnknown

Decide_consent

POST
/api/apps/consent/{challenge}

Decide this user authorization. Required installation access must be active before approval. Return the browser to redirectTo to complete OAuth.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

challenge*string

Request Body

application/json
  1. body

Accept only the listed requested scopes, or reject the authorization.

approve*boolean
scopes*array<string>

Response Body

Success

application/json
  1. response

Return the initiating browser to this authorization-server URL to finish consent.

redirectTo*string
curl -X POST 'https://api.spiraldb.dev/api/apps/consent/string' \  -H 'Content-Type: application/json' \  -d '{  "approve": true,  "scopes": [    "string"  ]}'
{  "redirectTo": "string"}