---
title: "Revoke a service token"
method: DELETE
path: "/api/v1/secure-tokens/{id}"
---

# Revoke a service token

`DELETE /api/v1/secure-tokens/{id}`

## Request

- Base URL: `https://aicommander.dev`
- URL: `https://aicommander.dev/api/v1/secure-tokens/{id}`
- Auth: HTTP bearer

Revokes one of your service tokens by id. Revocation is immediate and permanent; any integration using the token loses access at once. Authenticated with your ACCOUNT API key (Bearer).

## Path parameters

- `id` string, required

## Response `200`

Token revoked.

- object
  - `ok` true, required

## Other responses

- `401`: A token was supplied but is not a valid API key/admin/OAuth token.
- `404`: Session code or alias not found (anonymous callers get a unified message that does not confirm existence).

---

[API](https://skmtc.dev/aicommander/apis/ai-commander-remote-shell-and-long-running-jobs-api.md) · [All operations](https://skmtc.dev/aicommander/apis/ai-commander-remote-shell-and-long-running-jobs-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aicommander/apis/ai-commander-remote-shell-and-long-running-jobs-api/revisions/a6bb89f779a1?raw)
