Custom channels
Create chat on a contact channel
Start a new chat with a contact on one of its custom channels. The chat is seeded with the contact channel as the sole member; the admin is not a chat member. Any initial message is authored as the contact.
post/orgs/contacts/{contact_id}/channels/{channel_id}/chats
Request
- Base URL: https://api.useinvent.com
- URL: https://api.useinvent.com/orgs/contacts/{contact_id}/channels/{channel_id}/chats
- Auth: HTTP bearer
Path parameters
contact_idstring required
Contact ID
channel_idstring required
Channel ID
Request body
Example request
{
"message": [
{
"audio": {
"file_filename": "document.pdf",
"file_size": 1024,
"file_mimetype": "application/pdf"
}
}
]
}Response
Example response
{
"last_message": {
"messages": [
{
"parts": [
{
"audio": {
"file_filename": "document.pdf",
"file_size": 1024,
"file_mimetype": "application/pdf"
}
}
]
}
]
},
"referral": {
"parts": [
{
"file": {
"file_filename": "document.pdf",
"file_size": 1024,
"file_mimetype": "application/pdf"
}
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.