Saysimple API v3 (2023-09-01T12:53:21Z)

Download OpenAPI specification:Download

Interact with the Saysimple platform via the Saysimple API.

Introduction

Authorization

Every request needs both the Authorization and X-API-Key header to authorize the request.

HeaderTypeExample
AuthorizationString0000aaaa00000000aaa00000a
X-API-KeyStringbb11111b1b1bb1111b1bb1bb11b111b111111b11

Postman

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.

Authorization

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")
});

Environment variables

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.

VariableTypeExample
basePathStringmessaging/v3
baseUrlStringhttps://api.saysimple.io/{{basePath}}
AuthorizationString0000aaaa00000000aaa00000a
X-API-KeyStringbb11111b1b1bb1111b1bb1bb11b111b111111b11

Channels

The following channels are supported by the Saysimple API. Keep in mind the channels must be installed and configured before using them:

  • Whatsapp Business
  • Facebook Direct Message
  • Twitter Direct Message
  • Instagram Direct Message
  • Webchat
  • Google Business Messages
  • Apple Business Chat
  • Telegram Business Messaging
  • SMS
  • E-mail

Webhooks

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

Webhook examples

Receive messages (via webhook)

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.

Receive entry status updates (via webhooks)

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
}

Receive chat status updates (via webhooks)

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
}

Sending messages

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

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

Need help?

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.

API keys

List API keys

List API keys

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new API key

Create new API key

Request Body schema: application/json
required
id
integer >= 1
key
required
string = 40 characters
publicKey
string
secret
required
string = 60 characters
expiresAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "key": "c1db11a678867ab52b49a3be1ba844a428f6fe8c",
  • "publicKey": "",
  • "secret": "$2a$10$fhfknG4wprB6MkQrHQniPOUgVp4cmz3NjBnZU3X9HoNaTrUl.v1lG",
  • "expiresAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "key": "c1db11a678867ab52b49a3be1ba844a428f6fe8c",
  • "publicKey": "",
  • "secret": "$2a$10$fhfknG4wprB6MkQrHQniPOUgVp4cmz3NjBnZU3X9HoNaTrUl.v1lG",
  • "expiresAt": "2019-08-24T14:15:22Z"
}

Get details of particular API key

Get details of particular API key

path Parameters
apiKeyId
required
integer >= 1
Example: 1

API key identifier

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "key": "c1db11a678867ab52b49a3be1ba844a428f6fe8c",
  • "publicKey": "",
  • "secret": "$2a$10$fhfknG4wprB6MkQrHQniPOUgVp4cmz3NjBnZU3X9HoNaTrUl.v1lG",
  • "expiresAt": "2019-08-24T14:15:22Z"
}

Delete API key

Delete API key

path Parameters
apiKeyId
required
integer >= 1
Example: 1

API key identifier

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "key": "c1db11a678867ab52b49a3be1ba844a428f6fe8c",
  • "publicKey": "",
  • "secret": "$2a$10$fhfknG4wprB6MkQrHQniPOUgVp4cmz3NjBnZU3X9HoNaTrUl.v1lG",
  • "expiresAt": "2019-08-24T14:15:22Z"
}

Apps

Get a list of apps

Get a list of apps

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get details of particular app

Get details of particular app

path Parameters
appId
required
integer >= 1
Example: 1

App identifier

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "App name",
  • "enabled": 1,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "packageName": "@apps/appName",
  • "settings": [
    ]
}

Update details of the particular app

Update details of the particular app

path Parameters
appId
required
integer >= 1
Example: 1

App identifier

Request Body schema: application/json
required
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
integer >= 1
name
string
value
any

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "name": "App name",
  • "enabled": 1,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "packageName": "@apps/appName",
  • "settings": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "App name",
  • "enabled": 1,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "packageName": "@apps/appName",
  • "settings": [
    ]
}

Update details of the particular app

Update details of the particular app

path Parameters
appId
required
integer >= 1
Example: 1

App identifier

Request Body schema: application/json
required
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
integer >= 1
name
string
value
any

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "name": "App name",
  • "enabled": 1,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "packageName": "@apps/appName",
  • "settings": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "App name",
  • "enabled": 1,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "packageName": "@apps/appName",
  • "settings": [
    ]
}

Get all data of particular app

Get all data of particular app

path Parameters
appId
required
integer >= 1
Example: 1

App identifier

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new data for particular app

Create new data for particular app

path Parameters
appId
required
integer >= 1
Example: 1

App identifier

Request Body schema: application/json
required
createdAt
string <date-time>
id
integer >= 1
pluginId
integer >= 1
name
required
string
value
required
string

Responses

Request samples

Content type
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "pluginId": 1,
  • "name": "reference",
  • "value": "42"
}

Response samples

Content type
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "pluginId": 1,
  • "name": "reference",
  • "value": "42"
}

Get details of the data of particular app

Get details of the data of particular app

path Parameters
appDataId
required
integer >= 1
Example: 1

App data identifier

appId
required
integer >= 1
Example: 1

App identifier

Responses

Response samples

Content type
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "pluginId": 1,
  • "name": "reference",
  • "value": "42"
}

Update details of the data of particular app

Update details of the data of particular app

path Parameters
appId
required
integer >= 1
Example: 1

App identifier

appDataId
required
integer >= 1
Example: 1

App data identifier

Request Body schema: application/json
required
createdAt
string <date-time>
id
integer >= 1
pluginId
integer >= 1
name
required
string
value
required
string

Responses

Request samples

Content type
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "pluginId": 1,
  • "name": "reference",
  • "value": "42"
}

Response samples

Content type
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "pluginId": 1,
  • "name": "reference",
  • "value": "42"
}

Update details of the data of particular app

Update details of the data of particular app

path Parameters
appDataId
required
integer >= 1
Example: 1

App data identifier

appId
required
integer >= 1
Example: 1

App identifier

Request Body schema: application/json
required
createdAt
string <date-time>
id
integer >= 1
pluginId
integer >= 1
name
required
string
value
required
string

Responses

Request samples

Content type
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "pluginId": 1,
  • "name": "reference",
  • "value": "42"
}

Response samples

Content type
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "pluginId": 1,
  • "name": "reference",
  • "value": "42"
}

Assets

Get signed cookies for asset permissions

Get signed cookies for asset permissions

path Parameters
storageName
required
string
Example: example-s3-abcdefg

Name of the storage

Responses

Response samples

Content type
application/json
{
  • "CloudFront-Key-Pair-Id": "string",
  • "CloudFront-Policy": "string",
  • "CloudFront-Signature": "string"
}

Create signed URLs for asset permissions

Create signed URLs for asset permissions

Request Body schema: application/json
required
Array
string

Responses

Request samples

Response samples

Content type
application/json

Upload assets to storage

Upload assets to storage

path Parameters
storageName
required
string
Example: example-s3-abcdefg

Name of the storage

header Parameters
Accept
required
string
Example: application/json, text/plain, */*
Content-Type
required
string
Example: multipart/form-data; boundary=---------------------------69605647820810367421277899858
Request Body schema: multipart/form-data
required
file
string <binary>

Responses

Response samples

Content type
application/json
{
  • "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

Save an asset in the database. (Requires the asset to be uploaded)

header Parameters
Accept
required
string
Content-Type
required
string
Request Body schema: application/json
required
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

Responses

Request samples

Content type
application/json
{
  • "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
}

Response samples

Content type
application/json
{
  • "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.

Get details of asset.

path Parameters
assetId
required
integer >= 1
Example: 1

Asset identifier

Responses

Response samples

Content type
application/json
{
  • "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
}

Channels

List channels

List channels

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get details of particular channel.

Get details of particular channel.

path Parameters
channelId
required
integer >= 1
Example: 1

Channel identifier

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "whatsapp",
  • "platform": "whatsapp",
  • "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
  • "active": 1,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "customerCareWindowLength": 24,
  • "settings": [
    ]
}

Update details of particular channel.

Update details of particular channel.

path Parameters
channelId
required
integer >= 1
Example: 1

Channel identifier

Request Body schema: application/json
required
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
integer >= 1

Identifier of the channel setting

channelId
required
integer >= 1

Corresponding channel identifier

name
required
string <= 50 characters

Name of the setting

value
required
string

Value of the setting

createdAt
string <date-time>

Creation datetime

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "name": "whatsapp",
  • "platform": "whatsapp",
  • "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
  • "active": 1,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "customerCareWindowLength": 24,
  • "settings": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "whatsapp",
  • "platform": "whatsapp",
  • "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
  • "active": 1,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "customerCareWindowLength": 24,
  • "settings": [
    ]
}

Replace a channel

Replace a channel

path Parameters
channelId
required
integer >= 1
Example: 1

Channel identifier

Request Body schema: application/json
required
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
integer >= 1

Identifier of the channel setting

channelId
required
integer >= 1

Corresponding channel identifier

name
required
string <= 50 characters

Name of the setting

value
required
string

Value of the setting

createdAt
string <date-time>

Creation datetime

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "name": "whatsapp",
  • "platform": "whatsapp",
  • "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
  • "active": 1,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "customerCareWindowLength": 24,
  • "settings": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "whatsapp",
  • "platform": "whatsapp",
  • "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
  • "active": 1,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "customerCareWindowLength": 24,
  • "settings": [
    ]
}

Authenticate a channel connected to Saysimple

Authenticate a channel connected to Saysimple

path Parameters
channelId
required
integer >= 1
Example: 1

Channel identifier

Request Body schema: application/json
optional
One of
facebookToken
string

Responses

Request samples

Content type
application/json
Example
{
  • "facebookToken": "string"
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "whatsapp",
  • "platform": "whatsapp",
  • "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
  • "active": 1,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "customerCareWindowLength": 24,
  • "settings": [
    ]
}

Connects a channel to Saysimple

Connects a channel to Saysimple

path Parameters
channelId
required
integer >= 1
Example: 1

Channel identifier

Request Body schema: application/json
optional
userAccessToken
string

Responses

Request samples

Content type
application/json
{
  • "userAccessToken": "string"
}

Response samples

Content type
application/json
Example
{
  • "access_token": "string"
}

Disconnects a channel from Saysimple

Disconnects a channel from Saysimple

path Parameters
channelId
required
integer >= 1
Example: 1

Channel identifier

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "whatsapp",
  • "platform": "whatsapp",
  • "identity": "f2b15dd8-7259-45a9-8a65-f9e7db763304",
  • "active": 1,
  • "createdAt": "2019-08-24T14:15:22Z",
  • "customerCareWindowLength": 24,
  • "settings": [
    ]
}

Campaigns

Get delivery stats map for given campaignsIds

Get delivery stats map for given campaignsIds

query Parameters
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

Responses

Response samples

Content type
application/json
{
  • "1": {
    }
}

Internal comments

Get a list of internal comments

Get a list of internal comments

Responses

Response samples

Content type
application/json
{
  • "count": 25,
  • "total": 107,
  • "page": 1,
  • "pageCount": 5,
  • "data": [
    ]
}

Create new internal comment

Create new internal comment

Request Body schema: application/json
required
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>

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "userId": 1,
  • "chatId": 1,
  • "channelId": 1,
  • "contactId": 1,
  • "comment": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "editedAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "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

Get internal comment

path Parameters
internalCommentId
required
integer >= 1
Example: 1

Internal comment identifier

Responses

Response samples

Content type
application/json
{
  • "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

Update internal comment

path Parameters
internalCommentId
required
integer >= 1
Example: 1

Internal comment identifier

Request Body schema: application/json
required
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>

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "userId": 1,
  • "chatId": 1,
  • "channelId": 1,
  • "contactId": 1,
  • "comment": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "editedAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "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

Delete internal comment

path Parameters
internalCommentId
required
integer >= 1
Example: 1

Internal comment identifier

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "userId": 1,
  • "chatId": 1,
  • "channelId": 1,
  • "contactId": 1,
  • "comment": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "editedAt": "2019-08-24T14:15:22Z"
}

Messaging chats

Get a paginated list of messaging chats.

Get a paginated list of messaging chats.

Responses

Response samples

Content type
application/json
{
  • "count": 25,
  • "total": 107,
  • "page": 1,
  • "pageCount": 5,
  • "data": [
    ]
}

Get details of a messaging chat.

Get details of a messaging chat.

path Parameters
chatId
required
integer >= 1
Example: 1

Messaging chat identifier

Responses

Response samples

Content type
application/json
{
  • "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": {
    }
}

Update messaging chat

Update messaging chat

path Parameters
chatId
required
integer >= 1
Example: 1

Messaging chat identifier

Request Body schema: application/json
required
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
chatId
integer
tagId
integer

Responses

Request samples

Content type
application/json
{
  • "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": {
    }
}

Response samples

Content type
application/json
{
  • "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": {
    }
}

Get paginated entries of a messaging chat.

Get paginated entries of a messaging chat.

path Parameters
chatId
required
integer >= 1
Example: 1

Messaging chat identifier

Responses

Response samples

Content type
application/json
{
  • "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": {
    }
}

Archive messaging chat

Archive messaging chat

Request Body schema: application/json
required
chatId
required
integer >= 1

Responses

Request samples

Content type
application/json
{
  • "chatId": 1
}

Response samples

Content type
application/json
{
  • "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": {
    }
}

Unarchive chat

Unarchive chat

Request Body schema: application/json
required
chatId
required
integer >= 1

Responses

Request samples

Content type
application/json
{
  • "chatId": 1
}

Response samples

Content type
application/json
{
  • "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": {
    }
}

Assign chat to user or team

Assign chat to user or team

Request Body schema: application/json
required
chatId
required
integer >= 1
userId
integer >= 1
teamId
integer >= 1

Responses

Request samples

Content type
application/json
{
  • "chatId": 1,
  • "userId": 1,
  • "teamId": 1
}

Response samples

Content type
application/json
{
  • "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": {
    }
}

Unassign chat

Unassign chat

Request Body schema: application/json
required
chatId
required
integer >= 1

Responses

Request samples

Content type
application/json
{
  • "chatId": 1
}

Response samples

Content type
application/json
{
  • "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": {
    }
}

Set messaging chat to read.

Set messaging chat to read.

Request Body schema: application/json
required
chatId
required
integer >= 1
userId
integer >= 1
lastReadAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "chatId": 1,
  • "userId": 1,
  • "lastReadAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "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.

Set messaging chat to unread.

Request Body schema: application/json
required
chatId
required
integer >= 1
userId
integer >= 1
lastReadAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "chatId": 1,
  • "userId": 1,
  • "lastReadAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "chatId": 1,
  • "channelId": 1,
  • "userId": 1,
  • "assignedUserId": 1,
  • "assignedTeamId": 1,
  • "readForAll": false,
  • "isChatRead": false,
  • "lastEntryReadAt": "2019-08-24T14:15:22Z"
}

Delete messaging chat

Delete messaging chat

Request Body schema: application/json
required
chatId
required
integer >= 1

Responses

Request samples

Content type
application/json
{
  • "chatId": 1
}

Response samples

Content type
application/json
{
  • "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": {
    }
}

Get one entry of chat.

Get one entry of chat.

path Parameters
entryId
required
integer >= 1
Example: 1

Entry identifier

Responses

Response samples

Content type
application/json
{
  • "direction": "in",
  • "id": 0,
  • "identityId": 0,
  • "message": "string",
  • "status": "declined",
  • "time": "2019-08-24T14:15:22Z",
  • "type": "text",
  • "userId": 0
}

Link tags to an messaging chat.

Link tags to an messaging chat.

path Parameters
chatId
required
integer >= 1
Example: 1

Chat identifier

Request Body schema: application/json
required
Array
tagId
required
integer
chatId
required
integer

Responses

Request samples

Content type
application/json
[
  • {
    }
]

Response samples

Content type
application/json
[
  • {
    }
]

Contacts

Get a list of contacts

Get a list of contacts

query Parameters
page
required
integer
Example: page=1

Page number

limit
required
integer
Example: limit=100

Items per page

object (Contact Schema)
Examples:
  • s={"name": "John Doe"} -
  • s={"$and": [{"name": "John Doe"}, {"city": "Haarlem"}]} -

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

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new contact

Create new contact

Request Body schema: application/json
required
id
integer >= 1
name
string
countryCode
string
email
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
id
number
name
required
string <= 50 characters
value
required
string <= 50 characters
Array of objects

If label does not exists, it will be created. Provide the id to update existing labels.

Array
id
number
name
required
string <= 25 characters
color
string <= 50 characters

Hex color

Responses

Request samples

Content type
application/json
{
  • "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": [
    ],
  • "labels": [
    ]
}

Response samples

Content type
application/json
{
  • "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": [
    ],
  • "labels": [
    ]
}

Get a list of contact metadata

Get a list of contact metadata

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Insert a new contact metadata entry

Insert a new contact metadata entry

Request Body schema: application/json
required
id
integer >= 1
contactId
integer >= 1
name
required
string <= 50 characters
value
required
string <= 50 characters
createdAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "contactId": 1,
  • "name": "color",
  • "value": "blue",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "contactId": 1,
  • "name": "color",
  • "value": "blue",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Get one specific contact metadata entry

Get one specific contact metadata entry

path Parameters
metadataId
required
integer >= 1
Example: 1

Metadata identifier

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "contactId": 1,
  • "name": "color",
  • "value": "blue",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Update a specific contact metadata entry

Update a specific contact metadata entry

path Parameters
metadataId
required
integer >= 1
Example: 1

Metadata identifier

Request Body schema: application/json
required
id
integer >= 1
contactId
integer >= 1
name
required
string <= 50 characters
value
required
string <= 50 characters
createdAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "contactId": 1,
  • "name": "color",
  • "value": "blue",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "contactId": 1,
  • "name": "color",
  • "value": "blue",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Get details of particular contact

Get details of particular contact

path Parameters
contactId
required
integer >= 1
Example: 1

Contact identifier

query Parameters
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

Responses

Response samples

Content type
application/json
{
  • "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": [
    ],
  • "labels": [
    ]
}

Update details of particular contact

Update details of particular contact

path Parameters
contactId
required
integer >= 1
Example: 1

Contact identifier

Request Body schema: application/json
required
id
integer >= 1
name
string
countryCode
string
email
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
id
number
name
required
string <= 50 characters
value
required
string <= 50 characters
Array of objects

If label does not exists, it will be created. Provide the id to update existing labels.

Array
id
number
name
required
string <= 25 characters
color
string <= 50 characters

Hex color

Responses

Request samples

Content type
application/json
{
  • "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": [
    ],
  • "labels": [
    ]
}

Response samples

Content type
application/json
{
  • "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": [
    ],
  • "labels": [
    ]
}

Add provided labels to an existing contact

Add provided labels to an existing contact

path Parameters
contactId
required
integer >= 1
Example: 1

Contact identifier

Request Body schema: application/json
id
integer >= 1
name
string
countryCode
string
email
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
id
number
name
required
string <= 50 characters
value
required
string <= 50 characters
Array of objects

If label does not exists, it will be created. Provide the id to update existing labels.

Array
id
number
name
required
string <= 25 characters
color
string <= 50 characters

Hex color

Responses

Request samples

Content type
application/json
{
  • "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": [
    ],
  • "labels": [
    ]
}

Response samples

Content type
application/json
{
  • "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": [
    ],
  • "labels": [
    ]
}

Remove provided labels from existing contact

Remove provided labels from existing contact

path Parameters
contactId
required
integer >= 1
Example: 1

Contact identifier

Request Body schema: application/json
id
integer >= 1
name
string
countryCode
string
email
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
id
number
name
required
string <= 50 characters
value
required
string <= 50 characters
Array of objects

If label does not exists, it will be created. Provide the id to update existing labels.

Array
id
number
name
required
string <= 25 characters
color
string <= 50 characters

Hex color

Responses

Request samples

Content type
application/json
{
  • "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": [
    ],
  • "labels": [
    ]
}

Response samples

Content type
application/json
{
  • "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": [
    ],
  • "labels": [
    ]
}

Contact lists

Get a list of ContactsLists

Get a list of ContactsLists

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new contacts list

Create new contacts list

Request Body schema: application/json
required
object (ContactsLists Schema)
id
integer >= 1
name
string
description
string
createdAt
string <date-time>
Array of objects (ContactsList Schema)
Array
id
integer >= 1
name
string
countryCode
string
email
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 of objects

If label does not exists, it will be created. Provide the id to update existing labels.

updateExisting
boolean
importedContactData
boolean

Responses

Request samples

Content type
application/json
{
  • "contactLists": {
    },
  • "updateExisting": true,
  • "importedContactData": true
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "Contact list name",
  • "description": "Contact list description",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "contacts": [
    ]
}

Delete a contacts list

Delete a contacts list

path Parameters
contactsListId
required
integer >= 1
Example: 1

ContactsList identifier

Responses

Get details of particular contacts list

Get details of particular contacts list

path Parameters
contactsListId
required
integer >= 1
Example: 1

ContactsList identifier

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Update details of particular contacts list

Update details of particular contacts list

path Parameters
contactsListId
required
integer >= 1
Example: 1

ContactsList identifier

Request Body schema: application/json
required
id
integer >= 1
name
string
description
string
createdAt
string <date-time>
Array of objects (ContactsList Schema)
Array
id
integer >= 1
name
string
countryCode
string
email
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 of objects

If label does not exists, it will be created. Provide the id to update existing labels.

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "name": "Contact list name",
  • "description": "Contact list description",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "contacts": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "Contact list name",
  • "description": "Contact list description",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "contacts": [
    ]
}

Add contacts to an existing list by contact IDs

Add contacts to an existing list by contact IDs

path Parameters
contactsListId
required
integer >= 1
Example: 1

ContactsList identifier

Request Body schema: application/json
id
integer >= 1
name
string
description
string
createdAt
string <date-time>
Array of objects (ContactsList Schema)
Array
id
integer >= 1
name
string
countryCode
string
email
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 of objects

If label does not exists, it will be created. Provide the id to update existing labels.

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "name": "Contact list name",
  • "description": "Contact list description",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "contacts": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "Contact list name",
  • "description": "Contact list description",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "contacts": [
    ]
}

Remove contacts from an existing list by contact I

Remove contacts from an existing list by contact IDs

path Parameters
contactsListId
required
integer >= 1
Example: 1

ContactsList identifier

Request Body schema: application/json
id
integer >= 1
name
string
description
string
createdAt
string <date-time>
Array of objects (ContactsList Schema)
Array
id
integer >= 1
name
string
countryCode
string
email
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 of objects

If label does not exists, it will be created. Provide the id to update existing labels.

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "name": "Contact list name",
  • "description": "Contact list description",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "contacts": [
    ]
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "Contact list name",
  • "description": "Contact list description",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "contacts": [
    ]
}

Labels

Get a list of labels.

Get a list of labels.

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new label

Create new label

Request Body schema: application/json
required
id
integer >= 1
name
required
string
createdAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "name": "development",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "development",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Delete particular label

Delete particular label

path Parameters
labelId
required
integer >= 1
Example: 1

Label identifier

Responses

Get details of particular label

Get details of particular label

path Parameters
labelId
required
integer >= 1
Example: 1

Label identifier

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "development",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Update details of particular label

Update details of particular label

path Parameters
labelId
required
integer >= 1
Example: 1

Label identifier

Request Body schema: application/json
required
id
integer >= 1
name
required
string
createdAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "name": "development",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "name": "development",
  • "createdAt": "2019-08-24T14:15:22Z"
}

Messages

Create and send new message.

Create and send new message.

Request Body schema: application/json
required
One of
object
id
integer
status
string
Enum: "open" "closed"
assignedUserId
integer
assignedTeamId
integer
object

The channel where the message will be sent from.

channelId
required
integer
object
id
required
integer
object

The identifier information of the receiver of the message.

identity
required
string
object

metadata for a message

visible
boolean
required
object

The content of the message to be send.

text
string
template
boolean
required
Array of objects (Attachment Schema)
Array
contentType
string
originalName
string

Provide a custom name to show with the attachment. When not passed, a name will be generated.

payload
required
string

Public URL or DataURI.

type
string
Default: "url"
Enum: "url" "buffer"

Responses

Request samples

Content type
application/json
Example

The user- and chat sections are optional.

{
  • "chat": {
    },
  • "content": {
    },
  • "channelActor": {
    },
  • "contactActor": {
    }
}

Response samples

Content type
application/json
{
  • "chat": {
    },
  • "entries": [
    ]
}

Quick replies

Get a list of quick replies

Get a list of quick replies

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new quick reply

Create new quick reply

Request Body schema: application/json
required
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
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)

Responses

Request samples

Content type
application/json
{
  • "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": [
    ]
}

Response samples

Content type
application/json
{
  • "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": [
    ]
}

Delete particular quick reply.

Delete particular quick reply.

path Parameters
quickReplyId
required
integer >= 1
Example: 1

Quick reply identifier

Responses

Get details of particular quick reply.

Get details of particular quick reply.

path Parameters
quickReplyId
required
integer >= 1
Example: 1

Quick reply identifier

Responses

Response samples

Content type
application/json
{
  • "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": [
    ]
}

Update details of particular quick reply.

Update details of particular quick reply.

path Parameters
quickReplyId
required
integer >= 1
Example: 1

Quick reply identifier

Request Body schema: application/json
required
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
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)

Responses

Request samples

Content type
application/json
{
  • "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": [
    ]
}

Response samples

Content type
application/json
{
  • "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": [
    ]
}

Tags

Get a list of tags

Get a list of tags

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new tag

Create new tag

Request Body schema: application/json
required
createdAt
string <date-time>
id
integer >= 1
name
required
string

Responses

Request samples

Content type
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Delete particular tag

Delete particular tag

path Parameters
tagId
required
integer >= 1
Example: 1

Tag identifier

Responses

Get details of particular tag

Get details of particular tag

path Parameters
tagId
required
integer >= 1
Example: 1

Tag identifier

Responses

Response samples

Content type
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Update details of particular tag

Update details of particular tag

path Parameters
tagId
required
integer >= 1
Example: 1

Tag identifier

Request Body schema: application/json
required
createdAt
string <date-time>
id
integer >= 1
name
required
string

Responses

Request samples

Content type
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Teams

Get a list of teams

Get a list of teams

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new team

Create new team

Request Body schema: application/json
required
color
string
createdAt
string <date-time>
id
integer >= 1
name
required
string

Responses

Request samples

Content type
application/json
{
  • "color": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "color": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Delete particular team

Delete particular team

path Parameters
teamId
required
integer >= 1
Example: 1

Team identifier

Request Body schema: application/json
required
color
string
createdAt
string <date-time>
id
integer >= 1
name
required
string

Responses

Request samples

Content type
application/json
{
  • "color": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Get details of particular team

Get details of particular team

path Parameters
teamId
required
integer >= 1

Team identifier

Responses

Response samples

Content type
application/json
{
  • "color": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Update details of particular team

Update details of particular team

path Parameters
teamId
required
integer >= 1
Example: 1

Team identifier

Request Body schema: application/json
required
color
string
createdAt
string <date-time>
id
integer >= 1
name
required
string

Responses

Request samples

Content type
application/json
{
  • "color": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "color": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Replace a particular team

Replace a particular team

path Parameters
teamId
required
integer >= 1
Example: 1

Team identifier

Request Body schema: application/json
required
color
string
createdAt
string <date-time>
id
integer >= 1
name
required
string

Responses

Request samples

Content type
application/json
{
  • "color": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Response samples

Content type
application/json
{
  • "color": "string",
  • "createdAt": "2019-08-24T14:15:22Z",
  • "id": 1,
  • "name": "string"
}

Templates

Get a list of templates.

Get a list of templates.

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create template.

Create template.

Request Body schema: application/json
required
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
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)

Responses

Request samples

Content type
application/json
{
  • "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": [
    ]
}

Response samples

Content type
application/json
{
  • "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": [
    ]
}

Get details of particular template.

Get details of particular template.

path Parameters
templateId
required
integer >= 1
Example: 1

Template identifier

Responses

Response samples

Content type
application/json
{
  • "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": [
    ]
}

Update details of particular template.

Update details of particular template.

path Parameters
templateId
required
integer >= 1
Example: 1

Template identifier

Request Body schema: application/json
required
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
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)

Responses

Request samples

Content type
application/json
{
  • "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": [
    ]
}

Response samples

Content type
application/json
{
  • "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": [
    ]
}

Delete a particular template. All templates of the

Delete a particular template. All templates of the same name in the same WhatsApp Business Account will also be deleted!

path Parameters
templateId
required
integer >= 1
Example: 1

Template identifier

Responses

Response samples

Content type
application/json
{
  • "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": [
    ]
}

PushSubscriptions

Get details of a particular push subscription.

Get details of a particular push subscription.

path Parameters
pushSubscriptionId
required
integer >= 1
Example: 1

Push subscription identifier

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "userId": 1,
  • "subscription": { }
}

Get a list of push subscriptions

Get a list of push subscriptions

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new subscription

Create new subscription

Request Body schema: application/json
required
id
integer >= 1
userId
integer >= 1
subscription
object

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "userId": 1,
  • "subscription": { }
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "userId": 1,
  • "subscription": { }
}

ParseMessage

Parse a message using variables retrieved from a G

Parse a message using variables retrieved from a GET request to /parse-message/variables

Request Body schema: application/json
required
inputMessage
required
string
object

Data that will be used to parse the input message, you can supply either an id or the object itself.

number or Contact Schema (object)

The contact that the message is about.

Any of
>= 1
number >= 1

Contact Id

number or User Schema (object)

The agent that is currently sending the message.

Any of
>= 1
number >= 1

User Id

number or User Schema (object)

The agent that is assigned to the conversation.

Any of
>= 1
number >= 1

User Id

Responses

Request samples

Content type
application/json
{
  • "inputMessage": "string",
  • "parseData": {
    }
}

Response samples

Content type
application/json
{
  • "parsedMessage": "string",
  • "variables": {
    }
}

Get a list of variables you can use to parse a mes

Get a list of variables you can use to parse a message

Responses

Response samples

Content type
application/json
{
  • "property1": [
    ],
  • "property2": [
    ]
}

Users

Get a list of users

Get a list of users

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new user

Create new user

Request Body schema: application/json
required
active
integer >= 0
Default: 0
Array of objects (Channel Schema)
Array
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)
createdAt
string <date-time>
createdBy
integer >= 1
displayName
string
email
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
color
string
createdAt
string <date-time>
id
integer >= 1
name
required
string

Responses

Request samples

Content type
application/json
{
  • "active": 0,
  • "channels": [
    ],
  • "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": [
    ]
}

Response samples

Content type
application/json
{
  • "active": 0,
  • "channels": [
    ],
  • "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": [
    ]
}

Get the limits of user creation

Get the limits of user creation

Responses

Response samples

Content type
application/json
{
  • "userLimit": 0,
  • "totalUsers": 0,
  • "isExceeded": true
}

Get the prices to increase userLimits

Get the prices to increase userLimits

Responses

Response samples

Content type
application/json
{
  • "pricing": {
    },
  • "billingMonths": 0
}

Delete particular user

Delete particular user

path Parameters
userId
required
integer >= 1
Example: 1

User identifier

Responses

Get details of particular user

Get details of particular user

path Parameters
userId
required
integer >= 1
Example: 1

User identifier

Responses

Response samples

Content type
application/json
{
  • "active": 0,
  • "channels": [
    ],
  • "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": [
    ]
}

Update details of particular user

Update details of particular user

path Parameters
userId
required
integer >= 1
Example: 1

User identifier

Request Body schema: application/json
required
active
integer >= 0
Default: 0
Array of objects (Channel Schema)
Array
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)
createdAt
string <date-time>
createdBy
integer >= 1
displayName
string
email
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
color
string
createdAt
string <date-time>
id
integer >= 1
name
required
string

Responses

Request samples

Content type
application/json
{
  • "active": 0,
  • "channels": [
    ],
  • "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": [
    ]
}

Response samples

Content type
application/json
{
  • "active": 0,
  • "channels": [
    ],
  • "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": [
    ]
}

Replace a particular user with the provided user

Replace a particular user with the provided user

path Parameters
userId
required
integer >= 1
Example: 1

User identifier

Request Body schema: application/json
required
active
integer >= 0
Default: 0
Array of objects (Channel Schema)
Array
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)
createdAt
string <date-time>
createdBy
integer >= 1
displayName
string
email
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
color
string
createdAt
string <date-time>
id
integer >= 1
name
required
string

Responses

Request samples

Content type
application/json
{
  • "active": 0,
  • "channels": [
    ],
  • "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": [
    ]
}

Response samples

Content type
application/json
{
  • "active": 0,
  • "channels": [
    ],
  • "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": [
    ]
}

Webhooks

Get a list of webhooks

Get a list of webhooks

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Create new webhook

Create new webhook

Request Body schema: application/json
required
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
property name*
additional property
string
version
number
Default: 1
Enum: 1 2 3
createdAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "enabled": 1,
  • "event": "entry::received",
  • "headers": {
    },
  • "version": 1,
  • "createdAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "enabled": 1,
  • "event": "entry::received",
  • "headers": {
    },
  • "version": 1,
  • "createdAt": "2019-08-24T14:15:22Z"
}

Delete particular webhook

Delete particular webhook

path Parameters
webhookId
required
integer >= 1
Example: 1

Webhook identifier

Responses

Get details of particular webhook

Get details of particular webhook

path Parameters
webhookId
required
integer >= 1
Example: 1

Webhook identifier

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "enabled": 1,
  • "event": "entry::received",
  • "headers": {
    },
  • "version": 1,
  • "createdAt": "2019-08-24T14:15:22Z"
}

Update details of particular webhook

Update details of particular webhook

path Parameters
webhookId
required
integer >= 1
Example: 1

Webhook identifier

Request Body schema: application/json
required
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
property name*
additional property
string
version
number
Default: 1
Enum: 1 2 3
createdAt
string <date-time>

Responses

Request samples

Content type
application/json
{
  • "id": 1,
  • "enabled": 1,
  • "event": "entry::received",
  • "headers": {
    },
  • "version": 1,
  • "createdAt": "2019-08-24T14:15:22Z"
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "enabled": 1,
  • "event": "entry::received",
  • "headers": {
    },
  • "version": 1,
  • "createdAt": "2019-08-24T14:15:22Z"
}

OpenAI

Send a prompt to ChatGPT

Send a prompt to ChatGPT

Request Body schema: application/json
required
model
string
instruction
string
userInput
string
language
string
chatId
number
selectedMessageIds
Array of arrays

Responses

Request samples

Content type
application/json
{
  • "model": "string",
  • "instruction": "string",
  • "userInput": "string",
  • "language": "string",
  • "chatId": 0,
  • "selectedMessageIds": [ ]
}

Response samples

Content type
application/json
{
  • "id": "string",
  • "object": "string",
  • "created": 0,
  • "model": "string",
  • "choices": [
    ],
  • "usage": {
    }
}

Calculate the number of tokens in a string of text

Calculate the number of tokens in a string of text

Request Body schema: application/json
required
text
string

Responses

Request samples

Content type
application/json
{
  • "text": "string"
}

Response samples

Content type
application/json
{
  • "tokens": 0
}