---
title: "Get user active grants"
method: GET
path: "/api/users/{userId}/grants"
tags: ["Users"]
---

# Get user active grants

`GET /api/users/{userId}/grants`

Retrieve all non-expired grants of the user. Optionally filter by application type via `appType`; when omitted, grants from all application types are returned.

## Path parameters

- `userId` string, required

## Query parameters

- `appType` 'firstParty' | 'thirdParty'

## Response `200`

Return non-expired grants of the user. Results are filtered by app type when `appType` is provided.

- 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` — Unauthorized
- `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)
