Add a channel
Changed onAdds 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
- Base URLhttps://api.pipedrive.com/v1
- Auth
- API key in header x-api-token
- or OAuth 2Authorization code: https://oauth.pipedrive.com/oauth/authorizeToken URL: https://oauth.pipedrive.com/oauth/token scopes: messengers-integration
Request body
Example request
{
"name": "My Channel"
}Response
The channel registered
Example response
{
"success": true,
"data": {
"name": "My Channel",
"avatar_url": "http://some-domain.com/test.jpg",
"pd_company_id": 1,
"pd_user_id": 1
}
}Changes
- info
endpoint deprecated
- info
- breaking
the
response's property type changed fromarraytoobjectfor status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking