AdminPurge projection dead-letter queue records

Purge projection dead-letter queue records

Deletes failed-projection records from the DLQ bucket, optionally scoped by projector and/or age. Clears the queue/dashboard count — it does NOT replay. The underlying events remain in the event store, so a purge is recoverable via /admin/resync-projections. Requires dual auth: X-Admin-API-Key + JWT.

curl -X POST "https://api.spkey.co/admin/dlq/purge?projector=example_string&olderThanDays=example_string" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN (JWT)" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "success": true,
  "configured": true,
  "scanned": 3.14,
  "deleted": 3.14,
  "truncated": true,
  "projector": "null",
  "olderThanDays": "null",
  "auditLogPath": "null"
}
POST
/admin/dlq/purge
POST
Base URLstring

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

Bearer Token (JWT)
Bearer Tokenstring
Required

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.
API Key (header: X-API-Key)
X-API-Keystring
Required

API key for B2B organization access. Provided during organization onboarding.

API key for B2B organization access. Provided during organization onboarding.
query
projectorstring

Limit the purge to one projector id (e.g. "spacetimedb"). Omit to purge all.

query
olderThanDaysstring

Only delete records older than this many days. Omit to purge all ages.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token (JWT). JWT token from SmartphoneKey authentication. Identifies the B2C user or B2B service.

header
X-API-Keystring
Required

API Key for authentication. API key for B2B organization access. Provided during organization onboarding.

Query Parameters

projectorstring

Limit the purge to one projector id (e.g. "spacetimedb"). Omit to purge all.

olderThanDaysstring

Only delete records older than this many days. Omit to purge all ages.

Responses

successboolean
Required
configuredboolean
Required
scannednumber
Required
deletednumber
Required
truncatedboolean
Required
projectorstring,null
Required
olderThanDaysnumber,null
Required
auditLogPathstring,null
Required