Get email thread

GET
/email/threads/{thread_id}

Authorization

headerAuthorizationBearer <Relevate API key>

Relevate API key scoped to the operation's product and environment.

Path Parameters

thread_id*string

Thread ID.

Query Parameters

limit?integer

Messages per page, 1 to 200. Defaults to 100. The first page holds the most recent messages.

Formatint64
before?string

next_cursor from the previous page: returns the messages before it.

Response Body

The thread with its most recent received and sent messages, oldest first within the page. Pass next_cursor as before to read earlier messages while has_more is true. Quarantined messages that were not released have no body and no files.

application/json
  1. response
api_version*string
data*
has_more*boolean

Earlier messages exist before this page.

next_cursor?|

Pass as before to read the page of earlier messages. Null when has_more is false.

Example Request
curl -X GET 'https://api.relevate.app/email/threads/string'
Example Response
{
  "api_version": "string",
  "data": {
    "activity": [
      null
    ],
    "assigned": {
      "agent": "string",
      "user_id": "string"
    },
    "created_at": "2019-08-24T14:15:22Z",
    "id": "string",
    "inbox_id": "string",
    "labels": [
      {
        "color": "string",
        "id": "string",
        "name": "string"
      }
    ],
    "last_message_at": "2019-08-24T14:15:22Z",
    "message_count": 0,
    "messages": [
      {
        "at": "2019-08-24T14:15:22Z",
        "attachments": [
          {
            "content_id": "string",
            "content_type": "string",
            "file_name": "string",
            "id": "string",
            "inline": true,
            "size_bytes": 0
          }
        ],
        "body_withheld": true,
        "cc": [
          "string"
        ],
        "direction": "string",
        "from": "string",
        "html_body": "string",
        "id": "string",
        "in_reply_to": "string",
        "message_id": "string",
        "recipients": null,
        "reply_to": [
          "string"
        ],
        "status": "string",
        "subject": "string",
        "text_body": "string",
        "to": [
          "string"
        ]
      }
    ],
    "notes": [
      null
    ],
    "snoozed_until": "2019-08-24T14:15:22Z",
    "status": "string",
    "subject": "string",
    "unread": true
  },
  "has_more": true,
  "next_cursor": "string"
}