Device Decision
POST
/oauth/device/decision
const url = 'https://engine.bindly.insure/oauth/device/decision';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"user_code":"example","org_id":"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://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).
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
DeviceDecision
object
user_code
required
User Code
string
org_id
required
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" } ]}