Skip to content

Knowledge API

The Knowledge API provides endpoints for creating, reading, updating, and searching knowledge entries.

Base URL: https://endpoint.acenta.ai/core/api/v1

GET /knowledge

Query parameters: limit, offset, tag

Terminal window
curl https://endpoint.acenta.ai/core/api/v1/knowledge \
-H "Authorization: Bearer $ACENTA_KEY"
POST /knowledge
FieldTypeRequiredDescription
titlestringyesEntry title
contentstringyesEntry content
tagsarraynoTags for organization
metadataobjectnoCustom metadata
Terminal window
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 /knowledge/{id}
PUT /knowledge/{id}

Replaces the full entry. All fields required.

PATCH /knowledge/{id}

Updates only the provided fields. Unspecified fields are unchanged.

FieldTypeDescription
titlestringNew title
contentstringNew content
tagsarrayNew tags (replaces existing)
metadataobjectMerged into existing metadata
Terminal window
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 /knowledge/{id}
POST /knowledge/{id}/merge

Merges structured data into the entry’s data field.

FieldTypeRequiredDescription
dataobjectyesData to merge
Terminal window
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"]}}'
GET /knowledge/search

Query parameters:

ParameterDescription
qSearch query
tagFilter by tag
limitMax results
offsetPagination offset
Terminal window
curl "https://endpoint.acenta.ai/core/api/v1/knowledge/search?q=rate+limits&tag=api" \
-H "Authorization: Bearer $ACENTA_KEY"
GET /knowledge/tags

Returns all tags used in the namespace.