Skip to main content
GET
/
messages
/
{messageId}
JavaScript
import Nuntly from '@nuntly/sdk';

const client = new Nuntly({
  apiKey: process.env['NUNTLY_API_KEY'], // This is the default and can be omitted
});

const messageDetail = await client.messages.retrieve('imsg_01kabn43yqyxn2bx4ve84mczd3');

console.log(messageDetail.id);
{
  "data": {
    "id": "<string>",
    "createdAt": "<string>",
    "inboxId": "<string>",
    "threadId": "<string>",
    "messageId": "<string>",
    "from": "<string>",
    "to": [
      "<string>"
    ],
    "cc": [
      "<string>"
    ],
    "bcc": [
      "<string>"
    ],
    "replyTo": [
      "<string>"
    ],
    "subject": "<string>",
    "receivedAt": "<string>",
    "status": "received",
    "labels": [
      "<string>"
    ],
    "attachmentCount": 123,
    "headers": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>

Path Parameters

messageId
string
required

The id of the message

Example:

"imsg_01kabn43yqyxn2bx4ve84mczd3"

Response

Successful response.

data
object
required