POST {{API_HOST}}/v2/assistants
X-Auth-Token: YOUR_API_KEY
Content-Type: application/json
{
"vendor": "openai",
"model": "gpt-4o",
"name": "Support Assistant",
"description": "Ассистент поддержки",
"instructions": "Отвечай строго и кратко, используй корпоративный стиль.",
"reasoning_effort": "low",
"temperature": 1,
"max_tokens": 2048,
"is_common": true,
"tools": [
{
"type": "function",
"function": {
"name": "get_order_status",
"description": "Получить статус заказа",
"parameters": {
"type": "object",
"properties": {
"order_id": {
"type": "string",
"description": "ID заказа"
}
},
"required": ["order_id"],
"additionalProperties": false
},
"strict": true
}
}
],
"tool_resources": {
"file_search": {
"vector_store_ids": ["abc123"]
}
},
"metadata": {
"account_id": 1,
"client_id": 5
},
"users": []
}
GET {{API_HOST}}/v2/assistants
[
{
"id": 404,
"name": "Support Assistant",
"vendor": "openai",
"model": "gpt-4o",
"description": "Ассистент поддержки",
"temperature": 1,
"is_common": true,
"instructions": "...",
"tools": [...],
"tool_resources": {
"file_search": {
"vector_store_ids": ["abc123"]
}
},
"created_at": "2025-06-24 12:00:00"
},
...
]