---
title: "List my connected apps and CLI logins"
method: GET
path: "/me/grants"
tags: ["Organization settings"]
---

# List my connected apps and CLI logins

`GET /me/grants`

## Request

- Base URL: `https://api.primitive.dev/v1`
- URL: `https://api.primitive.dev/v1/me/grants`
- Auth: HTTP bearer

The apps the calling person connected to this organization (OAuth) and, where enabled, their CLI logins. A CLI login signs the person in to every organization they belong to. Other apps the person connected cannot list them.

Person only: a dashboard session or the person's own Primitive CLI token; no other OAuth app. API keys, agent connection keys and agents are refused.

## Query parameters

- `cursor` string
- `limit` integer

## Response `200`

Success

- object
  - `success` true, required
  - `data` OrgSettingsListMyGrantsResult, required
    - `items` object[], required
      - `kind` 'oauth' | 'cli_login', required
      - `id` string, required
      - `client` object, nullable, required
        - `client_id` string, required
        - `name` string, nullable, required
        - `uri` string, nullable, required
      - `device_name` string, nullable, required
      - `created_at` string, date-time, required
      - `last_used_at` string, date-time, nullable, required
      - `reuse_held` boolean, required
    - `next_cursor` string, nullable, required

## Other responses

- `400`: Invalid request parameters
- `401`: Invalid or missing API key
- `403`: Authenticated caller lacks permission for the operation
- `404`: Resource not found
- `429`: Rate limit exceeded. The `ratelimit-*` headers describe the limiter that rejected this request, with its own limit and window, not the API budget that successful responses report. A limiter that reports only a wait sends `Retry-After` alone.

---

[API](https://skmtc.dev/primitive/apis/primitive-api.md) - [All operations](https://skmtc.dev/primitive/apis/primitive-api/llms.txt) - [OpenAPI document](https://skmtc.dev/primitive/apis/primitive-api/revisions/bce409c97acb?raw)
