---
title: "Revoke an integration grant (admins only)."
method: DELETE
path: "/admin/capture-grants/{grantId}"
tags: ["Admin"]
---

# Revoke an integration grant (admins only).

`DELETE /admin/capture-grants/{grantId}`

## Request

- Base URL: `https://docs.sleeperhit.studio/api/v1`
- URL: `https://docs.sleeperhit.studio/api/v1/admin/capture-grants/{grantId}`
- Auth: HTTP bearer

Every capture session under it ends at once (its cookies stop working on the next request) and the token authenticates no more. 404 `not_found` for any other id. Audited. Scope: `account:write`. Free.

## Response `200`

The grant, revoked.

- CaptureGrant
  - `id` string, required
  - `demoUserId` string, required
  - `label` string, nullable, required
  - `createdAt` string, date-time, required
  - `expiresAt` string, date-time, required
  - `revokedAt` string, date-time, nullable, required

## Other responses

- `401`: Missing, malformed, revoked, or expired API key.
- `403`: API key is valid but lacks the scope, is blocked by IP allowlist, or the account is disabled.
- `429`: Rate limit for this API key + IP + route family was exceeded.
- `500`: The API failed unexpectedly. Safe to retry with the same Idempotency-Key.

---

[API](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api.md) · [All operations](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sleeperhit/apis/sleeper-hit-studio-story-api/revisions/86e084144cef?raw)
