Authorize Decision
POST
/oauth/authorize/decision
const url = 'https://engine.bindly.insure/oauth/authorize/decision';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"req":"example","org_id":"","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://engine.bindly.insure/oauth/authorize/decision \ --header 'Content-Type: application/json' \ --data '{ "req": "example", "org_id": "", "approve": true }'Finalize an authorize request after the user consents in the Bindly app.
The USER comes from the verified Supabase JWT; the ORG comes from the
body but is only honored after an organization_members check, a
forged org_id gets a 403, never a token.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
OAuthDecision
object
req
required
Req
string
org_id
Org Id
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" } ]}