Skip to content

Authorize Decision

POST
/oauth/authorize/decision
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.

Media typeapplication/json
OAuthDecision
object
req
required
Req
string
org_id
Org Id
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"
}
]
}