Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
GET https://api.smartsender.com/v1/chats

 

Main parameters:

Name

Description

Validation

page

Requested Page

Minimum value 1

limitation

Amount of data to display per page

Minimum value 1, maximum 20

term

Keyword to search

Not necessary, String

state

Chat status

Not necessary, Enum

  • open, if only clock with open status

  • closed, if only chats with closed status

selector[name]

Chat filter

Not necessary, Enum

  • none, all chats

  • private, only chats of a certain operator

  • unread, only unread chats

selector[operatorId]

Selecting an operator for the private filter

Required if selector[name] is private. ID of the required operator

 

In case of a successful response, you will receive the following:

...

Code Block
{
    "cursor": Cursor,
    "collection": Chats[]
}

 

Main parameters:

Name

Description

cursor

Object of type Cursor

collection

Array of type objects Chat

 

Getting by ID.

Allows you to get information about the specified chat.

...

In case of a successful response, get an object of type Chat.

 

Read the selected chat.

...

Code Block
POST https://api.smartsender.com/v1/chats/{chatId}/forward/{operatorId}

 

Main parameters:

Name

Description

text

Informative text - description of the destination

 

In case of a successful response, you will receive the following:

...

Code Block
GET https://api.smartsender.com/v1/chats/{chatId}/messages

 

Основные параметрыMain parameters:

Name

Description

Validation

page

Requested Page

Minimum value 1

limitation

Amount of data to display per page

Minimum value 1, maximum 20

 

……