Skip to main content

Revoke or delete a mail API key

DELETE 

/mail/api-keys/:key_id

With permanent=false (default), revokes the key and returns revoked=true. It can no longer authorize mail API requests. With permanent=true, permanently removes a revoked key and returns deleted=true. First revoke an active key: attempting to delete it directly returns 409 mail_key_active.

Request​

Responses​

Successful response

Response Headers
    Cache-Control

    Do not cache this response.

© 2026 AdaptGroup LLC. All rights reserved.
30 N Gould St Ste R, Sheridan, WY 82801, USA
Back to top