---
title: "Revoke a widget bearer token"
method: DELETE
path: "/api/v1/widgets/token"
tags: ["Engage"]
---

# Revoke a widget bearer token

`DELETE /api/v1/widgets/token`

## Request

- Base URL: `https://app.d-sports.org`
- URL: `https://app.d-sports.org/api/v1/widgets/token`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Revokes the presented widget bearer, or revokes the signed-in Clerk user’s tokens for the given `deviceId`. With Clerk, use the query parameter or, if absent or empty, the JSON body (4 KiB maximum). A successful response may report zero matching tokens.

## Query parameters

- `deviceId` string

## Request body

- object
  - `deviceId` string, required: Per-install client identifier. After trimming, it must be 1–128 characters with no whitespace.

## Response `200`

Widget token(s) revoked

- WidgetTokenRevokeSuccess
  - `success` true, required
  - `data` object, required
    - `revoked` true, required
    - `revokedCount` integer, required

## Other responses

- `400`: VALIDATION_ERROR
- `401`: UNAUTHORIZED
- `413`: PAYLOAD_TOO_LARGE (Clerk-authenticated JSON request)

## Changes

- **2026-11-21** `63735cf90a04`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/changes/api/v1/widgets/token/delete.md)

---

[API](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api.md) - [All operations](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/llms.txt) - [OpenAPI document](https://skmtc.dev/d-sports-ecosystem/apis/d-sports-api/revisions/63735cf90a04?raw)
