List email threads

GET
/email/inboxes/{inbox_id}/threads

Authorization

headerAuthorizationBearer <Relevate API key>

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

Path Parameters

inbox_id*string

Inbox ID.

Query Parameters

limit?integer

Page size, 1 to 100. Defaults to 25.

Formatint64
after?string

Return threads after this thread ID in the listing.

status?string

open, snoozed or done.

label?string

A label ID.

assigned_agent?string

Threads assigned to this agent name.

assigned_user_id?string

Threads assigned to this person.

unassigned?boolean

Only threads nobody is assigned to.

unread?boolean

Only threads with mail the agent has not marked read.

q?string

Words in the subject, sender or text of received mail.

Response Body

Threads, most recent activity first.

application/json
  1. response
api_version*string
data*array<>
next?|

Pass as after to read the next page. Null on the last page.

Example Request
curl -X GET 'https://api.relevate.app/email/inboxes/string/threads'
Example Response
{
  "api_version": "string",
  "data": [
    {
      "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,
      "snoozed_until": "2019-08-24T14:15:22Z",
      "status": "string",
      "subject": "string",
      "unread": true
    }
  ],
  "next": "string"
}