---
title: "Revoke a grant by ID"
method: DELETE
path: "/api/my-account/grants/{grantId}"
tags: ["My account"]
---

# Revoke a grant by ID

`DELETE /api/my-account/grants/{grantId}`

Revoke a specific user application grant by grant ID and remove the related session authorization. A logto-verification-id in header is required for revoking grants.

## Path parameters

- `grantId` string, required

## Response `204`

The grant was revoked successfully.

## Other responses

- `400` — The field is not editable.
- `401` — Permission denied, the verification record is invalid or the session does not have the required scope to revoke grants.
- `403` — Forbidden
- `404` — The grant does not exist.
- `500` — Internal Server Error

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/revisions/a163dc77d842/schema)
