#Get channel

Get a channel.

#Method

GET

#Path

/channels/[channel_key]

#Path parameter

NameValueData typeRequired?
channel_keyChannel key value from Profile & settings -> APIStringYes

#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

NameValueRemarks
statussuccess or error-
errorsArray of object { msg: [error detail] }Only present when status is error.
dataChannel object. See below.Only present when status is success

#Channel object

NameValue
nameChannel name
country_codeCountry dial code of the phone number connected in the channel
phone_numberPhone number connected in the channel
providerMessaging provider for the channel
twlo (for Twilio SMS),
twlowa (for Twilio WhatsApp),
gswa (for Gupshup WhatsApp)

#Code sample

curl --location --request GET 'https://api.sociocs.com/channels/your_channel_key' \ --header 'apikey: your_api_key' \