---
title: "List a library's sharing grants"
method: GET
path: "/workspace/libraries/{id}/grants"
tags: ["workspace"]
---

# List a library's sharing grants

`GET /workspace/libraries/{id}/grants`

## Request

- Base URL: `https://api.onplana.com/api`
- URL: `https://api.onplana.com/api/workspace/libraries/{id}/grants`
- Auth: one of:
  - HTTP bearer
  - API key in header `Authorization`

Returns `{ restrictAccess, grants[] }`. Requires MANAGE on the library (creator / org admin / project OWNER-MANAGER / a MANAGE grant).

## Path parameters

- `id` string, required

## Headers

- `X-Organization-Id` string, required

## Response `200`

Restrict flag + grant list

## Other responses

- `400`: Validation error
- `401`: Unauthorized - missing or invalid JWT
- `403`: Forbidden - insufficient role

---

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