---
title: "Stop allowing a personal token to write the guidance card"
method: DELETE
path: "/api/tokens/{tokenId}/guidance-grant"
tags: ["Tokens"]
---

# Stop allowing a personal token to write the guidance card

`DELETE /api/tokens/{tokenId}/guidance-grant`

## Request

- Base URL: `https://tre-app.com`
- URL: `https://tre-app.com/api/tokens/{tokenId}/guidance-grant`
- Auth: one of:
  - API key in cookie `__Secure-authjs.session-token`
  - API key in cookie `authjs.session-token`

Requires the authenticated web session; every Bearer token, including admin scope, receives 403 FORBIDDEN (Guidance write grants require the web session). Closes every open guidance write grant of the caller's own token, whatever workspace each names; another person's token answers 404 NOT_FOUND (Token not found). Idempotent: a token with nothing open still answers 204.

## Response `204`

No content

## Other responses

- `400`: Invalid request
- `401`: Unauthenticated
- `403`: Guidance write grants require the web session; Bearer tokens cannot revoke them
- `404`: Not found
- `409`: Conflict
- `429`: Rate limited
- `500`: Internal server error
- `503`: Temporarily unavailable

---

[API](https://skmtc.dev/tre-app/apis/tre-rest-api.md) · [All operations](https://skmtc.dev/tre-app/apis/tre-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tre-app/apis/tre-rest-api/revisions/26a7187a05fc?raw)
