Palbase Auth API · API
/auth/devices/{id}/verifyVerify a request signed by a device key
Checks an App Attest assertion made with the device's stored key and advances the device's signature counter. payload is what the assertion signs — the authenticator data (37 bytes) followed by the clientDataHash (32 bytes) — and signature the assertion's signature; the counter is read from the authenticator data and must exceed the last one accepted. The device must belong to the signed-in user, be verified and have a key. A payload of any other shape answers 400 invalid_payload. A refused proof is 403, not 401 (the session is fine): signature_invalid for a bad signature, assertion_stale for a counter that did not advance — retry with a fresh assertion.
Called by a signed-in user of your app, with their token and the publishable key.
Path
idstring · requiredDevice ID (`dev_…`).Request body
payloadstring (byte) · requiredThe signed payload, base64: the assertion's authenticator data (37 bytes, signature counter big-endian at bytes 33–36) followed by the clientDataHash (32 bytes) — 69 bytes exactly.signaturestring (byte) · requiredASN.1 DER ECDSA signature, base64.curl -X POST "https://<your-ref>.palbase.studio/auth/devices/<id>/verify" \
-H "apikey: $PALBASE_PUBLISHABLE_KEY" \
-H "authorization: Bearer $USER_ACCESS_TOKEN" \
-H "content-type: application/json" \
-d '{"payload":"string","signature":"string"}'Responses
200Signature verified
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 VerifyDeviceSignature of auth's contract.