API-Referenz / Omnichannel
Omnichannel
Die Endpoints der Gruppe Omnichannel der Voiceland AI API, mit Parametern, Schemata und Beispielen mit curl.
Zuletzt aktualisiert: 2026-09-23
Die Beschreibungen der Endpoints und der Felder erscheinen auf Englisch, genau so, wie die API sie ausliefert. Das ist Absicht: Sie lesen hier, was Sie auch in den Antworten sehen.
GET /v1/channel-kinds#
List channel kinds. The channel types you can configure.
Antworten
Code
Beschreibung
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Beispielanfrage
curl "https://api.voiceland.ai/v1/channel-kinds" \
-H "Authorization: Bearer VL_API_KEY"
Beispielantwort
{
"kinds": [
"http",
"slack",
"telegram",
"discord"
]
}
GET /v1/channels#
List channels. Your configured delivery channels.
Antworten
Code
Beschreibung
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Beispielanfrage
curl "https://api.voiceland.ai/v1/channels" \
-H "Authorization: Bearer VL_API_KEY"
Beispielantwort
{
"channels": []
}
DELETE /v1/channels/{name}#
Delete a channel. Deletes a channel.
Parameter
Name
Ort
Typ
Erforderlich
Beschreibung
name
path
string
Ja
Channel name.
Antworten
Code
Beschreibung
204
Deleted.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Beispielanfrage
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.
Parameter
Name
Ort
Typ
Erforderlich
Beschreibung
name
path
string
Ja
Channel name.
Antworten
Code
Beschreibung
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Beispielanfrage
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, …).
Parameter
Name
Ort
Typ
Erforderlich
Beschreibung
name
path
string
Ja
Channel name.
Anfragetext
application/json Schema: ChannelPutRequest
Feld
Typ
Erforderlich
Beschreibung
chat_id
string
endpoint
string
Delivery endpoint (e.g. a webhook URL).
headers
map of string
kind
string
Ja
Channel type (see /channel-kinds).
label
string
Human-readable label.
signing_key
string
token
string
Antworten
Code
Beschreibung
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Beispielanfrage
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.
Parameter
Name
Ort
Typ
Erforderlich
Beschreibung
name
path
string
Ja
Channel name.
Antworten
Code
Beschreibung
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Beispielanfrage
curl -X POST "https://api.voiceland.ai/v1/channels/{name}/test" \
-H "Authorization: Bearer VL_API_KEY"
Beispielantwort
{
"channel": "ops-webhook",
"http_status": 200
}
GET /v1/subscriptions#
List subscriptions. Your omnichannel event-routing rules.
Antworten
Code
Beschreibung
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Beispielanfrage
curl "https://api.voiceland.ai/v1/subscriptions" \
-H "Authorization: Bearer VL_API_KEY"
Beispielantwort
{
"subscriptions": []
}
DELETE /v1/subscriptions/{name}#
Delete a subscription. Deletes a subscription.
Parameter
Name
Ort
Typ
Erforderlich
Beschreibung
name
path
string
Ja
Subscription name.
Antworten
Code
Beschreibung
204
Deleted.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Beispielanfrage
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.
Parameter
Name
Ort
Typ
Erforderlich
Beschreibung
name
path
string
Ja
Subscription name.
Anfragetext
application/json Schema: SubscriptionPutRequest
Feld
Typ
Erforderlich
Beschreibung
actions
array of SubscriptionAction
channels
array of string
Ja
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
Antworten
Code
Beschreibung
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.
Beispielanfrage
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.
Antworten
Code
Beschreibung
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Beispielanfrage
curl "https://api.voiceland.ai/v1/text-agents" \
-H "Authorization: Bearer VL_API_KEY"
Beispielantwort
{
"text_agents": []
}
DELETE /v1/text-agents/{name}#
Delete a text agent. Deletes a text agent.
Parameter
Name
Ort
Typ
Erforderlich
Beschreibung
name
path
string
Ja
Text agent name.
Antworten
Code
Beschreibung
204
Deleted.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Beispielanfrage
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.
Parameter
Name
Ort
Typ
Erforderlich
Beschreibung
name
path
string
Ja
Text agent name.
Antworten
Code
Beschreibung
200
Success.
401
Missing or invalid API key.
4XX
Request error (validation, not-found, etc.).
5XX
Server or upstream error.
Beispielanfrage
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.
Parameter
Name
Ort
Typ
Erforderlich
Beschreibung
name
path
string
Ja
Text agent name.
Anfragetext
application/json Schema: TextAgent
Feld
Typ
Erforderlich
Beschreibung
allowed_channels
array of string
greeting
string
history_messages
integer
max_output_tokens
integer
model
string
name
string
Ja
provider
string
system_prompt
string
Ja
temperature
number
Antworten
Code
Beschreibung
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.
Beispielanfrage
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."
}'
Schemata#
ChannelPutRequest#
Configure a delivery channel.
Feld
Typ
Erforderlich
Beschreibung
chat_id
string
endpoint
string
Delivery endpoint (e.g. a webhook URL).
headers
map of string
kind
string
Ja
Channel type (see /channel-kinds).
label
string
Human-readable label.
signing_key
string
token
string
Error#
Error envelope returned for non-2xx responses.
Feld
Typ
Erforderlich
Beschreibung
error
object
Ja
SubscriptionAction#
Feld
Typ
Erforderlich
Beschreibung
id
string
Ja
label
string
Ja
style
string
SubscriptionFilter#
Feld
Typ
Erforderlich
Beschreibung
hangup_causes
array of string
SubscriptionPutRequest#
Route events to channels.
Feld
Typ
Erforderlich
Beschreibung
actions
array of SubscriptionAction
channels
array of string
Ja
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.
Feld
Typ
Erforderlich
Beschreibung
allowed_channels
array of string
greeting
string
history_messages
integer
max_output_tokens
integer
model
string
name
string
Ja
provider
string
system_prompt
string
Ja
temperature
number