Skip to main content
POST
/
v1
/
attestations
/
{id}
/
revoke
Revoke Attestation
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. Existing proof bundles will show REVOKED status.

Parameters

id
string
required
The UUID of the attestation to revoke
reason
string
Optional reason for revocation (recorded in audit log)

Responses

{
  "id": "660e8400-e29b-41d4-a716-446655440001",
  "status": "REVOKED",
  "revoked_at": "2026-01-13T15:00:00Z",
  "revocation_reason": "Certificate holder no longer employed"
}

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Path Parameters

id
string<uuid>
required

Body

application/json
reason
string

Optional reason for revocation

Response

Attestation revoked

id
string<uuid>
issuer_id
string<uuid>
kid
string
status
enum<string>
Available options:
VALID,
REVOKED,
SUPERSEDED
payload
object
signature
string
log_index
integer
created_at
string<date-time>