Get user conversations

This method allows to get user’s conversations.

URL

GET https://api.dashly.app/v1/users/{id}/conversations

For {id} you can use:

  • Dashly ID

Arguments

This method follows the general rules. Arguments are transmitted as GET or POST parameters.

Argument Description
auth_token Required. Authorization token (requires scope: conversations-read and user-read)
after Pagination. The cursor to start with.
count Pagination. The maximum number of messages to be returned (from 1 to 50). Default: 20

More about pagination.

Answer

{
  "data": [
    {
      "id": 7100586,
      "created": 1450342055,
      "read": true,
      "replied": true,
      "clicked": false,
      "unsubscribed": false,
      "closed": false,
      "message": null,
      "type": "popup_chat",
      "reply_type": "text",
      "part_last": {
        "id": 7855356,
        "created": 1450345019,
        "conversation": 7100586,
        "body": "...",
        "type": "reply_user",
        "sent_via": "web_user",
        "from": 16588048
      },
      "parts_count": 13,
      "assignee": null,
      "unread_parts_count": 2,
      "last_admin": {
        "id": 24601,
        "name": "Maks",
        "avatar": "https://files.dashly.app/avatars/1446021235578-je57yp6v.jpg",
        "type": "admin"
      },
      "last_update": 1450345019,
      "tags": []
    },
    ...
  ],
  "meta": {
    "next_after": 1447339319.900966,
    "status": 200
  }
}

Answer will contain Conversation object.

Answer will not contain user object. To get data on this user, use this method.

Example

curl -X GET https://api.dashly.app/v1/users/8173131/conversations?auth_token=XXX