Revoke applied policy credential
const url = 'https://localhost:10001/api/v1/projects/example/policies/example/credentials/example/revoke';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"reason":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://localhost:10001/api/v1/projects/example/policies/example/credentials/example/revoke \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "reason": "example" }'Revoke a specific issued credential associated with an applied policy
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Project ID, UUID (urn:uuid optional), or slug:my-project
Applied policy ID, slug:my-policy, or urn:cid:bafy…
Credential ID or UUID (urn:uuid optional)
Request Body
Section titled “Request Body ”Revocation reason
object
Example generated
{ "reason": "example"}Responses
Section titled “ Responses ”Revoked credential
A verifiable credential issued over an applied policy, revocable but never deleted
object
Taken from the path on create
object
Urn:uuid minted per issuance; identifies the row
Verifiable actor; issuedBy is the label
Set via the revoke endpoint
Set via the revoke endpoint
Set via the revoke endpoint
Verifiable actor; revokedBy is the label
Set via the revoke endpoint
Assigned by the integrity service
Example generated
{ "expiresAt": "2026-04-15T12:00:00Z"}Bad request - Invalid IDs, missing reason, or credential already revoked
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Unauthorized - Authentication required
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Forbidden - No project access or insufficient permissions
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Credential not found
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}Internal server error
Error body returned by the governance endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Invalid request body"}