palbaseDocs

Palbase Auth API · API

POST/admin/attest/devices/observations

Record App Attest monitoring counts

Adds one batch of the customer runtime's counts (capable, incapable, unknown, no SDK) to the current hour's totals. Negative counts are refused. A batch that cannot be stored is answered as such (500, or 503 while the database is unavailable), so the runtime knows to send it again.

Called by your server, with the project's secret key.

Request body

capableinteger (int64) · optional
incapableinteger (int64) · optional
no_sdkinteger (int64) · optional
unknowninteger (int64) · optional
verifiedinteger (int64) · optionalRequests with evidence that verified: they pass under enforce.
refusedinteger (int64) · optionalRequests with evidence that would be refused under enforce.
curl
curl -X POST "https://<your-ref>.palbase.studio/admin/attest/devices/observations" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"capable":0,"incapable":0,"no_sdk":0,"unknown":0,"verified":0,"refused":0}'

Responses

204Recorded

400Validation failed or required field missing

401Missing, invalid, or expired credentials

403Authenticated but not permitted (banned, hook denial, role mismatch)

500The counts could not be stored; nothing was counted.

503Downstream dependency unavailable (typically HIBP / breach service)

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation AdminRecordAttestObservations of auth's contract.