...
Code Block |
---|
{
"status": 1,
"data": {}
}Запрос |
Messages
Retrieve a List of Messages from a Chat by Communication Channel
...
GET https://api.leeloo.ai/api/v2/communication-channels/{person_id}/chat-messages?limit=2&offset=0
Path Paramsperson_id
(example: 5b3f543bb2737000133d25b0) - The communication channel ID can be found in the client link under the Chats section.
Example: https://app.leeloo.ai/chats/all/66fac2b853d5470e1ed207b6/person_id
Note |
---|
ВАЖНОIMPORTANT: В Headers, “Заголовок запроса” в “Ключ” вставьте In Headers, add “Request Header.” In “Key,” enter X-Leeloo-AuthToken а в “Значение” ваш , and in “Value,” insert your Leeloo.ai API токенtoken. |
Query Paramslimit
- Limit on the Number of Results: It is not recommended to retrieve large amounts of data at once, as this may slow down data export.offset
- Offset (Default 0): Specify how many results to skip.
...
Code Block |
---|
{ "data": { "id": "5b3f608db2737000133d25b6" }, "status": 1 } |
Подписчики
...
Subscribers
Retrieve List of All Subscribers
...
Code Block |
---|
{ "status": 1, "data": {} } |
...
Add Tag to a Person
PUT https://api.leeloo.ai/api/v2/people/{person_id}/add-tag
...
Query Paramslimit
- Limit on the Number of Results. It is not recommended to retrieve large amounts of data at once, as this may slow down data export.offset
- Offset (Default 0): Specify how many results to skip.
ОтветResponse
Code Block |
---|
{ "status": 1, "data": [ { "id": "445f5d522a934035decc093d", "name": "Igor", "createdAt": "2015-04-02T14:20Z", "updatedAt": "2015-04-02T14:20Z", }, { "id": "125f5d522a934035decc093d", "name": "Alexey", "createdAt": "2015-04-02T14:20Z", "updatedAt": "2015-04-02T14:20Z", } ], "meta": { "totalCount": 1, "filteredCount": 1, "limit": 20, "offset": 0 } } |
...