---
title: "Revoke a scoped access token"
method: DELETE
path: "/api/ee/scoped_access_token/{id}"
tags: ["Scoped Access Tokens"]
---

# Revoke a scoped access token

`DELETE /api/ee/scoped_access_token/{id}`

## Request

- The document declares no server URL.
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Sourcebot-Api-Key`

Immediately revokes a scoped access token created by the authenticated API-key owner.

## Path parameters

- `id` string, required: Identifier returned when the scoped access token was created.

## Response `204`

Scoped access token revoked.

## Other responses

- `401`: Missing or invalid authentication.
- `403`: The current authentication method is not an API key, or the API-key owner is not permitted to perform this operation.
- `404`: Scoped access token not found.
- `500`: Unexpected token revocation failure.

## Changes

- **2026-11-03** `cd10497219e1`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sourcebot/apis/sourcebot-public-api/changes/api/ee/scoped_access_token/:id/delete.md)

---

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