revoke
PQSafe AgentPay API Reference v0.1.0
PQSafe AgentPay API Reference / revoke
Function: revoke()
revoke(
_envelopeId,_reason,_config):Promise<RevocationRecord>
Defined in: pqsafe/agent-pay/src/sprint2/revocation.ts:126
Revoke a specific envelope (Layer 3 — granular per-envelope revocation).
Sprint 3 implementation will:
- POST /v1/issuers/:id/revocations with envelopeId + reason.
- Hosted service writes revocation record to Postgres + triggers on-chain bit flip.
- Returns the revocation record with confirmation.
Parameters
_envelopeId
string
_reason
string
_config
Returns
Promise<RevocationRecord>
Throws
‘Sprint 2 — implementation queued’ until Sprint 3 ships.