Revoke a credential
Mark a credential revoked without rewriting the signed envelope.
Requires credential:revoke. The caller must be the issuer organization. Revocation adds a status event. It does not delete the signed history.
1. Request URL
POST https://api.medicaltrace.net/v1/credentials/55555555-5555-4555-8555-555555555555/revoke
2. Request parameters
| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
Authorization | header | Yes | string | Bearer token from POST /auth/login. The sample value demo.local.jwt is a placeholder. |
X-Organization-Id | header | Yes | string | Issuer organization. |
id | path | Yes | string | Credential id. |
reason | body | No | string | Stored on the status event. |
3. Request example
curl -s -X POST 'https://api.medicaltrace.net/v1/credentials/55555555-5555-4555-8555-555555555555/revoke' \
-H 'content-type: application/json' \
-H 'authorization: Bearer demo.local.jwt' \
-H 'x-organization-id: 33333333-3333-4333-8333-333333333333' \
-d '{"reason":"Demo revocation for DEMO-BED-001"}'4. Response data
HTTP 201. The body below uses the fictional DEMO-BED-001 fixtures.
{
"id": "55555555-5555-4555-8555-555555555555",
"status": "REVOKED",
"lifecycle": "ANCHOR_PENDING"
}5. Response fields
| Field | Type | Description | Example |
|---|---|---|---|
status | string | REVOKED. Verify then reports credential status separately from the signature. | REVOKED |