---
title: "Grant Knowledge base access to people or workspace API keys"
method: POST
path: "/knowledge/{folderId}/access"
---

# Grant Knowledge base access to people or workspace API keys

`POST /knowledge/{folderId}/access`

## Request

- Base URL: `https://api.langdock.com`
- URL: `https://api.langdock.com/knowledge/{folderId}/access`
- Auth: HTTP bearer

## Path parameters

- `folderId` string, required

## Request body

- object
  - `targetIds` string[], required
  - `role` 'USER' | 'EDITOR', required

## Response `200`

Access granted successfully

## Changes

- **2026-11-03** `c62bf90b4013`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/langdock/apis/langdock-api/changes/knowledge/:folderId/access/post.md)

---

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