Channels API
8 operations. Back to the API overview. Examples use synthetic data.
Channel deliveries
GET /admin/v1/channel-deliveries
Needs the permission: config:history.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
days | query | string | optional | - |
status | query | string | optional | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
calls | any | optional | - |
days | any | optional | - |
deliveries | any | optional | - |
{
"calls": {},
"days": {},
"deliveries": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/channel-deliveries"Channel settings get
GET /admin/v1/channel-settings
Needs the permission: config:history.
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
notice_kinds | any | optional | - |
prices | object | optional | - |
prices.callback | string | optional | - |
prices.email | string | optional | - |
prices.text | string | optional | - |
prices.whatsapp | string | optional | - |
settings | any | optional | - |
supported | array of string | optional | - |
unavailable | map of string | optional | - |
velacent_line | any | optional | - |
version | any | optional | - |
{
"notice_kinds": {},
"prices": {
"callback": "example",
"email": "user@example.org",
"text": "example",
"whatsapp": "example"
},
"settings": {},
"supported": [
"example"
],
"unavailable": {
"example": "example"
},
"velacent_line": {},
"version": {}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/channel-settings"Channel settings put
PUT /admin/v1/channel-settings
Needs the permission: config:write.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
expect_version | integer | optional | - |
settings | object (ChannelsSettings) | optional | Settings are the tenant's channel settings (console › Notifications). |
settings.byo | object (ChannelsAccount) | optional | BYO is the tenant's own carrier account (Provider "byo"). |
settings.call_attempts | integer | optional | CallAttempts per contact before the next contact in a chain (1-3, default 2); RetryMinutes between them (default 5). |
settings.callback_number | string | optional | CallbackNumber is the number people are asked to call back (E.164); the only thing a voicemail says besides the facility and the name. |
settings.facility | string | optional | Facility is the name said and shown ("an automated call from ..."). |
settings.note_format | string | optional | - |
settings.note_route | string | optional | NoteFormat is what its destination takes: fhir (Communication), mdm (MDM^T02) or oru (ORU^R01). |
settings.notices | array of object (ChannelsNoticeRoute) | optional | Notices routes platform notices to people (besides the e-mail every administrator receives). |
settings.provider | string | optional | Provider: "velacent" (default: Velacent Bridge provides the line) or "byo" (the tenant's own carrier account; Secret Manager credentials). |
settings.retry_minutes | integer | optional | - |
{
"expect_version": 1,
"settings": {
"byo": {
"api_key_env": "example",
"connection_id": "example-id",
"from": "example",
"messaging_profile_id": "example-id",
"rcs_agent_id": "example-id",
"webhook_public_key": "example",
"whatsapp_from": "example",
"whatsapp_templates": {
"example": "example"
}
},
"call_attempts": 1,
"callback_number": "example",
"facility": "example",
"note_format": "example",
"note_route": "example",
"notices": [
{
"alerts": [
{}
],
"channels": [
"example"
],
"kinds": [
"example"
],
"users": [
"example"
]
}
],
"provider": "example",
"retry_minutes": 1
}
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
version | any | optional | - |
{
"version": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)503Unavailable (nothing was changed)
curl --request PUT \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"expect_version":1,"settings":{"byo":{"api_key_env":"example","connection_id":"example-id","from":"example","messaging_profile_id":"example-id","rcs_agent_id":"example-id","webhook_public_key":"example","whatsapp_from":"example","whatsapp_templates":{"example":"example"}},"call_attempts":1,"callback_number":"example","facility":"example","note_format":"example","note_route":"example","notices":[{"alerts":[{}],"channels":["example"],"kinds":["example"],"users":["example"]}],"provider":"example","retry_minutes":1}}' \
"https://YOUR-CONSOLE-HOST/admin/v1/channel-settings"Contacts list
GET /admin/v1/contact-methods
Needs the permissions: metrics:read, users:write.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
all | query | string | optional | - |
Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
contacts | array of object (ChannelsContact) | optional | - |
contacts.[]address | string | optional | Address is an e-mail address (email) or an E.164 number. |
contacts.[]carrier | string | optional | - |
contacts.[]email | string | optional | - |
contacts.[]failures | integer | optional | - |
contacts.[]id | integer | optional | - |
contacts.[]kind | string | optional | - |
contacts.[]label | string | optional | - |
contacts.[]line_type | string | optional | Lookup results (Text, WhatsApp, Callback). |
contacts.[]rcs | boolean | optional | - |
contacts.[]status | string | optional | - |
contacts.[]subject | string | optional | the console user it belongs to |
contacts.[]voip | boolean | optional | - |
subject | string | optional | - |
supported | array of string | optional | - |
unavailable | map of string | optional | - |
{
"contacts": [
{
"address": "example",
"carrier": "example",
"email": "user@example.org",
"failures": 1,
"id": 1,
"kind": "example",
"label": "example",
"line_type": "example",
"rcs": true,
"status": "ok",
"subject": "example",
"voip": true
}
],
"subject": "example",
"supported": [
"example"
],
"unavailable": {
"example": "example"
}
}Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request GET \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/contact-methods"Contact add
POST /admin/v1/contact-methods
Needs the permission: metrics:read.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
address | string | optional | - |
kind | string | optional | - |
label | string | optional | - |
{
"address": "example",
"kind": "example",
"label": "example"
}Response 201
{}Other responses
400Bad Request401Authentication required403Not permitted404Not Found409Conflict (changed since read, or a state conflict)422Unprocessable (invalid configuration or input)503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"address":"example","kind":"example","label":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/contact-methods"Contact check
POST /admin/v1/contact-methods/check
Needs the permission: metrics:read.
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
address | string | optional | - |
kind | string | optional | - |
label | string | optional | - |
{
"address": "example",
"kind": "example",
"label": "example"
}Response 200
| Field | Type | Presence | Description |
|---|---|---|---|
check | any | optional | - |
{
"check": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found422Unprocessable (invalid configuration or input)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"address":"example","kind":"example","label":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/contact-methods/check"Contact delete
DELETE /admin/v1/contact-methods/{id}
Needs the permission: metrics:read.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
Response 204
No Content. No body.
Other responses
401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request DELETE \
--header "Authorization: Bearer $ID_TOKEN" \
"https://YOUR-CONSOLE-HOST/admin/v1/contact-methods/example-id"Contact op
POST /admin/v1/contact-methods/{id}/{op}
Needs the permission: metrics:read.
Parameters
| Name | In | Type | Presence | Description |
|---|---|---|---|---|
id | path | string | required | - |
op | path | string | required | - |
Request body
| Field | Type | Presence | Description |
|---|---|---|---|
code | string | optional | - |
{
"code": "example"
}Response 200
{
"code_sent": {}
}Other responses
400Bad Request401Authentication required403Not permitted404Not Found503Unavailable (nothing was changed)
curl --request POST \
--header "Authorization: Bearer $ID_TOKEN" \
--header "Content-Type: application/json" \
--data '{"code":"example"}' \
"https://YOUR-CONSOLE-HOST/admin/v1/contact-methods/example-id/example-op"Something unclear or missing? Ask Help in the Velacent Bridge console; answers link to the right screen. How support works.