#Get channels

Get the list of channels for the given provider.

#Method

GET

#Path

/channels

#Query string parameter

NameValueRequired?
providertwlo (for Twilio SMS),
twlowa (for Twilio WhatsApp),
gswa (for Gupshup WhatsApp)
Yes

#Response

#HTTP status codes

CodeRemarks
200Request was successful.
400Validation error or request body was incorrectly formatted.
401Authentication failed. Check apikey header.
404Requested API endpoint not found.
429The rate limit has been reached.
500-511There was a problem processing the request on our server. Try again later.

#Response object

Array of object

NameValueRemarks
idChannel ID-
channel_keyChannel keyThis is the same as the id field.
nameChannel name-

#Code sample

curl --location --request GET 'https://api.sociocs.com/channels?provider=twlo' \ --header 'apikey: your_api_key' \