palbaseDocs

Palbase Auth API · API

POST/admin/consents/refuse

Record a refusal

Records a refusal the person made outside the app — an unsubscribe link, an SMS STOP, a support request — for their account or a device. A server can only refuse: granting is the person's own app's alone.

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

Request body

installation_idstring · optionalA device no one is signed in on.
keysstring[] · required
reason"email_unsubscribe" | "sms_stop" | "support" · requiredHow it came: an unsubscribe link, an SMS STOP, a support request.
user_idstring · optionalThe account.
curl
curl -X POST "https://<your-ref>.palbase.studio/admin/consents/refuse" \
  -H "apikey: $PALBASE_SECRET_KEY" \
  -H "content-type: application/json" \
  -d '{"keys":["string"],"reason":"email_unsubscribe"}'

Responses

200The state after

400Validation failed or required field missing

401Missing, invalid, or expired credentials

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

503Downstream dependency unavailable (typically HIBP / breach service)

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

Operation AdminRefuseConsents of auth's contract.