Models
Get Started
Integrations
Threads
Threads
Get Threads
GET
/
v1
/
mail
/
threads
curl --request GET \
--url http://localhost:8000/api/v1/mail/threads
{
"data": [
{
"id": "<string>",
"history_id": "<string>",
"messages": [
{
"id": "<string>",
"body": "<string>",
"html_body": "<string>",
"user_id": "<string>",
"date": "<string>",
"snippet": "<string>",
"subject": "<string>",
"thread_id": "<string>",
"starred": true,
"unread": true,
"cc": [
{
"email": "<string>",
"name": "<string>"
}
],
"bcc": [
{
"email": "<string>",
"name": "<string>"
}
],
"from": [
{
"email": "<string>",
"name": "<string>"
}
],
"reply_to": [
{
"email": "<string>",
"name": "<string>"
}
],
"labels": [
"<string>"
],
"in_reply_to": "<string>"
}
]
}
],
"meta": {
"limit": 123,
"cursors": {
"before": "<string>",
"current": "<string>",
"next": "<string>"
}
}
}
Query Parameters
Cursor to start from. You can find cursors for next & previous pages in the meta.cursors property of the response.
Include raw response. When you want more data from the source
Response
200 - application/json
curl --request GET \
--url http://localhost:8000/api/v1/mail/threads
{
"data": [
{
"id": "<string>",
"history_id": "<string>",
"messages": [
{
"id": "<string>",
"body": "<string>",
"html_body": "<string>",
"user_id": "<string>",
"date": "<string>",
"snippet": "<string>",
"subject": "<string>",
"thread_id": "<string>",
"starred": true,
"unread": true,
"cc": [
{
"email": "<string>",
"name": "<string>"
}
],
"bcc": [
{
"email": "<string>",
"name": "<string>"
}
],
"from": [
{
"email": "<string>",
"name": "<string>"
}
],
"reply_to": [
{
"email": "<string>",
"name": "<string>"
}
],
"labels": [
"<string>"
],
"in_reply_to": "<string>"
}
]
}
],
"meta": {
"limit": 123,
"cursors": {
"before": "<string>",
"current": "<string>",
"next": "<string>"
}
}
}