AdminErase wallet passes by credential uuid or email (GDPR erasure)

Erase wallet passes by credential uuid or email (GDPR erasure)

Deletes the wallet passes (AccessGrid cards, Google pass rows) for the given uuids and emails in both wallet workers and blocks re-issuance. Requires dual admin auth under JWT_AUTH_MODE=enforce; audited.

curl -X POST "https://api.spkey.co/admin/wallet-erasures" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "keyUuids": [
    "example_string"
  ],
  "emails": [
    "user@example.com"
  ]
}'
{
  "erasureId": "example_string",
  "google": {
    "erasedPasses": 3.14,
    "deletedCards": 3.14,
    "processorPurgePending": 3.14
  },
  "apple": {
    "erasedPasses": 3.14,
    "deletedCards": 3.14,
    "processorPurgePending": 3.14
  },
  "processorPurgePending": 3.14
}
POST
/admin/wallet-erasures
POST
Base URLstring

Target server for requests. Edit to use your own host.

⚠️Authentication configuration error - security schemes not found
Content-Typestring
Required

The media type of the request body

Options: application/json
Request Preview
Response

Response will appear here after sending the request

Body

application/json

Responses

erasureIdstring
Required
googleobject
Required
appleobject
Required
processorPurgePendingnumber
Required