GET
/
api
/
v1
/
thread
/
{id}
/
messages
curl --request GET \
  --url https://api.algoreg.com/api/v1/thread/{id}/messages \
  --header 'Authorization: Bearer <token>'
{
  "messages": [
    {
      "agent_id": "integer",
      "attachments": [
        {
          "attachment_movements": {
            "movements": [
              {
                "agent_id": "integer",
                "customer_id": "string",
                "file_id": "string"
              }
            ],
            "total": "integer"
          },
          "file_mime": "string",
          "file_name": "string",
          "file_not_dangerous": "boolean",
          "file_size": "integer",
          "file_type": "string",
          "id": "string"
        }
      ],
      "bcc": "string",
      "cc": "string",
      "content": "string",
      "created_at": "string",
      "delivery": {},
      "error_when_trying_to_send": "string",
      "external_message_id": "string",
      "from": "string",
      "id": "string",
      "mailbox_id": "string",
      "origin": {},
      "priority": "integer",
      "raw_message": "string",
      "read_by_agents": [
        "integer"
      ],
      "reply_to_external_message_id": "string",
      "subject": "string",
      "to": "string"
    }
  ],
  "total": "integer"
}

Path parameters

id
string
required

Query parameters

offset
integer
limit
integer

Response body

  • 200

  • default

messages
Message[]
total
integer