/v1/account/signing_keys/{id}/revoke
API Key
Revoke a signing key
Revoke a signing key. Revoked keys can no longer be used for signing,
but credentials signed before revocation remain verifiable.
Parameters
| Name | Location | Type | Description |
|---|---|---|---|
id
*
|
path | string | Signing key ID or key_id |
X-API-Key
*
|
header | string | API key for authentication |
* Required parameter
Response
Content-Type: application/json
success
boolean
data
object
message
string
key
object
A cryptographic signing key for verifiable credentials
key_id
*
string
Unique key identifier
Example: key-2962d38d-4ec8-454b-82b6-c553c37da055
algorithm
*
string
Cryptographic algorithm (ES256, ES384, or Ed25519)
Allowed values: "es256", "es384", "ed25519"
Example: es256
status
*
string
Key lifecycle status
Allowed values: "pending", "active", "revoked", "expired"
Example: active
usable
*
boolean
Whether the key can be used for signing (active and not expired)
Example: true
legacy
*
boolean
Whether the key has been rotated and is in legacy grace period
expires_at
string (date-time)
nullable
When the key expires (null = no expiration)
created_at
*
string (date-time)
When the key was created
Example: 2025-01-01T00:00:00Z
updated_at
*
string (date-time)
When the key was last updated
Example: 2025-01-01T00:00:00Z
Code Examples
import os
from aho_sdk import AhoSdk
client = AhoSdk.account(api_key=os.environ["AHO_API_KEY"])
result = client.signing_keys.revoke(
id="example_id"
)
client = AhoSdk.account(api_key: ENV["AHO_API_KEY"])
result = client.signing_keys.revoke(
id: "example_id"
)
import { AhoSdk } from '@aho/sdk';
const client = AhoSdk.account({ apiKey: process.env.AHO_API_KEY });
const result = await client.signing_keys.revoke({
id: "example_id"
});
curl -X POST 'https://api.aho.com/v1/account/signing_keys/example_id/revoke' \
-H 'X-API-Key: $AHO_API_KEY'
Try It
Log in to test this endpoint directly from the documentation.
Log in