Download OpenAPI specification:Download
Interact with the Saysimple platform via the Saysimple API.
Every request needs both the Authorization and X-API-Key header to authorize the request.
Header | Type | Example |
---|---|---|
Authorization | String | 0000aaaa00000000aaa00000a |
X-API-Key | String | bb11111b1b1bb1111b1bb1bb11b111b111111b11 |
If you like to work with Postman, you can download the API with the collection. Please be sure that the Authorization and X-API-Key are configured correctly.
We recommend to setup the pre-request script as shown below at the root level of the collection, so every request can inherit the authorization from the parent. The script will also ensure that the X-API-Key will be added to every request.
pm.request.headers.add({
key: "Authorization",
value: pm.environment.get("Authorization")
});
pm.request.headers.add({
key: "X-API-Key",
value: pm.environment.get("X-API-Key")
});
Within Postman, you can setup an environment with it's own variables. When using the pre-request script as shown above, it's required to setup these environment variables.
Variable | Type | Example |
---|---|---|
basePath | String | messaging/v3 |
baseUrl | String | https://api.saysimple.io/{{basePath}} |
Authorization | String | 0000aaaa00000000aaa00000a |
X-API-Key | String | bb11111b1b1bb1111b1bb1bb11b111b111111b11 |
The following channels are supported by the Saysimple API. Keep in mind the channels must be installed and configured before using them:
Saysimple provides several webhooks to receive data when a specific event occurs. The data will be posted as a JSON object to a specified URL. Webhooks are versioned, when creating or updating a webhook you can pass along your desired version. In the table of available webhooks you can see which versions of each webhook are supported at this moment. Older versions may be deprecated and sunsetted eventually, so we encourage everyone to use the most recent versions. This document will show payloads for the newest versions available.
Available webhooks
Event | Description | Supported versions |
---|---|---|
entry::received | A new inbound message has been received at Saysimple. | 3 |
entry::sent | The outbound message is received by WhatsApp, but not yet delivered to the client. | 3 |
entry::delivered | The outbound message is delivered to the client. | 3 |
entry::read | The outbound message has been read by the client. | 3 |
entry::declined | The outbound message couldn’t be delivered | 3 |
chat::created | A new chat has been created, because the inbound message was not linked to an existing chat. | 3 |
chat::assigned | The assignee of the chat has been changed. | 3 |
chat::unassigned | The assignee of the chat was unset, so the chat has no assignee anymore. | 3 |
chat::archived | The chat has been moved to the archive. | 3 |
chat::unarchived | The chat has been moved from archive to another status. | 3 |
It's possible to receive messages in real-time. Saysimple will forward incoming messages to a configured webhook if enabled. This is done with the POST method. The webhook endpoint needs to be configured to catch these POST requests.
The POST request includes a JSON body payload.
Example:
{
"event": "entry::received",
"payload": {
"chat": {
"id": 2,
"contactId": 4,
"channelId": 5,
"platform": "whatsapp",
"identity": "+31 6 xxxxxxxx",
"assignedUserId": 6,
"assignedTeamId": null,
"status": "open",
"externalReference": "xxxx8aaa2a4aac34aaae7a4e4xxxxxxx",
"assignmentLastChangedAt": "2023-08-01T12:45:19.000Z",
"createdAt": "2023-08-01T12:37:39.810Z",
"chatTags": []
},
"entry": {
"id": 3,
"chatId": 2,
"type": "message",
"time": "2023-08-01T12:37:39.810Z",
"direction": "in",
"status": "received",
"statusReason": null,
"tags": null,
"externalReference": null,
"createdByEntity": "user",
"createdById": 6,
"createdAt": "2023-08-01T12:37:39.810Z",
"message": "This is a dummy message!",
"templateId": null,
"components": null
}
},
"module": "messaging",
"webhookVersion": 3
}
Keep in mind that the URL of the attachments is available for 1 minute. After that period, the attachment won't be served.
When you like to receive data of a message when the status of the message changes, you can setup a webhook.
The webhook will be triggered when the message has been send, delivered, declined or read.
Example:
{
"event": "entry::<x>",
"status": "sent",
"messageReference": "87d41c4ed6621f9cbcb63581d91a88d9",
"payload": {
"chat": {
"id": 1,
"contactId": 2,
"channelId": 3,
"platform": "test",
"identity": "+31 6 xxxxxxxx",
"assignedUserId": 6,
"assignedTeamId": null,
"status": "open",
"externalReference": "xxxx8aaa2a4aac34aaae7a4e4xxxxxxx",
"assignmentLastChangedAt": "2023-08-01T12:45:19.000Z",
"createdAt": "2023-08-01T12:37:39.810Z",
"chatTags": []
},
"entry": {
"id": 1,
"chatId": 5,
"type": "message",
"time": "2023-07-31T07:45:55.902Z",
"direction": "out",
"status": "sent",
"statusReason": null,
"tags": null,
"externalReference": "87d41c4ed6621f9cbcb63581d91a88d9",
"createdByEntity": "user",
"createdById": 1,
"createdAt": "2023-07-31T07:45:56.000Z",
"metadata": {},
"templateId": null,
"message": "Test message",
"components": null
}
},
"module": "messaging",
"webhookVersion": 3
}
Chats will have a status, for example if they’re new, assigned to an agent or archived. When the correct webhook has been set, you can receive the chat data when data has been changed, for example when the agent moves a chat to the archive or when the agent assigned a chat to someone else.
Example:
{
"event": "chat::<x>",
"payload": {
"chat": {
"id": 1,
"contactId": 3,
"channelId": 4,
"platform": "whatsapp",
"identity": "+31 6 xxxxxxxx",
"assignedUserId": 2,
"assignedTeamId": null,
"status": "open",
"assignmentLastChangedAt": "2023-07-31T08:05:12.000Z",
"createdAt": "2023-07-31T07:55:34.000Z"
},
entry: null
},
"module": "messaging",
"webhookVersion": 3
}
Our API is mainly used to send and receive messages. To send a message you must use the Messages - Create/Send endpoint:
https://api.saysimple.io/messaging/v3/messages/send
In the provided example, a template is used to demonstrate sending a message. If you don't want to send a template you can remove this section. Keep in mind that to start a chat, you must send a template first. Example:
{
"contactActor": {
"identity": "+31 6 xxxxxxxx",
}
"channelActor": {
"channelId": "1",
}
"content": {
"template": {
"id": "1"
},
"text": "Hi, Welcome by Saysimple!",
}
}
To retrieve all your available templates, you can use the Templates endpoint.
https://api.saysimple.io/messaging/v3/templates
To know more about templates please read the following knowledge base articles:
Template information and requesting new templates:
https://help.saysimple.com/request-a-whatsapp-template
Media Template information and requesting new media templates:
https://help.saysimple.com/whatsapp-media-templates
More information about the 24 hour customer care window:
https://help.saysimple.com/the-24-hour-customer-care-window
More information about conversation based pricing:
https://help.saysimple.com/whatsapp-conversation-based-pricing-1
We hope this documentation makes our API as clear as needed for your development process.
But we are happy to assist you in any way we can during development - up to certain extends of course 😉.
Please contact us at support@saysimple.com.
Create new API key
id | integer >= 1 |
key required | string = 40 characters |
publicKey | string |
secret required | string = 60 characters |
expiresAt | string <date-time> |
{- "id": 1,
- "key": "c1db11a678867ab52b49a3be1ba844a428f6fe8c",
- "publicKey": "",
- "secret": "$2a$10$fhfknG4wprB6MkQrHQniPOUgVp4cmz3NjBnZU3X9HoNaTrUl.v1lG",
- "expiresAt": "2019-08-24T14:15:22Z"
}
{- "id": 1,
- "key": "c1db11a678867ab52b49a3be1ba844a428f6fe8c",
- "publicKey": "",
- "secret": "$2a$10$fhfknG4wprB6MkQrHQniPOUgVp4cmz3NjBnZU3X9HoNaTrUl.v1lG",
- "expiresAt": "2019-08-24T14:15:22Z"
}
Get details of particular API key
apiKeyId required | integer >= 1 Example: 1 API key identifier |
{- "id": 1,
- "key": "c1db11a678867ab52b49a3be1ba844a428f6fe8c",
- "publicKey": "",
- "secret": "$2a$10$fhfknG4wprB6MkQrHQniPOUgVp4cmz3NjBnZU3X9HoNaTrUl.v1lG",
- "expiresAt": "2019-08-24T14:15:22Z"
}
Delete API key
apiKeyId required | integer >= 1 Example: 1 API key identifier |
{- "id": 1,
- "key": "c1db11a678867ab52b49a3be1ba844a428f6fe8c",
- "publicKey": "",
- "secret": "$2a$10$fhfknG4wprB6MkQrHQniPOUgVp4cmz3NjBnZU3X9HoNaTrUl.v1lG",
- "expiresAt": "2019-08-24T14:15:22Z"
}
Get details of particular app
appId required | integer >= 1 Example: 1 App identifier |
{- "id": 1,
- "name": "App name",
- "enabled": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "packageName": "@apps/appName",
- "settings": [
- {
- "id": 1,
- "name": "active",
- "value": null
}
]
}
Update details of the particular app
appId required | integer >= 1 Example: 1 App identifier |
id | integer >= 1 | ||||||
name required | string | ||||||
enabled required | integer [ 0 .. 1 ] Default: 1 | ||||||
createdAt | string <date-time> | ||||||
packageName | string | ||||||
Array of objects (AppSettings Schema) | |||||||
Array
|
{- "id": 1,
- "name": "App name",
- "enabled": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "packageName": "@apps/appName",
- "settings": [
- {
- "id": 1,
- "name": "active",
- "value": null
}
]
}
{- "id": 1,
- "name": "App name",
- "enabled": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "packageName": "@apps/appName",
- "settings": [
- {
- "id": 1,
- "name": "active",
- "value": null
}
]
}
Update details of the particular app
appId required | integer >= 1 Example: 1 App identifier |
id | integer >= 1 | ||||||
name required | string | ||||||
enabled required | integer [ 0 .. 1 ] Default: 1 | ||||||
createdAt | string <date-time> | ||||||
packageName | string | ||||||
Array of objects (AppSettings Schema) | |||||||
Array
|
{- "id": 1,
- "name": "App name",
- "enabled": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "packageName": "@apps/appName",
- "settings": [
- {
- "id": 1,
- "name": "active",
- "value": null
}
]
}
{- "id": 1,
- "name": "App name",
- "enabled": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "packageName": "@apps/appName",
- "settings": [
- {
- "id": 1,
- "name": "active",
- "value": null
}
]
}
Create new data for particular app
appId required | integer >= 1 Example: 1 App identifier |
createdAt | string <date-time> |
id | integer >= 1 |
pluginId | integer >= 1 |
name required | string |
value required | string |
{- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "pluginId": 1,
- "name": "reference",
- "value": "42"
}
{- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "pluginId": 1,
- "name": "reference",
- "value": "42"
}
Get details of the data of particular app
appDataId required | integer >= 1 Example: 1 App data identifier |
appId required | integer >= 1 Example: 1 App identifier |
{- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "pluginId": 1,
- "name": "reference",
- "value": "42"
}
Update details of the data of particular app
appId required | integer >= 1 Example: 1 App identifier |
appDataId required | integer >= 1 Example: 1 App data identifier |
createdAt | string <date-time> |
id | integer >= 1 |
pluginId | integer >= 1 |
name required | string |
value required | string |
{- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "pluginId": 1,
- "name": "reference",
- "value": "42"
}
{- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "pluginId": 1,
- "name": "reference",
- "value": "42"
}
Update details of the data of particular app
appDataId required | integer >= 1 Example: 1 App data identifier |
appId required | integer >= 1 Example: 1 App identifier |
createdAt | string <date-time> |
id | integer >= 1 |
pluginId | integer >= 1 |
name required | string |
value required | string |
{- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "pluginId": 1,
- "name": "reference",
- "value": "42"
}
{- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "pluginId": 1,
- "name": "reference",
- "value": "42"
}
Upload assets to storage
storageName required | string Example: example-s3-abcdefg Name of the storage |
Accept required | string Example: application/json, text/plain, */* |
Content-Type required | string Example: multipart/form-data; boundary=---------------------------69605647820810367421277899858 |
file | string <binary> |
{- "uploadType": "url",
- "category": "image",
- "contentType": "image/jpeg",
- "filePath": "example-s3-abcdef/jpeg/",
- "fileName": "e36v81tl6442x0z.jpeg",
- "originalName": "test-image1.jpg",
- "storageName": "example-s3-abcdef"
}
Save an asset in the database. (Requires the asset to be uploaded)
Accept required | string |
Content-Type required | string |
id | integer >= 1 |
category | string Enum: "image" "video" "audio" "application" "text" |
linkType | string Enum: "messagingChatEntry" "emailChatEntry" "teamChatEntry" |
contentType | string Enum: "application/msword" "application/vnd.ms-powerpoint" "application/vnd.ms-excel" "application/csv" "application/pdf" "audio/aac" "audio/amr" "audio/mp4" "audio/mpeg" "audio/mpeg3" "audio/oga" "audio/ogg codecs=opus" "audio/ogg" "audio/wav" "audio/x-wav" "audio/wave" "audio/x-m4a" "image/bmp" "image/gif" "image/heic" "image/jpeg" "image/jpg" "image/png" "image/svg+xml" "image/tiff" "image/vnd.adobe.photoshop" "image/vnd.dwg" "image/webp" "text/csv" "text/plain" "video/3gpp" "video/mp4" "video/quicktime" "video/webm" "video/x-msvideo" "video/x-matroska" "video/x-flv" |
filePath | string |
fileName | string |
originalName | string |
providerSource | string |
createdAt | string <date-time> |
teamChatEntryId | integer >= 1 |
{- "id": 1,
- "category": "image",
- "linkType": "messagingChatEntry",
- "contentType": "image/jpeg",
- "filePath": "/sent/image/20236/original/jpeg/",
- "fileName": "dhsitl7kde98t.jpeg",
- "originalName": "saysimple.jpeg",
- "providerSource": null,
- "createdAt": "2019-08-24T14:15:22Z",
- "teamChatEntryId": 1
}
{- "id": 1,
- "category": "image",
- "linkType": "messagingChatEntry",
- "contentType": "image/jpeg",
- "filePath": "/sent/image/20236/original/jpeg/",
- "fileName": "dhsitl7kde98t.jpeg",
- "originalName": "saysimple.jpeg",
- "providerSource": null,
- "createdAt": "2019-08-24T14:15:22Z",
- "teamChatEntryId": 1
}
Get details of asset.
assetId required | integer >= 1 Example: 1 Asset identifier |
{- "id": 1,
- "category": "image",
- "linkType": "messagingChatEntry",
- "contentType": "image/jpeg",
- "filePath": "/sent/image/20236/original/jpeg/",
- "fileName": "dhsitl7kde98t.jpeg",
- "originalName": "saysimple.jpeg",
- "providerSource": null,
- "createdAt": "2019-08-24T14:15:22Z",
- "teamChatEntryId": 1
}
[- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
Get details of particular channel.
channelId required | integer >= 1 Example: 1 Channel identifier |
{- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
Update details of particular channel.
channelId required | integer >= 1 Example: 1 Channel identifier |
id | integer >= 1 Channel identifier | ||||||||||
name required | string Channel name | ||||||||||
platform required | string Enum: "business_messages" "direct_messages" "email" "instagram" "messenger" "sms" "test" "web" "whatsapp" The platform where the channel is connected to | ||||||||||
identity required | string Unique identifier of the channel. Format depends on platform. | ||||||||||
active | integer [ 0 .. 1 ] Default: 1 Enum: 0 1 Channel is active and can be used | ||||||||||
createdAt | string <date-time> Creation date of the channel | ||||||||||
customerCareWindowLength | integer >= 0 Default: 24 Number of hours within you can send a message. Outside these hours, you need to send a template. 0 is disabled. | ||||||||||
Array of objects (ChannelSetting Schema) | |||||||||||
Array
|
{- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
{- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
Replace a channel
channelId required | integer >= 1 Example: 1 Channel identifier |
id | integer >= 1 Channel identifier | ||||||||||
name required | string Channel name | ||||||||||
platform required | string Enum: "business_messages" "direct_messages" "email" "instagram" "messenger" "sms" "test" "web" "whatsapp" The platform where the channel is connected to | ||||||||||
identity required | string Unique identifier of the channel. Format depends on platform. | ||||||||||
active | integer [ 0 .. 1 ] Default: 1 Enum: 0 1 Channel is active and can be used | ||||||||||
createdAt | string <date-time> Creation date of the channel | ||||||||||
customerCareWindowLength | integer >= 0 Default: 24 Number of hours within you can send a message. Outside these hours, you need to send a template. 0 is disabled. | ||||||||||
Array of objects (ChannelSetting Schema) | |||||||||||
Array
|
{- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
{- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
Authenticate a channel connected to Saysimple
channelId required | integer >= 1 Example: 1 Channel identifier |
facebookToken | string |
{- "facebookToken": "string"
}
{- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
Connects a channel to Saysimple
channelId required | integer >= 1 Example: 1 Channel identifier |
userAccessToken | string |
{- "userAccessToken": "string"
}
{- "access_token": "string"
}
Disconnects a channel from Saysimple
channelId required | integer >= 1 Example: 1 Channel identifier |
{- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
Get delivery stats map for given campaignsIds
ids required | Array of integers[ items >= 1 ] Example: ids=1&ids=2&ids=3&ids=4 The identifiers of the campaigns you want to get the delivery stats from |
{- "1": {
- "read": [
- 1
], - "delivered": [
- 1
], - "total": [
- 1
], - "totalContacts": 0
}
}
{- "count": 25,
- "total": 107,
- "page": 1,
- "pageCount": 5,
- "data": [
- {
- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}
]
}
Create new internal comment
id | integer >= 1 |
userId | integer >= 1 |
chatId | integer >= 1 |
channelId | integer >= 1 |
contactId required | integer >= 1 |
comment required | string |
createdAt | string <date-time> |
editedAt | string <date-time> |
{- "id": 1,
- "userId": 1,
- "chatId": 1,
- "channelId": 1,
- "contactId": 1,
- "comment": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z"
}
{- "id": 1,
- "userId": 1,
- "chatId": 1,
- "channelId": 1,
- "contactId": 1,
- "comment": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z"
}
Get internal comment
internalCommentId required | integer >= 1 Example: 1 Internal comment identifier |
{- "id": 1,
- "userId": 1,
- "chatId": 1,
- "channelId": 1,
- "contactId": 1,
- "comment": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z"
}
Update internal comment
internalCommentId required | integer >= 1 Example: 1 Internal comment identifier |
id | integer >= 1 |
userId | integer >= 1 |
chatId | integer >= 1 |
channelId | integer >= 1 |
contactId required | integer >= 1 |
comment required | string |
createdAt | string <date-time> |
editedAt | string <date-time> |
{- "id": 1,
- "userId": 1,
- "chatId": 1,
- "channelId": 1,
- "contactId": 1,
- "comment": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z"
}
{- "id": 1,
- "userId": 1,
- "chatId": 1,
- "channelId": 1,
- "contactId": 1,
- "comment": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z"
}
Delete internal comment
internalCommentId required | integer >= 1 Example: 1 Internal comment identifier |
{- "id": 1,
- "userId": 1,
- "chatId": 1,
- "channelId": 1,
- "contactId": 1,
- "comment": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "editedAt": "2019-08-24T14:15:22Z"
}
{- "count": 25,
- "total": 107,
- "page": 1,
- "pageCount": 5,
- "data": [
- {
- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}
]
}
Get details of a messaging chat.
chatId required | integer >= 1 Example: 1 Messaging chat identifier |
{- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}
Update messaging chat
chatId required | integer >= 1 Example: 1 Messaging chat identifier |
id | integer | ||||
contactId | integer | ||||
channelId | integer | ||||
platform | string Enum: "business_messages" "direct_messages" "email" "instagram" "messenger" "sms" "test" "web" "whatsapp" | ||||
identity | string | ||||
assignedUserId | integer | ||||
assignedTeamId | integer | ||||
status | string Enum: "open" "closed" | ||||
externalReference | string | ||||
assignmentLastChangedAt | string <date-time> | ||||
closedBy | integer | ||||
closedAt | string <date-time> | ||||
createdAt | string <date-time> | ||||
object | |||||
|
{- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}
{- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}
Get paginated entries of a messaging chat.
chatId required | integer >= 1 Example: 1 Messaging chat identifier |
{- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}
Archive messaging chat
chatId required | integer >= 1 |
{- "chatId": 1
}
{- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}
Unarchive chat
chatId required | integer >= 1 |
{- "chatId": 1
}
{- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}
Assign chat to user or team
chatId required | integer >= 1 |
userId | integer >= 1 |
teamId | integer >= 1 |
{- "chatId": 1,
- "userId": 1,
- "teamId": 1
}
{- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}
Unassign chat
chatId required | integer >= 1 |
{- "chatId": 1
}
{- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}
Set messaging chat to read.
chatId required | integer >= 1 |
userId | integer >= 1 |
lastReadAt | string <date-time> |
{- "chatId": 1,
- "userId": 1,
- "lastReadAt": "2019-08-24T14:15:22Z"
}
{- "chatId": 1,
- "channelId": 1,
- "userId": 1,
- "assignedUserId": 1,
- "assignedTeamId": 1,
- "readForAll": false,
- "isChatRead": false,
- "lastEntryReadAt": "2019-08-24T14:15:22Z"
}
Set messaging chat to unread.
chatId required | integer >= 1 |
userId | integer >= 1 |
lastReadAt | string <date-time> |
{- "chatId": 1,
- "userId": 1,
- "lastReadAt": "2019-08-24T14:15:22Z"
}
{- "chatId": 1,
- "channelId": 1,
- "userId": 1,
- "assignedUserId": 1,
- "assignedTeamId": 1,
- "readForAll": false,
- "isChatRead": false,
- "lastEntryReadAt": "2019-08-24T14:15:22Z"
}
Delete messaging chat
chatId required | integer >= 1 |
{- "chatId": 1
}
{- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}
Get one entry of chat.
entryId required | integer >= 1 Example: 1 Entry identifier |
{- "direction": "in",
- "id": 0,
- "identityId": 0,
- "message": "string",
- "status": "declined",
- "time": "2019-08-24T14:15:22Z",
- "type": "text",
- "userId": 0
}
Get a list of contacts
page required | integer Example: page=1 Page number |
limit required | integer Example: limit=100 Items per page |
object (Contact Schema) Examples:
Search for specific contact by one or multiple of it's properties | |
object (Contact Schema) Example: fields=name,email Properties to return, comma separated | |
join | string Enum: "metadata" "labels" "internalComments" Example: join=metadata&join=labels Extra data to fetch with each contact |
[- {
- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
]
Create new contact
id | integer >= 1 | ||||||
name | string | ||||||
countryCode | string | ||||||
string <email> | |||||||
phone | string | ||||||
street | string | ||||||
houseNumber | string | ||||||
zipCode | string | ||||||
city | string | ||||||
province | string | ||||||
country | string | ||||||
reference | string | ||||||
company | string | ||||||
jobTitle | string | ||||||
isHighPriority | integer >= 0 Default: 0 Enum: 0 1 | ||||||
createdAt | string <date-time> | ||||||
isBlocked | integer >= 0 Default: 0 Enum: 0 1 | ||||||
Array of objects If metadata does not exists, it will be created. Provide the id to update existing metadata. | |||||||
Array
| |||||||
Array of objects If label does not exists, it will be created. Provide the id to update existing labels. | |||||||
Array
|
{- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
{- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
Insert a new contact metadata entry
id | integer >= 1 |
contactId | integer >= 1 |
name required | string <= 50 characters |
value required | string <= 50 characters |
createdAt | string <date-time> |
{- "id": 1,
- "contactId": 1,
- "name": "color",
- "value": "blue",
- "createdAt": "2019-08-24T14:15:22Z"
}
{- "id": 1,
- "contactId": 1,
- "name": "color",
- "value": "blue",
- "createdAt": "2019-08-24T14:15:22Z"
}
Get one specific contact metadata entry
metadataId required | integer >= 1 Example: 1 Metadata identifier |
{- "id": 1,
- "contactId": 1,
- "name": "color",
- "value": "blue",
- "createdAt": "2019-08-24T14:15:22Z"
}
Update a specific contact metadata entry
metadataId required | integer >= 1 Example: 1 Metadata identifier |
id | integer >= 1 |
contactId | integer >= 1 |
name required | string <= 50 characters |
value required | string <= 50 characters |
createdAt | string <date-time> |
{- "id": 1,
- "contactId": 1,
- "name": "color",
- "value": "blue",
- "createdAt": "2019-08-24T14:15:22Z"
}
{- "id": 1,
- "contactId": 1,
- "name": "color",
- "value": "blue",
- "createdAt": "2019-08-24T14:15:22Z"
}
Get details of particular contact
contactId required | integer >= 1 Example: 1 Contact identifier |
object (Contact Schema) Example: fields=name,email Properties to return, comma separated | |
join | string Enum: "metadata" "labels" "internalComments" Example: join=metadata&join=labels Extra data to fetch with the contact |
{- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
Update details of particular contact
contactId required | integer >= 1 Example: 1 Contact identifier |
id | integer >= 1 | ||||||
name | string | ||||||
countryCode | string | ||||||
string <email> | |||||||
phone | string | ||||||
street | string | ||||||
houseNumber | string | ||||||
zipCode | string | ||||||
city | string | ||||||
province | string | ||||||
country | string | ||||||
reference | string | ||||||
company | string | ||||||
jobTitle | string | ||||||
isHighPriority | integer >= 0 Default: 0 Enum: 0 1 | ||||||
createdAt | string <date-time> | ||||||
isBlocked | integer >= 0 Default: 0 Enum: 0 1 | ||||||
Array of objects If metadata does not exists, it will be created. Provide the id to update existing metadata. | |||||||
Array
| |||||||
Array of objects If label does not exists, it will be created. Provide the id to update existing labels. | |||||||
Array
|
{- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
{- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
Add provided labels to an existing contact
contactId required | integer >= 1 Example: 1 Contact identifier |
id | integer >= 1 | ||||||
name | string | ||||||
countryCode | string | ||||||
string <email> | |||||||
phone | string | ||||||
street | string | ||||||
houseNumber | string | ||||||
zipCode | string | ||||||
city | string | ||||||
province | string | ||||||
country | string | ||||||
reference | string | ||||||
company | string | ||||||
jobTitle | string | ||||||
isHighPriority | integer >= 0 Default: 0 Enum: 0 1 | ||||||
createdAt | string <date-time> | ||||||
isBlocked | integer >= 0 Default: 0 Enum: 0 1 | ||||||
Array of objects If metadata does not exists, it will be created. Provide the id to update existing metadata. | |||||||
Array
| |||||||
Array of objects If label does not exists, it will be created. Provide the id to update existing labels. | |||||||
Array
|
{- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
{- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
Remove provided labels from existing contact
contactId required | integer >= 1 Example: 1 Contact identifier |
id | integer >= 1 | ||||||
name | string | ||||||
countryCode | string | ||||||
string <email> | |||||||
phone | string | ||||||
street | string | ||||||
houseNumber | string | ||||||
zipCode | string | ||||||
city | string | ||||||
province | string | ||||||
country | string | ||||||
reference | string | ||||||
company | string | ||||||
jobTitle | string | ||||||
isHighPriority | integer >= 0 Default: 0 Enum: 0 1 | ||||||
createdAt | string <date-time> | ||||||
isBlocked | integer >= 0 Default: 0 Enum: 0 1 | ||||||
Array of objects If metadata does not exists, it will be created. Provide the id to update existing metadata. | |||||||
Array
| |||||||
Array of objects If label does not exists, it will be created. Provide the id to update existing labels. | |||||||
Array
|
{- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
{- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
[- {
- "id": 1,
- "name": "Contact list name",
- "description": "Contact list description",
- "createdAt": "2019-08-24T14:15:22Z",
- "contacts": [
- {
- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
]
}
]
Create new contacts list
object (ContactsLists Schema) | |||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||
updateExisting | boolean | ||||||||||||||||||||||||||||||||||||||||||||||||||
importedContactData | boolean |
{- "contactLists": {
- "id": 1,
- "name": "Contact list name",
- "description": "Contact list description",
- "createdAt": "2019-08-24T14:15:22Z",
- "contacts": [
- {
- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
]
}, - "updateExisting": true,
- "importedContactData": true
}
{- "id": 1,
- "name": "Contact list name",
- "description": "Contact list description",
- "createdAt": "2019-08-24T14:15:22Z",
- "contacts": [
- {
- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
]
}
Get details of particular contacts list
contactsListId required | integer >= 1 Example: 1 ContactsList identifier |
[- {
- "id": 1,
- "name": "Contact list name",
- "description": "Contact list description",
- "createdAt": "2019-08-24T14:15:22Z",
- "contacts": [
- {
- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
]
}
]
Update details of particular contacts list
contactsListId required | integer >= 1 Example: 1 ContactsList identifier |
id | integer >= 1 | ||||||||||||||||||||||||||||||||||||||
name | string | ||||||||||||||||||||||||||||||||||||||
description | string | ||||||||||||||||||||||||||||||||||||||
createdAt | string <date-time> | ||||||||||||||||||||||||||||||||||||||
Array of objects (ContactsList Schema) | |||||||||||||||||||||||||||||||||||||||
Array
|
{- "id": 1,
- "name": "Contact list name",
- "description": "Contact list description",
- "createdAt": "2019-08-24T14:15:22Z",
- "contacts": [
- {
- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
]
}
{- "id": 1,
- "name": "Contact list name",
- "description": "Contact list description",
- "createdAt": "2019-08-24T14:15:22Z",
- "contacts": [
- {
- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
]
}
Add contacts to an existing list by contact IDs
contactsListId required | integer >= 1 Example: 1 ContactsList identifier |
id | integer >= 1 | ||||||||||||||||||||||||||||||||||||||
name | string | ||||||||||||||||||||||||||||||||||||||
description | string | ||||||||||||||||||||||||||||||||||||||
createdAt | string <date-time> | ||||||||||||||||||||||||||||||||||||||
Array of objects (ContactsList Schema) | |||||||||||||||||||||||||||||||||||||||
Array
|
{- "id": 1,
- "name": "Contact list name",
- "description": "Contact list description",
- "createdAt": "2019-08-24T14:15:22Z",
- "contacts": [
- {
- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
]
}
{- "id": 1,
- "name": "Contact list name",
- "description": "Contact list description",
- "createdAt": "2019-08-24T14:15:22Z",
- "contacts": [
- {
- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
]
}
Remove contacts from an existing list by contact IDs
contactsListId required | integer >= 1 Example: 1 ContactsList identifier |
id | integer >= 1 | ||||||||||||||||||||||||||||||||||||||
name | string | ||||||||||||||||||||||||||||||||||||||
description | string | ||||||||||||||||||||||||||||||||||||||
createdAt | string <date-time> | ||||||||||||||||||||||||||||||||||||||
Array of objects (ContactsList Schema) | |||||||||||||||||||||||||||||||||||||||
Array
|
{- "id": 1,
- "name": "Contact list name",
- "description": "Contact list description",
- "createdAt": "2019-08-24T14:15:22Z",
- "contacts": [
- {
- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
]
}
{- "id": 1,
- "name": "Contact list name",
- "description": "Contact list description",
- "createdAt": "2019-08-24T14:15:22Z",
- "contacts": [
- {
- "id": 1,
- "name": "John Doe",
- "countryCode": "NL",
- "email": "john.doe@example.com",
- "phone": "+31 6 12345678",
- "street": "Examplestreet",
- "houseNumber": "14A",
- "zipCode": "1234 AB",
- "city": "Haarlem",
- "province": "Noord-Holland",
- "country": "Netherlands",
- "reference": null,
- "company": "Saysimple",
- "jobTitle": "Developer",
- "isHighPriority": 0,
- "createdAt": "2019-08-24T14:15:22Z",
- "isBlocked": 0,
- "metadata": [
- {
- "id": 1,
- "name": "color",
- "value": "blue"
}
], - "labels": [
- {
- "id": 1,
- "name": "support",
- "color": "#df4195"
}
]
}
]
}
Create new label
id | integer >= 1 |
name required | string |
createdAt | string <date-time> |
{- "id": 1,
- "name": "development",
- "createdAt": "2019-08-24T14:15:22Z"
}
{- "id": 1,
- "name": "development",
- "createdAt": "2019-08-24T14:15:22Z"
}
Update details of particular label
labelId required | integer >= 1 Example: 1 Label identifier |
id | integer >= 1 |
name required | string |
createdAt | string <date-time> |
{- "id": 1,
- "name": "development",
- "createdAt": "2019-08-24T14:15:22Z"
}
{- "id": 1,
- "name": "development",
- "createdAt": "2019-08-24T14:15:22Z"
}
Create and send new message.
object | |||||||||||||||||
| |||||||||||||||||
object The channel where the message will be sent from. | |||||||||||||||||
| |||||||||||||||||
object The identifier information of the receiver of the message. | |||||||||||||||||
| |||||||||||||||||
object metadata for a message | |||||||||||||||||
| |||||||||||||||||
required | object The content of the message to be send. | ||||||||||||||||
|
The user- and chat sections are optional.
{- "chat": {
- "id": 1
}, - "content": {
- "text": "Lorem ipsum dolor sit amet"
}, - "channelActor": {
- "channelId": 10
}, - "contactActor": {
- "identity": "+31 6 xxxxxxxx"
}
}
{- "chat": {
- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}, - "entries": [
- {
- "id": 1,
- "contactId": 2,
- "channelId": 3,
- "platform": "whatsapp",
- "identity": "+31 6 00000000",
- "assignedUserId": 8,
- "assignedTeamId": null,
- "status": "open",
- "externalReference": "invoice-42",
- "assignmentLastChangedAt": "2019-08-24T14:15:22Z",
- "closedBy": 1,
- "closedAt": "2019-08-24T14:15:22Z",
- "createdAt": "2019-08-24T14:15:22Z",
- "chatTags": {
- "chatId": 1,
- "tagId": 37
}
}
]
}
[- {
- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
]
Create new quick reply
id | integer >= 1 | ||||||||||||||||
title | string | ||||||||||||||||
content | string | ||||||||||||||||
category | string | ||||||||||||||||
private | integer Default: 1 Enum: 0 1 | ||||||||||||||||
userId | integer >= 1 | ||||||||||||||||
approvedAt | string <date-time> | ||||||||||||||||
mediaType | string Enum: "image" "document" | ||||||||||||||||
createdAt | string <date-time> | ||||||||||||||||
externalData | string | ||||||||||||||||
Array of objects (Channel Schema) | |||||||||||||||||
Array
|
{- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
{- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
Get details of particular quick reply.
quickReplyId required | integer >= 1 Example: 1 Quick reply identifier |
{- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
Update details of particular quick reply.
quickReplyId required | integer >= 1 Example: 1 Quick reply identifier |
id | integer >= 1 | ||||||||||||||||
title | string | ||||||||||||||||
content | string | ||||||||||||||||
category | string | ||||||||||||||||
private | integer Default: 1 Enum: 0 1 | ||||||||||||||||
userId | integer >= 1 | ||||||||||||||||
approvedAt | string <date-time> | ||||||||||||||||
mediaType | string Enum: "image" "document" | ||||||||||||||||
createdAt | string <date-time> | ||||||||||||||||
externalData | string | ||||||||||||||||
Array of objects (Channel Schema) | |||||||||||||||||
Array
|
{- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
{- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
Create new team
color | string |
createdAt | string <date-time> |
id | integer >= 1 |
name required | string |
{- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
{- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
Delete particular team
teamId required | integer >= 1 Example: 1 Team identifier |
color | string |
createdAt | string <date-time> |
id | integer >= 1 |
name required | string |
{- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
Update details of particular team
teamId required | integer >= 1 Example: 1 Team identifier |
color | string |
createdAt | string <date-time> |
id | integer >= 1 |
name required | string |
{- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
{- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
Replace a particular team
teamId required | integer >= 1 Example: 1 Team identifier |
color | string |
createdAt | string <date-time> |
id | integer >= 1 |
name required | string |
{- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
{- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
[- {
- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
]
Create template.
id | integer >= 1 | ||||||||||||||||
title | string | ||||||||||||||||
content | string | ||||||||||||||||
category | string | ||||||||||||||||
private | integer Default: 1 Enum: 0 1 | ||||||||||||||||
userId | integer >= 1 | ||||||||||||||||
approvedAt | string <date-time> | ||||||||||||||||
mediaType | string Enum: "image" "document" | ||||||||||||||||
createdAt | string <date-time> | ||||||||||||||||
externalData | string | ||||||||||||||||
Array of objects (Channel Schema) | |||||||||||||||||
Array
|
{- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
{- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
Get details of particular template.
templateId required | integer >= 1 Example: 1 Template identifier |
{- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
Update details of particular template.
templateId required | integer >= 1 Example: 1 Template identifier |
id | integer >= 1 | ||||||||||||||||
title | string | ||||||||||||||||
content | string | ||||||||||||||||
category | string | ||||||||||||||||
private | integer Default: 1 Enum: 0 1 | ||||||||||||||||
userId | integer >= 1 | ||||||||||||||||
approvedAt | string <date-time> | ||||||||||||||||
mediaType | string Enum: "image" "document" | ||||||||||||||||
createdAt | string <date-time> | ||||||||||||||||
externalData | string | ||||||||||||||||
Array of objects (Channel Schema) | |||||||||||||||||
Array
|
{- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
{- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
Delete a particular template. All templates of the same name in the same WhatsApp Business Account will also be deleted!
templateId required | integer >= 1 Example: 1 Template identifier |
{- "id": 1,
- "title": "string",
- "content": "string",
- "category": "string",
- "private": 0,
- "userId": 1,
- "approvedAt": "2019-08-24T14:15:22Z",
- "mediaType": "image",
- "createdAt": "2019-08-24T14:15:22Z",
- "externalData": "string",
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
]
}
Create new subscription
id | integer >= 1 |
userId | integer >= 1 |
subscription | object |
{- "id": 1,
- "userId": 1,
- "subscription": { }
}
{- "id": 1,
- "userId": 1,
- "subscription": { }
}
Parse a message using variables retrieved from a GET request to /parse-message/variables
inputMessage required | string | ||||||||||||
object Data that will be used to parse the input message, you can supply either an id or the object itself. | |||||||||||||
|
{- "inputMessage": "string",
- "parseData": {
- "contact": 1,
- "sendingAgent": 1,
- "assignedAgent": 1
}
}
{- "parsedMessage": "string",
- "variables": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}
}
[- {
- "active": 0,
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": 1,
- "displayName": "string",
- "email": "user@example.com",
- "id": 1,
- "lastLogin": "2019-08-24T14:15:22Z",
- "name": "string",
- "role": "user",
- "status": "offline",
- "teams": [
- {
- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
]
}
]
Create new user
active | integer >= 0 Default: 0 | ||||||||||||||||
Array of objects (Channel Schema) | |||||||||||||||||
Array
| |||||||||||||||||
createdAt | string <date-time> | ||||||||||||||||
createdBy | integer >= 1 | ||||||||||||||||
displayName | string | ||||||||||||||||
string <email> | |||||||||||||||||
id | integer >= 1 | ||||||||||||||||
lastLogin | string <date-time> | ||||||||||||||||
name | string | ||||||||||||||||
role | string Enum: "user" "manager" | ||||||||||||||||
status | string Enum: "offline" "available" "unavailable" | ||||||||||||||||
Array of objects (Team Schema) | |||||||||||||||||
Array
|
{- "active": 0,
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": 1,
- "displayName": "string",
- "email": "user@example.com",
- "id": 1,
- "lastLogin": "2019-08-24T14:15:22Z",
- "name": "string",
- "role": "user",
- "status": "offline",
- "teams": [
- {
- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
]
}
{- "active": 0,
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": 1,
- "displayName": "string",
- "email": "user@example.com",
- "id": 1,
- "lastLogin": "2019-08-24T14:15:22Z",
- "name": "string",
- "role": "user",
- "status": "offline",
- "teams": [
- {
- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
]
}
Get details of particular user
userId required | integer >= 1 Example: 1 User identifier |
{- "active": 0,
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": 1,
- "displayName": "string",
- "email": "user@example.com",
- "id": 1,
- "lastLogin": "2019-08-24T14:15:22Z",
- "name": "string",
- "role": "user",
- "status": "offline",
- "teams": [
- {
- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
]
}
Update details of particular user
userId required | integer >= 1 Example: 1 User identifier |
active | integer >= 0 Default: 0 | ||||||||||||||||
Array of objects (Channel Schema) | |||||||||||||||||
Array
| |||||||||||||||||
createdAt | string <date-time> | ||||||||||||||||
createdBy | integer >= 1 | ||||||||||||||||
displayName | string | ||||||||||||||||
string <email> | |||||||||||||||||
id | integer >= 1 | ||||||||||||||||
lastLogin | string <date-time> | ||||||||||||||||
name | string | ||||||||||||||||
role | string Enum: "user" "manager" | ||||||||||||||||
status | string Enum: "offline" "available" "unavailable" | ||||||||||||||||
Array of objects (Team Schema) | |||||||||||||||||
Array
|
{- "active": 0,
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": 1,
- "displayName": "string",
- "email": "user@example.com",
- "id": 1,
- "lastLogin": "2019-08-24T14:15:22Z",
- "name": "string",
- "role": "user",
- "status": "offline",
- "teams": [
- {
- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
]
}
{- "active": 0,
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": 1,
- "displayName": "string",
- "email": "user@example.com",
- "id": 1,
- "lastLogin": "2019-08-24T14:15:22Z",
- "name": "string",
- "role": "user",
- "status": "offline",
- "teams": [
- {
- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
]
}
Replace a particular user with the provided user
userId required | integer >= 1 Example: 1 User identifier |
active | integer >= 0 Default: 0 | ||||||||||||||||
Array of objects (Channel Schema) | |||||||||||||||||
Array
| |||||||||||||||||
createdAt | string <date-time> | ||||||||||||||||
createdBy | integer >= 1 | ||||||||||||||||
displayName | string | ||||||||||||||||
string <email> | |||||||||||||||||
id | integer >= 1 | ||||||||||||||||
lastLogin | string <date-time> | ||||||||||||||||
name | string | ||||||||||||||||
role | string Enum: "user" "manager" | ||||||||||||||||
status | string Enum: "offline" "available" "unavailable" | ||||||||||||||||
Array of objects (Team Schema) | |||||||||||||||||
Array
|
{- "active": 0,
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": 1,
- "displayName": "string",
- "email": "user@example.com",
- "id": 1,
- "lastLogin": "2019-08-24T14:15:22Z",
- "name": "string",
- "role": "user",
- "status": "offline",
- "teams": [
- {
- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
]
}
{- "active": 0,
- "channels": [
- {
- "id": 1,
- "name": "whatsapp",
- "platform": "whatsapp",
- "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
- "active": 1,
- "createdAt": "2019-08-24T14:15:22Z",
- "customerCareWindowLength": 24,
- "settings": [
- {
- "id": 1,
- "channelId": 1,
- "name": "timezone",
- "value": "Europe/Amsterdam",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
], - "createdAt": "2019-08-24T14:15:22Z",
- "createdBy": 1,
- "displayName": "string",
- "email": "user@example.com",
- "id": 1,
- "lastLogin": "2019-08-24T14:15:22Z",
- "name": "string",
- "role": "user",
- "status": "offline",
- "teams": [
- {
- "color": "string",
- "createdAt": "2019-08-24T14:15:22Z",
- "id": 1,
- "name": "string"
}
]
}
[- {
- "id": 1,
- "enabled": 1,
- "event": "entry::received",
- "headers": {
- "property1": {
- "authorization": "xxx"
}, - "property2": {
- "authorization": "xxx"
}
}, - "version": 1,
- "createdAt": "2019-08-24T14:15:22Z"
}
]
Create new webhook
id | integer >= 1 Default: 1 | ||
enabled | integer [ 0 .. 1 ] Default: 1 | ||
event required | string Enum: "entry::received" "entry::sent" "entry::delivered" "entry::read" "entry::declined" "chat::created" "chat::assigned" "chat::unassigned" "chat::archived" "chat::unarchived" | ||
url required | string <url> | ||
object | |||
| |||
version | number Default: 1 Enum: 1 2 3 | ||
createdAt | string <date-time> |
{- "id": 1,
- "enabled": 1,
- "event": "entry::received",
- "headers": {
- "property1": {
- "authorization": "xxx"
}, - "property2": {
- "authorization": "xxx"
}
}, - "version": 1,
- "createdAt": "2019-08-24T14:15:22Z"
}
{- "id": 1,
- "enabled": 1,
- "event": "entry::received",
- "headers": {
- "property1": {
- "authorization": "xxx"
}, - "property2": {
- "authorization": "xxx"
}
}, - "version": 1,
- "createdAt": "2019-08-24T14:15:22Z"
}
Get details of particular webhook
webhookId required | integer >= 1 Example: 1 Webhook identifier |
{- "id": 1,
- "enabled": 1,
- "event": "entry::received",
- "headers": {
- "property1": {
- "authorization": "xxx"
}, - "property2": {
- "authorization": "xxx"
}
}, - "version": 1,
- "createdAt": "2019-08-24T14:15:22Z"
}
Update details of particular webhook
webhookId required | integer >= 1 Example: 1 Webhook identifier |
id | integer >= 1 Default: 1 | ||
enabled | integer [ 0 .. 1 ] Default: 1 | ||
event required | string Enum: "entry::received" "entry::sent" "entry::delivered" "entry::read" "entry::declined" "chat::created" "chat::assigned" "chat::unassigned" "chat::archived" "chat::unarchived" | ||
url required | string <url> | ||
object | |||
| |||
version | number Default: 1 Enum: 1 2 3 | ||
createdAt | string <date-time> |
{- "id": 1,
- "enabled": 1,
- "event": "entry::received",
- "headers": {
- "property1": {
- "authorization": "xxx"
}, - "property2": {
- "authorization": "xxx"
}
}, - "version": 1,
- "createdAt": "2019-08-24T14:15:22Z"
}
{- "id": 1,
- "enabled": 1,
- "event": "entry::received",
- "headers": {
- "property1": {
- "authorization": "xxx"
}, - "property2": {
- "authorization": "xxx"
}
}, - "version": 1,
- "createdAt": "2019-08-24T14:15:22Z"
}
Send a prompt to ChatGPT
model | string |
instruction | string |
userInput | string |
language | string |
chatId | number |
selectedMessageIds | Array of arrays |
{- "model": "string",
- "instruction": "string",
- "userInput": "string",
- "language": "string",
- "chatId": 0,
- "selectedMessageIds": [ ]
}
{- "id": "string",
- "object": "string",
- "created": 0,
- "model": "string",
- "choices": [
- {
- "index": 0,
- "message": {
- "role": "string",
- "content": "string"
}, - "finish_reason": "string"
}
], - "usage": {
- "prompt_tokens": 0,
- "completion_tokens": 0,
- "total_tokens": 0
}
}