Knowledge API
The Knowledge API provides endpoints for creating, reading, updating, and searching knowledge entries.
Base URL: https://endpoint.acenta.ai/core/api/v1
Endpoints
Section titled “Endpoints”List entries
Section titled “List entries”GET /knowledgeQuery parameters: limit, offset, tag
curl https://endpoint.acenta.ai/core/api/v1/knowledge \ -H "Authorization: Bearer $ACENTA_KEY"Create entry
Section titled “Create entry”POST /knowledge| Field | Type | Required | Description |
|---|---|---|---|
title | string | yes | Entry title |
content | string | yes | Entry content |
tags | array | no | Tags for organization |
metadata | object | no | Custom metadata |
curl -X POST https://endpoint.acenta.ai/core/api/v1/knowledge \ -H "Authorization: Bearer $ACENTA_KEY" \ -H "Content-Type: application/json" \ -d '{"title": "API Limits", "content": "...", "tags": ["api"]}'Get entry
Section titled “Get entry”GET /knowledge/{id}Replace entry
Section titled “Replace entry”PUT /knowledge/{id}Replaces the full entry. All fields required.
Patch entry
Section titled “Patch entry”PATCH /knowledge/{id}Updates only the provided fields. Unspecified fields are unchanged.
| Field | Type | Description |
|---|---|---|
title | string | New title |
content | string | New content |
tags | array | New tags (replaces existing) |
metadata | object | Merged into existing metadata |
curl -X PATCH https://endpoint.acenta.ai/core/api/v1/knowledge/{id} \ -H "Authorization: Bearer $ACENTA_KEY" \ -H "Content-Type: application/json" \ -d '{"content": "Updated content."}'Delete entry
Section titled “Delete entry”DELETE /knowledge/{id}Merge into entry
Section titled “Merge into entry”POST /knowledge/{id}/mergeMerges structured data into the entry’s data field.
| Field | Type | Required | Description |
|---|---|---|---|
data | object | yes | Data to merge |
curl -X POST https://endpoint.acenta.ai/core/api/v1/knowledge/{id}/merge \ -H "Authorization: Bearer $ACENTA_KEY" \ -H "Content-Type: application/json" \ -d '{"data": {"examples": ["Example A"]}}'Search entries
Section titled “Search entries”GET /knowledge/searchQuery parameters:
| Parameter | Description |
|---|---|
q | Search query |
tag | Filter by tag |
limit | Max results |
offset | Pagination offset |
curl "https://endpoint.acenta.ai/core/api/v1/knowledge/search?q=rate+limits&tag=api" \ -H "Authorization: Bearer $ACENTA_KEY"List tags
Section titled “List tags”GET /knowledge/tagsReturns all tags used in the namespace.