curl --request GET \
--url https://prod.featherhq.com/api/v1/email/threads/{threadId}/messages \
--header 'X-API-Key: <api-key>'{
"thread": {
"id": "<string>",
"agentId": "<string>",
"agentVersionId": "<string>",
"organizationId": "<string>",
"toEmail": "<string>",
"fromEmail": "<string>",
"fromName": "<string>",
"subject": "<string>",
"isActive": true,
"messages": [
{
"id": "<string>",
"threadId": "<string>",
"direction": "INBOUND",
"status": "QUEUED",
"messageId": "<string>",
"fromAddress": "<string>",
"toAddress": "<string>",
"ccAddresses": "<string>",
"subject": "<string>",
"inReplyTo": "<string>",
"bodyText": "<string>",
"bodyHtml": "<string>",
"providerMessageId": "<string>",
"errorCode": "<string>",
"errorMessage": "<string>",
"bounceType": "<string>",
"sentAt": "<string>",
"deliveredAt": "<string>",
"openedAt": "<string>",
"bouncedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"pagination": {
"limit": 10,
"nextCursor": "<string>"
}
}
}Get messages for a specific email thread with cursor-based pagination
curl --request GET \
--url https://prod.featherhq.com/api/v1/email/threads/{threadId}/messages \
--header 'X-API-Key: <api-key>'{
"thread": {
"id": "<string>",
"agentId": "<string>",
"agentVersionId": "<string>",
"organizationId": "<string>",
"toEmail": "<string>",
"fromEmail": "<string>",
"fromName": "<string>",
"subject": "<string>",
"isActive": true,
"messages": [
{
"id": "<string>",
"threadId": "<string>",
"direction": "INBOUND",
"status": "QUEUED",
"messageId": "<string>",
"fromAddress": "<string>",
"toAddress": "<string>",
"ccAddresses": "<string>",
"subject": "<string>",
"inReplyTo": "<string>",
"bodyText": "<string>",
"bodyHtml": "<string>",
"providerMessageId": "<string>",
"errorCode": "<string>",
"errorMessage": "<string>",
"bounceType": "<string>",
"sentAt": "<string>",
"deliveredAt": "<string>",
"openedAt": "<string>",
"bouncedAt": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}
],
"pagination": {
"limit": 10,
"nextCursor": "<string>"
}
}
}INBOUND, OUTBOUND QUEUED, SENDING, SENT, DELIVERED, OPENED, BOUNCED, FAILED, SPAM, RECEIVED Email thread messages
Show child attributes