Skip to content

Device Decision

POST
/oauth/device/decision
curl --request POST \
--url https://engine.bindly.insure/oauth/device/decision \
--header 'Content-Type: application/json' \
--data '{ "user_code": "example", "org_id": "example", "approve": true }'

Approve/deny a device flow after the user consents in the Bindly app. USER from the verified Supabase JWT; ORG honored only after an organization_members check (same trust model as authorize_decision).

Media typeapplication/json
DeviceDecision
object
user_code
required
User Code
string
org_id
required
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"
}
]
}