Complete API documentation
RESTful API with comprehensive endpoints for all platform capabilities. Base URL: https://api.1cplatform.com
Authentication
curl https://api.1cplatform.com/v1/agents \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"API Endpoints
/v1/agentsCreate a new AI agent with custom instructions and tools
Parameters
nameAgent name
modelModel (gpt-4, gpt-3.5-turbo)
instructionsSystem instructions
toolsAvailable tools
temperature0-1, controls randomness
Response
{
"id": "agent_abc123",
"name": "customer-support",
"model": "gpt-4",
"status": "active",
"created_at": "2024-01-15T10:30:00Z"
}/v1/agentsList all agents with pagination
Parameters
limitMax results (default: 20)
offsetPagination offset
statusFilter by status
Response
{
"data": [
{
"id": "agent_abc123",
"name": "customer-support"
}
],
"total": 42,
"has_more": true
}/v1/agents/{id}Get detailed information about a specific agent
Parameters
idAgent ID
Response
{
"id": "agent_abc123",
"name": "customer-support",
"model": "gpt-4",
"instructions": "Help customers...",
"tools": [
"knowledge_base"
],
"status": "active"
}/v1/agents/{id}Update agent configuration
Parameters
idAgent ID
nameNew name
instructionsUpdated instructions
/v1/agents/{id}Permanently delete an agent
Parameters
idAgent ID
Response
{
"success": true,
"message": "Agent deleted"
}/v1/agents/{agent_id}/conversationsStart a new conversation with an agent
Parameters
agent_idAgent ID
metadataCustom metadata
Response
{
"id": "conv_xyz789",
"agent_id": "agent_abc123",
"created_at": "2024-01-15T10:30:00Z"
}/v1/conversations/{id}/messagesSend a message in a conversation
Parameters
idConversation ID
contentMessage content
streamEnable streaming
Response
{
"id": "msg_def456",
"role": "assistant",
"content": "Response text...",
"created_at": "2024-01-15T10:30:05Z"
}/v1/workflowsCreate an automated workflow
Parameters
nameWorkflow name
stepsWorkflow steps
triggersTrigger conditions
/v1/workflowsList all workflows
Parameters
limitMax results
offsetPagination offset
/v1/workflows/{id}/executeExecute a workflow
Parameters
idWorkflow ID
inputInput data
Response
{
"execution_id": "exec_ghi789",
"status": "running",
"started_at": "2024-01-15T10:30:00Z"
}/v1/datasetsUpload and index a dataset
Parameters
nameDataset name
fileData file
schemaData schema
/v1/datasetsList all datasets
Parameters
limitMax results
offsetPagination offset
/v1/datasets/{id}/queryQuery dataset with semantic search
Parameters
idDataset ID
querySearch query
top_kNumber of results
Official SDKs
Install our SDKs for your preferred language
Status Codes & Errors
| Code | Status | Description |
|---|---|---|
200 | OK | Request successful |
201 | Created | Resource created successfully |
400 | Bad Request | Invalid request parameters |
401 | Unauthorized | Missing or invalid API key |
403 | Forbidden | Insufficient permissions |
404 | Not Found | Resource not found |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Server error |
503 | Service Unavailable | Service temporarily unavailable |
Rate Limits
requests per minute
requests per minute
requests per minute
X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-ResetWebhooks
Receive real-time notifications when events occur in your account. Configure webhook endpoints in your dashboard.
Quick Start Examples
Get started in your favorite language
