PostZen
API Keys

Delete an API key

DELETE
/v1/api-keys/{keyId}

Permanently revokes and deletes an API key. Requires a read-write key with full profile access. A key may delete itself.

Authorization

bearerAuth
AuthorizationBearer <token>

PostZen API key.

In: header

Path Parameters

keyId*string

PostZen API key id.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/v1/api-keys/string"
{  "message": "API key deleted successfully"}
{  "error": "Unauthorized"}
{  "error": "API key requires read_write permission"}
{  "error": "API key not found"}
{  "error": "Failed to create post"}