---
search:
  tags:
    - Me
    - DELETE
seo:
  description: >-
    Revokes the API token presented on this request. It takes no id, so a token
    can only ever… Reference for the DELETE /me/token endpoint in the varsafe
    API.
sidebar:
  label: Revoke the calling API token
  badge: DELETE
title: Revoke the calling API token
type: openapi-operation
---
Revokes the API token presented on this request. It takes no id, so a token can only ever destroy itself — the safe thing for an automation to call when it believes it has been compromised. Idempotent: revoking an already-revoked token still answers 200.

`DELETE /me/token`

**Responses**

- `200` — Success.
- `400` — The request failed validation. \`field\` names the offending input.
- `401` — No credential was presented, or it is invalid or revoked.
- `403` — The credential is valid but lacks the required scope, role or team access.
- `404` — The resource does not exist, or is not visible to this credential.
- `429` — Rate limited. Retry after the interval named in the response.
- `500` — Unexpected server error. The body never carries internal detail.

Response example, 200:

```json
{
  "revoked": true
}
```
