Agents
Create agent
Create a new agent
POST
/
api
/
v1
/
agents
{
"success": true,
"data": {
"id": "your-agent-id",
"account_id": "your-account-id",
"name": "Customer Support Agent",
"description": "AI agent for handling customer support inquiries",
"type": "llm",
"model": "your-model-name",
"api_key_id": "your-api-key-id",
"instruction": "You are a helpful customer support assistant...",
"card_url": "",
"folder_id": "your-folder-id",
"config": {},
"role": "assistant",
"goal": "Help customers resolve their issues efficiently",
"evolution_bot_id": "",
"evolution_bot_sync": false,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z"
}
}{
"success": false,
"error": {
"code": "BAD_REQUEST",
"message": "Invalid input data"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/agents",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing authentication token"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/agents",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "Insufficient permissions to perform this action"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/agents",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/agents",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/agents",
"method": "POST"
}
}Autorizaciones
API Access Token (UUID) for authentication
Cuerpo
application/json
The body is of type any.
Respuesta
Agent created successfully
⌘I
{
"success": true,
"data": {
"id": "your-agent-id",
"account_id": "your-account-id",
"name": "Customer Support Agent",
"description": "AI agent for handling customer support inquiries",
"type": "llm",
"model": "your-model-name",
"api_key_id": "your-api-key-id",
"instruction": "You are a helpful customer support assistant...",
"card_url": "",
"folder_id": "your-folder-id",
"config": {},
"role": "assistant",
"goal": "Help customers resolve their issues efficiently",
"evolution_bot_id": "",
"evolution_bot_sync": false,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-15T10:30:00Z"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z"
}
}{
"success": false,
"error": {
"code": "BAD_REQUEST",
"message": "Invalid input data"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/agents",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or missing authentication token"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/agents",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "FORBIDDEN",
"message": "Insufficient permissions to perform this action"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/agents",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "Resource not found"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/agents",
"method": "POST"
}
}{
"success": false,
"error": {
"code": "INTERNAL_SERVER_ERROR",
"message": "An unexpected error occurred"
},
"meta": {
"timestamp": "2024-01-15T10:30:00Z",
"path": "/api/v1/agents",
"method": "POST"
}
}