cURL
curl --request POST \ --url https://api.truthlocks.com/v1/attestations/{id}/revoke \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "reason": "Certificate holder no longer employed" } '
{ "id": "660e8400-e29b-41d4-a716-446655440001", "status": "REVOKED", "revoked_at": "2026-01-13T15:00:00Z", "revocation_reason": "Certificate holder no longer employed" }
Revokes an attestation, marking it as invalid for future verification. This action is recorded in the transparency log and cannot be undone.
API key for machine-to-machine authentication
Optional reason for revocation
Attestation revoked
VALID
REVOKED
SUPERSEDED