Get conversation parts

This method allows you to receive messages of a specific conversation (parts of the conversation).

URL

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

ID of the conversation should be used as {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)
after Pagination. The cursor to start with.
count Pagination. The maximum amount of messages to be returned (from 1 to 50). Default: 20

Detail on pagination.

Answer

{
  "data": [
    {
      "id": 7936880,
      "created": 1450420434,
      "conversation": 7179725,
      "body": "...",
      "read": true,
      "type": "reply_admin",
      "sent_via": "app_chrome",
      "from": {
        "id": 14709,
        "name": "Alex",
        "avatar": "https://files.dashly.app/avatars/1422020258978-15jb56g7.jpg",
        "type": "admin"
      }
    },
    ...
  ],
  "meta": {
    "next_after": 7936756,
    "status": 200
  }
}

Answer will contain ConversationPart objects.

Errors

This table contains errors that can be returned. However, in case of unforeseen situations (in case of the service's inoperability), other errors may occur. Always check meta.status parameter.

Error Description
MethodNotAllowed Invalid http method
AuthenticationFailed Invalid (or missing) auth token
PermissionDenied There is no access to this conversation (most likely the conversation belongs to another application)

Example

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