Retrieves a list of channels. Each account has one default channel. A channel is like a mailing list - to which users can subscribe to and unsubscribe. Messages can only be sent to a specific subscriber.
Response format | JSON |
---|---|
Requires authentication? | Yes |
curl -X GET \
-u '[SID]:[TOKEN]' \
'https://api.essential.to/v2/account/channels'
# Sample response
[
{
"name": "default",
"onreceived_url": "https://example.com/onreceived_endpoint",
"created_at": "2016-03-02T21:58:39.000Z",
"updated_at": "2016-03-02T21:58:39.000Z",
"area_codes": null,
"deliveries_paused_at": null,
"received_paused_at": null,
"sid": "x326594jl8Uzn0RkZSpHXHnrw",
"account_sid": "p03Gjl8Uzn0RkZSpHXHnrw",
"bot_sid": "p03Gjl8Uzn0RkZSpHXHnrw"
},
{
"name": "secondary",
"onreceived_url": "https://example.com/onreceived_endpoint",
"created_at": "2017-01-24T01:24:35.000Z",
"updated_at": "2017-01-25T21:33:16.000Z",
"area_codes": null,
"deliveries_paused_at": null,
"received_paused_at": null,
"sid": "p03Gjl8Uzn0RkZSpHXHnrw",
"account_sid": "p03Gjl8Uzn0RkZSpHXHnrw",
"bot_sid": "p03Gjl8Uzn0RkZSpHXHnrw"
}
]
Python coming soon.
Node coming soon.