Conventions
Naming · Pagination · Filtering · Sorting · Time format
The whole API follows these conventions. Read this page = read most endpoints.
Naming
| Style | Used in |
|---|---|
| kebab-case | URL paths (/v1/knowledge-bases) |
| snake_case | JSON fields + query params (user_id, created_at) |
HTTP Methods
| Method | Use |
|---|---|
GET | Read / list |
POST | Create / invoke |
PUT | Full replace |
PATCH | Partial update |
DELETE | Delete |
Pagination
List endpoints support pagination uniformly:
| Parameter | Description |
|---|---|
limit | Page size, default 20, max 100 |
cursor | The previous response's next_cursor |
Response format:
Filtering
| Operator | Description | Example |
|---|---|---|
= (default) | Equals | status=active |
_in | Multiple values | status_in=active,paused |
_after / _before | Time range | created_after=2026-01-01 |
Sorting
- prefix = descending.
Time Format
All ISO 8601 + UTC:
User time zones are accepted in requests (auto-converted):
Idempotency
Write operations support an idempotency key (avoid duplicate triggers):
Within 24 hours, the same key is treated as the same request and returns the same result.
Streaming Responses
Endpoints that support SSE (e.g. Agent chat, Workflow run):
Each chunk:
Metadata
Every response contains: