End one of the caller's access grants

End one grant. A CLI session's refresh-token family is revoked. An MCP grant's tokens are deleted, its endpoint is taken out of the caller's consent to the client (reconnecting shows the consent screen again), and an access token already issued is refused from its next request. revoked: false when the id names no live grant of the caller — unknown, someone else's and already ended look the same, so an id cannot be probed. Browser session only.

POST/api/auth/access-grants/revoke

Authorization

cookieAuth
better-auth.session_token<token>

Cookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.

In: cookie

Request Body

application/json

curl -X POST "https://your-instance/api/auth/access-grants/revoke" \  -H "Content-Type: application/json" \  -d '{    "id": "string"  }'
{
  "revoked": true
}
{
  "error": "string",
  "error_description": "string"
}