Skip to main content
DELETE
Revoke Key

Headers

API-Version
string

Pin request, response, and webhook shapes to a specific dated API version (YYYY-MM-DD). Omit to use the version pinned to your API key (set when the key is created; new keys default to the latest version). New integrations should target the latest version.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-10-16"

Path Parameters

did
string
required

The agent's DID, URL-encoded.

Example:

"did:web:humanos.tech:agent:2f8b6c41-9d37-4e5a-8b02-6c1d9e7a4f35"

keyId
string
required

The key id (<did>#key-<n>), URL-encoded: its # sent as %23.

Example:

"did:web:humanos.tech:agent:2f8b6c41-9d37-4e5a-8b02-6c1d9e7a4f35#key-1"

Query Parameters

reason
string

Why; compromised cascades to what the key authorized.

Example:

"compromised"

Response

Returns the keys revoked, the named one first.

ok
boolean
required

Whether the operation was successful

Example:

true

revoked
string[]
required

The keys revoked, the named one first. With reason=compromised, also every key it authorized by self-service.

Example: