Référence de l'API / Omnichannel
Omnichannel
Les endpoints du groupe Omnichannel de l'API Voiceland AI, avec les paramètres, les schémas et des exemples curl.
Dernière mise à jour: 2026-09-23
Les descriptions des endpoints et des champs restent en anglais, telles que l'API les publie. C'est un choix délibéré : vous lisez ici ce que vous verrez aussi dans les réponses.
GET /v1/channel-kinds#
List channel kinds. The channel types you can configure.
Réponses
Code
Description
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Exemple de requête
curl "https://api.voiceland.ai/v1/channel-kinds" \
-H "Authorization: Bearer VL_API_KEY"
Exemple de réponse
{
"kinds": [
"http",
"slack",
"telegram",
"discord"
]
}
GET /v1/channels#
List channels. Your configured delivery channels.
Réponses
Code
Description
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Exemple de requête
curl "https://api.voiceland.ai/v1/channels" \
-H "Authorization: Bearer VL_API_KEY"
Exemple de réponse
{
"channels": []
}
DELETE /v1/channels/{name}#
Delete a channel. Deletes a channel.
Paramètres
Nom
Emplacement
Type
Requis
Description
name
path
string
Oui
Channel name.
Réponses
Code
Description
204
Deleted.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Exemple de requête
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.
Paramètres
Nom
Emplacement
Type
Requis
Description
name
path
string
Oui
Channel name.
Réponses
Code
Description
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Exemple de requête
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, …).
Paramètres
Nom
Emplacement
Type
Requis
Description
name
path
string
Oui
Channel name.
Corps de la requête
application/json Schéma : ChannelPutRequest
Champ
Type
Requis
Description
chat_id
string
endpoint
string
Delivery endpoint (e.g. a webhook URL).
headers
map of string
kind
string
Oui
Channel type (see /channel-kinds).
label
string
Human-readable label.
signing_key
string
token
string
Réponses
Code
Description
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Exemple de requête
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.
Paramètres
Nom
Emplacement
Type
Requis
Description
name
path
string
Oui
Channel name.
Réponses
Code
Description
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Exemple de requête
curl -X POST "https://api.voiceland.ai/v1/channels/{name}/test" \
-H "Authorization: Bearer VL_API_KEY"
Exemple de réponse
{
"channel": "ops-webhook",
"http_status": 200
}
GET /v1/subscriptions#
List subscriptions. Your omnichannel event-routing rules.
Réponses
Code
Description
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Exemple de requête
curl "https://api.voiceland.ai/v1/subscriptions" \
-H "Authorization: Bearer VL_API_KEY"
Exemple de réponse
{
"subscriptions": []
}
DELETE /v1/subscriptions/{name}#
Delete a subscription. Deletes a subscription.
Paramètres
Nom
Emplacement
Type
Requis
Description
name
path
string
Oui
Subscription name.
Réponses
Code
Description
204
Deleted.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Exemple de requête
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.
Paramètres
Nom
Emplacement
Type
Requis
Description
name
path
string
Oui
Subscription name.
Corps de la requête
application/json Schéma : SubscriptionPutRequest
Champ
Type
Requis
Description
actions
array of SubscriptionAction
channels
array of string
Oui
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
Réponses
Code
Description
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.
Exemple de requête
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.
Réponses
Code
Description
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Exemple de requête
curl "https://api.voiceland.ai/v1/text-agents" \
-H "Authorization: Bearer VL_API_KEY"
Exemple de réponse
{
"text_agents": []
}
DELETE /v1/text-agents/{name}#
Delete a text agent. Deletes a text agent.
Paramètres
Nom
Emplacement
Type
Requis
Description
name
path
string
Oui
Text agent name.
Réponses
Code
Description
204
Deleted.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Exemple de requête
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.
Paramètres
Nom
Emplacement
Type
Requis
Description
name
path
string
Oui
Text agent name.
Réponses
Code
Description
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Exemple de requête
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.
Paramètres
Nom
Emplacement
Type
Requis
Description
name
path
string
Oui
Text agent name.
Corps de la requête
application/json Schéma : TextAgent
Champ
Type
Requis
Description
allowed_channels
array of string
greeting
string
history_messages
integer
max_output_tokens
integer
model
string
name
string
Oui
provider
string
system_prompt
string
Oui
temperature
number
Réponses
Code
Description
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.
Exemple de requête
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."
}'
Schémas#
ChannelPutRequest#
Configure a delivery channel.
Champ
Type
Requis
Description
chat_id
string
endpoint
string
Delivery endpoint (e.g. a webhook URL).
headers
map of string
kind
string
Oui
Channel type (see /channel-kinds).
label
string
Human-readable label.
signing_key
string
token
string
Error#
Error envelope returned for non-2xx responses.
Champ
Type
Requis
Description
error
object
Oui
SubscriptionAction#
Champ
Type
Requis
Description
id
string
Oui
label
string
Oui
style
string
SubscriptionFilter#
Champ
Type
Requis
Description
hangup_causes
array of string
SubscriptionPutRequest#
Route events to channels.
Champ
Type
Requis
Description
actions
array of SubscriptionAction
channels
array of string
Oui
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.
Champ
Type
Requis
Description
allowed_channels
array of string
greeting
string
history_messages
integer
max_output_tokens
integer
model
string
name
string
Oui
provider
string
system_prompt
string
Oui
temperature
number