---
title: "Revoke an enrollment token and disconnect its collectors"
method: POST
path: "/api/{org_id}/fleet/tokens/{id}/revoke"
tags: ["Fleet"]
---

# Revoke an enrollment token and disconnect its collectors

`POST /api/{org_id}/fleet/tokens/{id}/revoke`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/fleet/tokens/{id}/revoke`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/fleet/tokens/:id/revoke/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required
- `id` string, required

## Response `200`

Success

- EnrollmentToken
  - `created_at` integer, required: Epoch milliseconds.
  - `expires_at` integer, nullable: Epoch milliseconds; null never expires.
  - `fleet` CollectorFleet, required: A fleet named by its public id; `name` is null once the fleet was deleted.
    - `id` string, required
    - `name` string, nullable
  - `id` string, required
  - `max_uses` integer, nullable
  - `name` string, required
  - `prefix` string, required: The first 9 characters, shown while the value stays masked.
  - `revoked` boolean, required
  - `token` string, nullable: Only for callers who may change the fleet; tokens predating stored values have none.
  - `uses` integer, required

## Other responses

- `403`: Forbidden
- `404`: Not found

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
