Skip to content

REST API

The Tavora REST API provides direct HTTP access to all platform capabilities. The Go SDK wraps this API, but you can also call it directly from any language.

http://localhost:8080/api

All API requests require an API key passed via the X-API-Key header:

Terminal window
curl -H "X-API-Key: tvr_your_api_key" \
http://localhost:8080/api/documents
MethodPathDescription
GET/api/documentsList documents
POST/api/documentsCreate a document
GET/api/documents/:idGet a document
DELETE/api/documents/:idDelete a document
POST/api/searchSemantic search
MethodPathDescription
POST/api/chat/completionsCreate a chat completion
GET/api/conversationsList conversations
GET/api/conversations/:idGet conversation with messages
MethodPathDescription
POST/api/agents/runStart an agent session
GET/api/agents/sessionsList agent sessions
GET/api/agents/sessions/:idGet session details
MethodPathDescription
GET/api/skillsList skills
POST/api/skillsCreate a skill
PUT/api/skills/:idUpdate a skill
DELETE/api/skills/:idDelete a skill
MethodPathDescription
GET/api/storesList document stores
POST/api/storesCreate a store
PUT/api/stores/:idUpdate a store
DELETE/api/stores/:idDelete a store

All responses return JSON. Successful responses include the data directly:

{
"id": "doc_abc123",
"title": "My Document",
"status": "ready",
"created_at": "2025-01-15T10:30:00Z"
}

Error responses include a message:

{
"error": "document not found"
}