Inbox API
The set of methods that can be used when for OneTalk Inbox
post
https://onetalk-api.taptalk.io
/api/integration/v1/inbox/send_message_whatsapp
Send Message via WhatsApp
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
Request Example (text)
Request Example (image)
Request Example (file)
1
{
2
"channelID": "2101081881",
3
"phone": "6281212345678",
4
"messageType": "text",
5
"body": "Hi, this is a message.",
6
"withCase": true
7
}
Copied!
1
{
2
"channelID": "2101081881",
3
"phone": "6281212345678",
4
"messageType": "image",
5
"body": "http://www.example.com/chat/file/image/008dce72-06c0?token=802714",
6
"filename": "my-photo.jpg",
7
"caption": "This is the photo.",
8
"withCase": true
9
}
Copied!
1
{
2
"channelID": "2101081881",
3
"phone": "6281212345678",
4
"messageType": "file",
5
"body": "http://www.example.com/chat/file/008dce72-06c0.pdf",
6
"filename": "Test.pdf",
7
"caption": "",
8
"withCase": false
9
}
Copied!
post
https://onetalk-api.taptalk.io
/api/integration/v1/inbox/send_templated_message_whatsappba
Send Templated Message via WhatsApp Business API
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
Request Example
1
{
2
"channelID": "2100480937",
3
"phone": "6281212345678",
4
"templateName": "greetings_v1",
5
"languageCode": "en",
6
"parameters": {
7
"header": [],
8
"body": [
9
{
10
"name": "name",
11
"value": "John"
12
},
13
{
14
"name": "office_hours",
15
"value": "09:00 - 17:00"
16
}
17
],
18
"footer": []
19
},
20
"withCase": true
21
}
Copied!
get
https://onetalk-api.taptalk.io
/api/integration/v1/inbox/case/get_updated_list
Get Updated Case List
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.
Request Example
1
?since_timestamp=1640367001000&limit=100
2
Copied!
First Tab
1
{
2
"status": 200,
3
"error": {
4
"code": "",
5
"message": "",
6
"field": ""
7
},
8
"data": {
9
"cases": [
10
{
11
"id": "00C49D438C",
12
"contact": {
13
"id": "76379c2a-14b7-4c88-88c7-17244be50acf",
14
"fullName": "John Doe",
15
"alias": "",
16
"email": "",
17
"phone": "628123456789",
18
"agentRemark": "",
19
"createdTime": 1587352926788,
20
"updatedTime": 0
21
},
22
"agent": {
23
"email": "[email protected]",
24
"fullName": "Agent"
25
},
26
"firstMessage": "1",
27
"isClosed": false,
28
"isJunk": false,
29
"agentRemark": "",
30
"createdTime": 1587352928385,
31
"updatedTime": 1640367746510
32
}
33
],
34
"hasMore": false,
35
"lastTimestamp": 1640367746510
36
}
37
}
Copied!
Success 200 Field Description