API ReferenceEmail
Get Thread Messages
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Query Parameters
threadId*string
Thread ID
Format
uuidlimit?integer
Number of messages
Default
50Range
-9007199254740991 <= value <= 100offset?integer
Pagination offset
Default
0Range
0 <= value <= 9007199254740991Response Body
application/json
curl -X GET "https://samva.app/api/v1/email/threads/:threadId/messages?threadId=497f6eca-6276-4993-bfeb-53cbbbba6f08"{
"threadId": "string",
"messages": [
{
"id": "string",
"conversationId": "string",
"threadPosition": 0,
"channel": "string",
"direction": "string",
"status": "string",
"subject": "string",
"fromEmail": "string",
"toEmails": [
{
"email": "string",
"name": "string"
}
],
"newContent": "string",
"hasQuotedContent": true,
"hasAttachments": 0,
"createdAt": "2019-08-24T14:15:22Z",
"sentAt": "2019-08-24T14:15:22Z",
"deliveredAt": "2019-08-24T14:15:22Z"
}
],
"total": 0
}