---
title: "List live grants in the organization this request is bound to."
method: GET
path: "/v1/access/grants"
tags: ["account"]
---

# List live grants in the organization this request is bound to.

`GET /v1/access/grants`

## Request

- Base URL: `https://api.kody.codes`
- URL: `https://api.kody.codes/v1/access/grants`
- Auth: HTTP bearer

List live grants in the organization this request is bound to. Filter by resource or subject when you already know which one you want.

Org permission: `member:read`.

## Query parameters

- `resource_type` 'package' | 'app' | 'job' | 'credential' | 'memory' | 'email' | 'org' | 'secret' | 'integration': secret or integration with a resource_id filter by that credential name.
- `resource_id` string
- `subject_type` 'user' | 'team'
- `subject_id` string

## Response `200`

Success.

- object
  - `grants` object[], required
    - `id` string, required
    - `resource_type` 'package' | 'app' | 'job' | 'credential' | 'memory' | 'email' | 'org', required
    - `resource_id` string, required
    - `subject_type` 'user' | 'team', required
    - `subject_id` string, required
    - `preset` 'use' | 'contribute' | 'manage', nullable, required
    - `permissions` string[], required

## Other responses

- `400`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `401`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `403`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `404`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `409`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `413`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `429`: Too many requests (edge IP/token limit) or an entitlement / plan-cap limit. Wait at least `Retry-After` seconds before retrying.
- `500`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `503`: Error envelope `{ "error": { "code", "message", "details"? } }`.
- `default`: Error envelope `{ "error": { "code", "message", "details"? } }`.

---

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