Справочник API / Omnichannel
Omnichannel
Endpoints группы Omnichannel в API Voiceland AI, с параметрами, схемами и примерами curl.
Последнее обновление: 2026-09-23
Описания endpoints и полей показаны на английском языке, ровно так, как их публикует API. Это наш выбор: здесь вы читаете то же, что увидите в ответах.
GET /v1/channel-kinds#
List channel kinds. The channel types you can configure.
Ответы
Код
Описание
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl "https://api.voiceland.ai/v1/channel-kinds" \
-H "Authorization: Bearer VL_API_KEY"
Пример ответа
{
"kinds": [
"http",
"slack",
"telegram",
"discord"
]
}
GET /v1/channels#
List channels. Your configured delivery channels.
Ответы
Код
Описание
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl "https://api.voiceland.ai/v1/channels" \
-H "Authorization: Bearer VL_API_KEY"
Пример ответа
{
"channels": []
}
DELETE /v1/channels/{name}#
Delete a channel. Deletes a channel.
Параметры
Имя
Место
Тип
Обязательно
Описание
name
path
string
Да
Channel name.
Ответы
Код
Описание
204
Deleted.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl -X DELETE "https://api.voiceland.ai/v1/channels/{name}" \
-H "Authorization: Bearer VL_API_KEY"
GET /v1/channels/{name}#
Get a channel. Returns one channel by name.
Параметры
Имя
Место
Тип
Обязательно
Описание
name
path
string
Да
Channel name.
Ответы
Код
Описание
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl "https://api.voiceland.ai/v1/channels/{name}" \
-H "Authorization: Bearer VL_API_KEY"
PUT /v1/channels/{name}#
Create or update a channel. Configures a delivery channel (webhook, chat platform, …).
Параметры
Имя
Место
Тип
Обязательно
Описание
name
path
string
Да
Channel name.
Тело запроса
application/json Схема: ChannelPutRequest
Поле
Тип
Обязательно
Описание
chat_id
string
endpoint
string
Delivery endpoint (e.g. a webhook URL).
headers
map of string
kind
string
Да
Channel type (see /channel-kinds).
label
string
Human-readable label.
signing_key
string
token
string
Ответы
Код
Описание
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl -X PUT "https://api.voiceland.ai/v1/channels/{name}" \
-H "Authorization: Bearer VL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"endpoint": "https://example.com/hook",
"kind": "http",
"label": "Ops"
}'
POST /v1/channels/{name}/test#
Test a channel. Sends a test delivery to the channel and returns the attempt result.
Параметры
Имя
Место
Тип
Обязательно
Описание
name
path
string
Да
Channel name.
Ответы
Код
Описание
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl -X POST "https://api.voiceland.ai/v1/channels/{name}/test" \
-H "Authorization: Bearer VL_API_KEY"
Пример ответа
{
"channel": "ops-webhook",
"http_status": 200
}
GET /v1/subscriptions#
List subscriptions. Your omnichannel event-routing rules.
Ответы
Код
Описание
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl "https://api.voiceland.ai/v1/subscriptions" \
-H "Authorization: Bearer VL_API_KEY"
Пример ответа
{
"subscriptions": []
}
DELETE /v1/subscriptions/{name}#
Delete a subscription. Deletes a subscription.
Параметры
Имя
Место
Тип
Обязательно
Описание
name
path
string
Да
Subscription name.
Ответы
Код
Описание
204
Deleted.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl -X DELETE "https://api.voiceland.ai/v1/subscriptions/{name}" \
-H "Authorization: Bearer VL_API_KEY"
PUT /v1/subscriptions/{name}#
Create or update a subscription. Routes selected events to one or more channels, with an optional filter/schedule. A live subscription (no schedule, enabled) over call events is the real-time event webhooks capability; digests, disabled subscriptions, and live subscriptions that list only account alerts (kpi.*, calls.dial_cap_approaching, eval.drift_regression, report.ai_operations) or the chat takeover family (chat.takeover_*) are accepted on every plan.
Параметры
Имя
Место
Тип
Обязательно
Описание
name
path
string
Да
Subscription name.
Тело запроса
application/json Схема: SubscriptionPutRequest
Поле
Тип
Обязательно
Описание
actions
array of SubscriptionAction
channels
array of string
Да
Channel names that receive the events.
enabled
boolean
Whether the subscription is active.
event_types
array of string
Event types to route (e.g. call.hangup). Empty means all.
filter
SubscriptionFilter
schedule
string
Ответы
Код
Описание
200
Success.
401
Missing or invalid API key.
402
A live, enabled subscription over call events needs real-time event webhooks (feature_not_entitled), or the account has no subscription (no_subscription). Disabling the subscription (enabled: false) is always accepted.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl -X PUT "https://api.voiceland.ai/v1/subscriptions/{name}" \
-H "Authorization: Bearer VL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"channels": [
"ops-webhook"
],
"enabled": true,
"event_types": [
"call.hangup"
]
}'
GET /v1/text-agents#
List text agents. Your chat-only agents.
Ответы
Код
Описание
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl "https://api.voiceland.ai/v1/text-agents" \
-H "Authorization: Bearer VL_API_KEY"
Пример ответа
{
"text_agents": []
}
DELETE /v1/text-agents/{name}#
Delete a text agent. Deletes a text agent.
Параметры
Имя
Место
Тип
Обязательно
Описание
name
path
string
Да
Text agent name.
Ответы
Код
Описание
204
Deleted.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl -X DELETE "https://api.voiceland.ai/v1/text-agents/{name}" \
-H "Authorization: Bearer VL_API_KEY"
GET /v1/text-agents/{name}#
Get a text agent. Returns one text agent by name.
Параметры
Имя
Место
Тип
Обязательно
Описание
name
path
string
Да
Text agent name.
Ответы
Код
Описание
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl "https://api.voiceland.ai/v1/text-agents/{name}" \
-H "Authorization: Bearer VL_API_KEY"
PUT /v1/text-agents/{name}#
Create or update a text agent. Configures a chat-only agent.
Параметры
Имя
Место
Тип
Обязательно
Описание
name
path
string
Да
Text agent name.
Тело запроса
application/json Схема: TextAgent
Поле
Тип
Обязательно
Описание
allowed_channels
array of string
greeting
string
history_messages
integer
max_output_tokens
integer
model
string
name
string
Да
provider
string
system_prompt
string
Да
temperature
number
Ответы
Код
Описание
200
Success.
401
Missing or invalid API key.
409
Creating this text agent would exceed your plan's agent allowance, one pool shared by voice and text agents, counted across your whole account (agent_limit). Updating an existing text agent is never refused for this reason.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Пример запроса
curl -X PUT "https://api.voiceland.ai/v1/text-agents/{name}" \
-H "Authorization: Bearer VL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"greeting": "Hi! How can I help?",
"name": "support-chat",
"system_prompt": "You are Acme'\''s helpful support assistant. Answer questions about orders and shipping."
}'
Схемы#
ChannelPutRequest#
Configure a delivery channel.
Поле
Тип
Обязательно
Описание
chat_id
string
endpoint
string
Delivery endpoint (e.g. a webhook URL).
headers
map of string
kind
string
Да
Channel type (see /channel-kinds).
label
string
Human-readable label.
signing_key
string
token
string
Error#
Error envelope returned for non-2xx responses.
Поле
Тип
Обязательно
Описание
error
object
Да
SubscriptionAction#
Поле
Тип
Обязательно
Описание
id
string
Да
label
string
Да
style
string
SubscriptionFilter#
Поле
Тип
Обязательно
Описание
hangup_causes
array of string
SubscriptionPutRequest#
Route events to channels.
Поле
Тип
Обязательно
Описание
actions
array of SubscriptionAction
channels
array of string
Да
Channel names that receive the events.
enabled
boolean
Whether the subscription is active.
event_types
array of string
Event types to route (e.g. call.hangup). Empty means all.
filter
SubscriptionFilter
schedule
string
TextAgent#
A chat-only (text) agent.
Поле
Тип
Обязательно
Описание
allowed_channels
array of string
greeting
string
history_messages
integer
max_output_tokens
integer
model
string
name
string
Да
provider
string
system_prompt
string
Да
temperature
number