Add a channel

POST {{baseUrl}}/channels

Adds a new messaging channel, only admins are able to register new channels. It will use the getConversations endpoint to fetch conversations, participants and messages afterward. To use the endpoint, you need to have Messengers integration OAuth scope enabled and the Messaging manifest ready for the Messaging app extension.

Request Body

{"name"=>"<string>", "provider_channel_id"=>"<string>", "avatar_url"=>"<url>", "template_support"=>false, "provider_type"=>"other"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;success&quot;:true,&quot;data&quot;:{&quot;id&quot;:&quot;e283f878-7ef9-4294-8e5c-04a7d003fd92&quot;,&quot;name&quot;:&quot;My Channel&quot;,&quot;avatar_url&quot;:&quot;http://my-domain.com/images/test.png&quot;,&quot;provider_channel_id&quot;:&quot;e283f878-7ef9-4294-8e5c-04a7d003fd92&quot;,&quot;marketplace_client_id&quot;:&quot;57da5c3c55a82bb4&quot;,&quot;pd_company_id&quot;:123,&quot;pd_user_id&quot;:321,&quot;created_at&quot;:&quot;2022-03-01 00:00:00&quot;,&quot;provider_type&quot;:&quot;other&quot;,&quot;template_support&quot;:false}}