# Creatoria Agent API Documentation
Welcome to the Creatoria Agent API. Build, deploy, and manage AI-powered agents with knowledge bases, custom tools, webhooks, and more.
Item Description Base URL https://your-domain.com/v1Protocol HTTPS Authentication API Key (X-API-Key header) Project Context X-Project-Id header (optional)Response Format JSON Versioning URI versioning (/v1/)
All list endpoints return a paginated response:
json Copy {
"data": [ ... ],
"meta": {
"total": 100,
"page": 1,
"limit": 20,
"totalPages": 5,
"hasNext": true,
"hasPrev": false
}
}
# API Catalog
# Getting Started
# Core APIs
Document Base Path Description Agents API /v1/agentsAgent creation, management, and configuration Chat API /v1/agents/:id/chatChat with agents, streaming and non-streaming Agentic Streaming /v1/agents/:id/chatThinking chains, planning, tool calls
# Data & Knowledge
Document Base Path Description Knowledge Base API /v1/knowledge-basesKnowledge base management and RAG
# Integrations
Document Base Path Description Webhooks API /v1/webhooksWebhook event subscriptions and delivery SDK Quickstart - JavaScript, Python, and cURL examples
# Reference
# Quick Examples
# cURL
bash Copy # List all Agents
curl -X GET "https://your-domain.com/v1/agents" \
-H "X-API-Key: your-api-key" \
-H "X-Project-Id: your-project-id"
# JavaScript / TypeScript
javascript Copy const response = await fetch('https://your-domain.com/v1/agents', {
headers: {
'X-API-Key': 'your-api-key',
'X-Project-Id': 'your-project-id',
},
});
const { data, meta } = await response.json();
console.log(`Total agents: ${meta.total}`);
# Python
python Copy import requests
resp = requests.get(
'https://your-domain.com/v1/agents',
headers={
'X-API-Key': 'your-api-key',
'X-Project-Id': 'your-project-id',
},
)
result = resp.json()
print(f"Total agents: {result['meta']['total']}")
# Key Concepts
# Multi-Tenant Model
Each API Key is bound to an Organization , and data is strictly isolated by organizationId. Use the X-Project-Id header to select a project within the organization.
Header Required Description X-API-KeyYes API Key authentication token X-Project-IdNo Specify project context (uses default project if omitted) Content-TypeFor writes application/json
# Streaming
The Chat API supports Server-Sent Events (SSE) streaming. Set stream: true to receive real-time incremental responses, including thinking chains, planning steps, and tool call events.