Skip to content

Authorize Decision

POST
/api/v1/oauth/authorize/decision
curl --request POST \
--url https://example.com/api/v1/oauth/authorize/decision \
--header 'Content-Type: application/json' \
--data '{ "req": "example", "approve": true }'

Finalize an authorize request after the broker consents in the portal.

Guarded by the broker portal session, the principal (and therefore the brokerage the token will be scoped to) comes from the authenticated broker, never from the request body.

Media typeapplication/json
OAuthDecision
object
req
required
Req
string
approve
Approve
boolean
default: true

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}