Authorizations
API Key authentication using Bearer token
Path Parameters
The unique identifier of the thread
import AIInbx from 'aiinbx';
const client = new AIInbx({
  apiKey: 'My API Key',
});
const thread = await client.threads.retrieve('threadId');
console.log(thread.id);{
  "id": "<string>",
  "createdAt": "<string>",
  "subject": "<string>",
  "emails": [
    {
      "id": "<string>",
      "createdAt": "<string>",
      "messageId": "<string>",
      "inReplyToId": "<string>",
      "references": [
        "<string>"
      ],
      "subject": "<string>",
      "text": "<string>",
      "html": "<string>",
      "strippedText": "<string>",
      "strippedHtml": "<string>",
      "snippet": "<string>",
      "fromName": "<string>",
      "fromAddress": "<string>",
      "toAddresses": [
        "<string>"
      ],
      "ccAddresses": [
        "<string>"
      ],
      "bccAddresses": [
        "<string>"
      ],
      "replyToAddresses": [
        "<string>"
      ],
      "sentAt": "<string>",
      "receivedAt": "<string>",
      "direction": "INBOUND",
      "status": "DRAFT",
      "threadId": "<string>",
      "attachments": [
        {
          "id": "<string>",
          "createdAt": "<string>",
          "fileName": "<string>",
          "contentType": "<string>",
          "sizeInBytes": 123,
          "cid": "<string>",
          "disposition": "<string>",
          "signedUrl": "<string>",
          "expiresAt": "<string>"
        }
      ]
    }
  ]
}Retrieve a specific thread with all its emails by thread ID using API key authentication
import AIInbx from 'aiinbx';
const client = new AIInbx({
  apiKey: 'My API Key',
});
const thread = await client.threads.retrieve('threadId');
console.log(thread.id);{
  "id": "<string>",
  "createdAt": "<string>",
  "subject": "<string>",
  "emails": [
    {
      "id": "<string>",
      "createdAt": "<string>",
      "messageId": "<string>",
      "inReplyToId": "<string>",
      "references": [
        "<string>"
      ],
      "subject": "<string>",
      "text": "<string>",
      "html": "<string>",
      "strippedText": "<string>",
      "strippedHtml": "<string>",
      "snippet": "<string>",
      "fromName": "<string>",
      "fromAddress": "<string>",
      "toAddresses": [
        "<string>"
      ],
      "ccAddresses": [
        "<string>"
      ],
      "bccAddresses": [
        "<string>"
      ],
      "replyToAddresses": [
        "<string>"
      ],
      "sentAt": "<string>",
      "receivedAt": "<string>",
      "direction": "INBOUND",
      "status": "DRAFT",
      "threadId": "<string>",
      "attachments": [
        {
          "id": "<string>",
          "createdAt": "<string>",
          "fileName": "<string>",
          "contentType": "<string>",
          "sizeInBytes": 123,
          "cid": "<string>",
          "disposition": "<string>",
          "signedUrl": "<string>",
          "expiresAt": "<string>"
        }
      ]
    }
  ]
}API Key authentication using Bearer token
The unique identifier of the thread
Was this page helpful?