Skip to main content
POST
/
manage-api-keys
curl -X POST https://api.magpipe.ai/functions/v1/manage-api-keys \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "revoke",
    "key_id": "b007638d-9550-4cc4-b35f-d11632d77d08"
  }'
{
  "success": true
}
Revoke an API key. The key immediately stops working and webhook deliveries are disabled. This cannot be undone.

Request Body

action
string
required
Must be revoke.
key_id
string
required
The UUID of the API key to revoke.

Response

success
boolean
Whether the revocation was successful.
curl -X POST https://api.magpipe.ai/functions/v1/manage-api-keys \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "revoke",
    "key_id": "b007638d-9550-4cc4-b35f-d11632d77d08"
  }'
{
  "success": true
}