Palbase Auth API · API
/auth/device/verifyApprove or deny a device authorization request
Approve or deny a pending device authorization request for the
authenticated user. Form-encoded body with user_code and
action=approve|deny. A device that asked for a recent sign-in (max_age)
is approved only from one that recent: 401 insufficient_user_authentication
otherwise (WWW-Authenticate names max_age), and the code stays pending.
Called by a signed-in user of your app, with their token and the publishable key.
curl -X POST "https://<your-ref>.palbase.studio/auth/device/verify" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN" \
-H "content-type: application/x-www-form-urlencoded" \
--data-binary @fileResponses
200Device approved or denied
400Validation failed or required field missing
401Missing, invalid, or expired credentials
403Authenticated but not permitted (banned, hook denial, role mismatch)
404Resource does not exist or is not visible to the caller
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation DeviceVerifySubmit of auth's contract.