---
title: "Get all active grants"
method: GET
path: "/api/my-account/grants"
tags: ["My account"]
---

# Get all active grants

`GET /api/my-account/grants`

Retrieve all active application grants for the user. A logto-verification-id in header is required for checking grant details.

## Query parameters

- `appType` 'firstParty' | 'thirdParty'

## Response `200`

Return a list of active application grants of the user.

- object
  - `grants` object[], required
    - `id` string, required
    - `payload` object, required
      - `exp` number, required
      - `iat` number, required
      - `jti` string, required
      - `kind` string, "Grant", required
      - `clientId` string, required
      - `accountId` string, required
    - `expiresAt` number, required
    - `application` object, required
      - `id` string, required
      - `name` string, required

## Other responses

- `400` — Bad Request
- `401` — Permission denied, the verification record is invalid or the session does not have the required scope to access grant details.
- `403` — Forbidden
- `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/versions/a163dc77d842/schema)
