Get email thread
GET
header
AuthorizationBearer <Relevate API key>Relevate API key scoped to the operation's product and environment.
thread_id*stringThread ID.
limit?integerMessages per page, 1 to 200. Defaults to 100. The first page holds the most recent messages.
Format
int64before?stringnext_cursor from the previous page: returns the messages before it.
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- response
api_version*stringdata*has_more*booleanEarlier messages exist before this page.
next_cursor?|Pass as before to read the page of earlier messages. Null when
has_more is false.
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"
}