Authorize Decision
POST
/api/v1/oauth/authorize/decision
const url = 'https://example.com/api/v1/oauth/authorize/decision';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"req":"example","approve":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
OAuthDecision
object
req
required
Req
string
approve
Approve
boolean
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ]}