# Revoke one of your CLI tokens

Source: https://immiscible.fly.dev/docs/api/delete-v1-cli-tokens-tid

`DELETE /v1/cli/tokens/:tid`

What `immiscible token revoke` calls.

## Authentication

CLI token. A token (`imc_...`) the developer CLI gets by signing in through the browser (`immiscible login`, the OAuth device grant), sent as `Authorization: Bearer`. It acts for one person in one workspace: it reads agents and status, and registers an agent with a rule from the same purposes as the console's "Add an agent". It never approves anything or changes an existing rule. Every use re-checks the person's membership and the workspace's sign-in rules; it lasts 90 days and ends from the console's sessions.

## Path parameters

- `tid` (string, required): Team id, or for service tokens the token id

## Request

curl:

```bash
curl -X DELETE "https://immiscible.fly.dev/v1/cli/tokens/team_platform" \
  -H "authorization: Bearer $IMMISCIBLE_TOKEN"
```

Node:

```ts
const res = await fetch('https://immiscible.fly.dev/v1/cli/tokens/team_platform', {
  method: 'DELETE',
  headers: {
    authorization: `Bearer ${process.env.IMMISCIBLE_TOKEN}`,
  },
});
const data = await res.json();
console.log(res.status, data);
```

Python:

```python
import os
import requests

res = requests.delete(
    "https://immiscible.fly.dev/v1/cli/tokens/team_platform",
    headers={
        "authorization": f"Bearer {os.environ['IMMISCIBLE_TOKEN']}",
    },
)
print(res.status_code, res.json())
```

## Response

```json
{
  "ok": true,
  "revoked": "clt_ef9160fc75835d11"
}
```
