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

# Revoke API token

`DELETE /api/v1/tokens/{token_id}`

## Request

- Base URL: `https://api.vigotime.com`
- URL: `https://api.vigotime.com/api/v1/tokens/{token_id}`
- Auth: none declared

Revoke a token of the caller's organization. Effective immediately.

## Path parameters

- `token_id` string, required

## Headers

- `x-user-id` string, nullable
- `x-company-id` string, nullable
- `x-department-id` string, nullable

## Response `200`

Successful Response

- RevokeResponse
  - `revoked` boolean, required
  - `tokenId` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/vigotime/apis/vigotime-public-api.md) · [All operations](https://skmtc.dev/vigotime/apis/vigotime-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/vigotime/apis/vigotime-public-api/revisions/bf944033e400?raw)
