Inbox API
The set of methods that can be used when for OneTalk Inbox
Send Message via WhatsApp
POST
https://onetalk-api.taptalk.io/api/integration/v1/inbox/send_message_whatsapp
Send a message to the specified phone number via WhatsApp channel.
The phone number must be registered in WhatsApp.
If parameter withCase
is true, the message will always be sent to an open case. If the user already has an open case, the message will be sent to that case. Otherwise, a new case will be created for the user.
Headers
API-Key*
string
API key for accessing the API.
Content-Type
string
Content type of the request body.
User-Agent
string
The user agent of the client accessing the API.
Request Body
channelID
string
The channel ID.
phone
string
The phone number to send the message to.
messageType
string
The message type.
Allowed values: text
, image
, file
body
string
The message body (text message or file URL).
filename
string
The name of the file (required for message type other than "text").
caption
string
The caption, if any (for message type "image").
withCase
boolean
If true, the message will be sent to the recipient's existing open case or a new case will be created.
topicID
integer
The topic ID for new case.
Click the right arrow above on the right side of Sync User Contact API to see the full list of request parameters and the response.
Channel ID can be obtained in OneTalk Dashboard Go to Integration and click WhatsApp for SME, then click the channel detail and you can copy the Channel ID
Send Templated Message via WhatsApp Business API
POST
https://onetalk-api.taptalk.io/api/integration/v1/inbox/send_templated_message_whatsappba
Send a templated message to the specified phone number via a WhatsApp Business API channel.
The phone number must be registered in WhatsApp.
If parameter withCase
is true, the message will always be sent to an open case. If the user already has an open case, the message will be sent to that case. Otherwise, a new case will be created for the user.
Headers
API-Key*
string
API key for accessing the API
Content-Type
string
Content type of the request body.
User-Agent
string
The user agent of the client accessing the API.
Request Body
channelID*
string
The channel ID.
phone*
string
The phone number to send the message to.
templateName*
string
The message template name.
languageCode*
string
The language code of the template message.
parameters
object
Parameters for the message template.
header
array
Parameters for template header.
name
string
Name of the parameter.
value
string
Value of the parameter.
body
array
Parameters for template body.
name
string
Name of the parameter.
value
string
Value of the parameter.
footer
array
Parameters for template footer.
name
string
Name of the parameter.
value
string
Value of the parameter.
withCase
boolean
If true, the message will be sent to the recipient's existing open case or a new case will be created.
phoneNumberID*
string
The phone number ID to send the message from.
buttons
array
Parameters for template buttons.
name
string
Name of the parameter.
value
string
Value of the parameter.
topicID
integer
The topic ID for new case.
Click the right arrow above on the right side of Sync User Contact API to see the full list of request parameters and the response.
Channel ID can be seen in OneTalk Dashboard Go to Integration and click WhatsApp Business API, then click the channel detail and you can copy the Channel ID
Get Updated Case List
GET
https://onetalk-api.taptalk.io/api/integration/v1/inbox/case/get_updated_list
Get the list of new and updated cases since since_timestamp
.
Headers
API-Key*
string
API key for accessing the API
Content-Type
string
Content type of the request body.
User-Agent
string
The user agent of the client accessing the API.
Request Body
since_timestamp *
long
Timestamp in Unix milliseconds to start getting the updates from.
limit
integer
Maximum number of items to retrieve.
Default value: 100
Size range: 1..100
Click the right arrow above on the right side of Get Updated Case List API to see the full list of request parameters and the response.
Last updated