For the complete documentation index, see llms.txt. This page is also available as Markdown.

Revoke API token

Revoke an API token. The token immediately loses access to the [Hostinger Email API](https://api.mail.hostinger.com/). This action cannot be undone.

Revoke API token

delete

Revoke an API token. The token immediately loses access to the Hostinger Email API. This action cannot be undone.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
tokenIdstringRequired

API token ID (returned when the token was created)

Example: 019683f8-1234-7abc-8def-0123456789ab
Responses
200

Success response

application/json
messagestringOptionalExample: Request accepted
delete/api/mail/v1/api-tokens/{tokenId}
DELETE /api/mail/v1/api-tokens/{tokenId} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "message": "Request accepted"
}

Last updated

Was this helpful?