GET /tenants//corpus
List all corpus entries. Required scope:corpus:read
Request
Query Parameters
| Param | Type | Description |
|---|---|---|
page | number | Page (default: 1) |
limit | number | Entries per page (default: 20, max: 100) |
segment | string | Filter by segment |
search | string | Text search |
Response
GET /tenants//corpus/
Retrieve a specific entry. Required scope:corpus:read
POST /tenants//corpus
Create a new entry. Required scope:corpus:write
Request
Body
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Entry title |
content | string | Yes | Content (max 50,000 chars) |
segment | string | No | Associated segment |
priority | number | No | Priority 1-10 (default: 5) |
tags | string[] | No | Tags for matching |
Response
PATCH /tenants//corpus/
Modify an existing entry. Required scope:corpus:write
DELETE /tenants//corpus/
Delete an entry. Required scope:corpus:write
Response
POST /tenants//corpus/import
Bulk import via CSV. Required scope:corpus:write