MedicalTrace

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

ParameterInRequiredTypeDescription
AuthorizationheaderYesstringBearer token from POST /auth/login. The sample value demo.local.jwt is a placeholder.
X-Organization-IdheaderYesstringIssuer organization.
idpathYesstringCredential id.
reasonbodyNostringStored 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

FieldTypeDescriptionExample
statusstringREVOKED. Verify then reports credential status separately from the signature.REVOKED