---
title: "Revoke API token"
method: DELETE
path: "/api/mail/v1/api-tokens/{tokenId}"
tags: ["Mail: API Tokens"]
---

# Revoke API token

`DELETE /api/mail/v1/api-tokens/{tokenId}`

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

## Path parameters

- `tokenId` string, required

## Response `200`

Success response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `404` — Error response
- `422` — Error response
- `500` — Error response

---

[API](https://skmtc.net/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.net/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/796bd5194565/schema)
