Inbox Conversations
Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired
The ID of the chatbot.
Body
namestringRequiredExample:
The name of the contact for the new conversation.
John Doeemailstring · emailOptionalExample:
The email address of the contact.
john.doe@example.comphonestringOptionalExample:
The phone number of the contact.
+4917612345678channelIdstringRequiredExample:
The ID of the channel in which the conversation is created.
sTjncRDMuTdv65ex4I05Responses
201
Conversation created successfully.
application/json
conversationIdstringOptionalExample:
The ID of the newly created conversation.
bI0xfJiGQuPXCJ9slT5GerrorstringOptional
Optional error message.
400
Invalid input data.
403
Insufficient permissions.
post/v1/inbox/{chatbotId}/conversations
POST /v1/inbox/{chatbotId}/conversations HTTP/1.1
Host: api.chatcaptain.com
x-chatcaptain-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 110
{
"name": "John Doe",
"email": "john.doe@example.com",
"phone": "+4917612345678",
"channelId": "sTjncRDMuTdv65ex4I05"
}{
"conversationId": "bI0xfJiGQuPXCJ9slT5G",
"error": "text"
}Last updated