palbaseDocs

Palbase Auth API · API

POST/auth/transactions/{id}/deny

Deny a transaction

Denies a pending transaction. The body is optional (its one field, reason, is). A transaction whose challenge has expired answers 410; one that is no longer pending answers 409.

Called by a signed-in user of your app, with their token and the publishable key.

Path

idstring · requiredTransaction ID (`tx_…`).

Request body

reasonstring · optionalFree text, recorded in the audit log.
curl
curl -X POST "https://<your-ref>.palbase.studio/auth/transactions/<id>/deny" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "content-type: application/json" \
  -d '{"reason":"string"}'

Responses

200Transaction denied

400Validation failed or required field missing

401Missing, invalid, or expired credentials

404Resource does not exist or is not visible to the caller

409Conflict with current resource state (duplicate, race)

410The transaction's challenge expired; the transaction is now `expired` (`transaction_expired`).

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

Operation DenyTransaction of auth's contract.