Skip to content

Create a knowledge pack

POST
/v1/knowledge-packs
curl --request POST \
--url https://api.vocapable.com/v1/knowledge-packs \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "name": "example" }'
Idempotency-Key
Any of:
string

Unique key for this request, so a retry replays the original result instead of repeating the work. Stored for 24 hours; a replayed response carries Idempotent-Replay: true. A UUID is the documented shape.

Media typeapplication/json
KnowledgePackCreateRequest

POST /v1/knowledge-packs. Content arrives as versions, never on the pack itself.

object
name
required
Name
string
>= 1 characters <= 200 characters
Examplegenerated
{
"name": "example"
}

Successful Response

Media typeapplication/json
KnowledgePackSummary

A pack as a list row. current_version is the highest version that reached ready.

object
id
required
Id
string
name
required
Name
string
current_version
Any of:
integer
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
Examplegenerated
{
"id": "example",
"name": "example",
"current_version": 1,
"created_at": "2026-04-15T12:00:00Z",
"updated_at": "2026-04-15T12:00:00Z"
}

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}