Skip to main content
GET
/
notifications
/
{id}
/
content
JavaScript
import Courier from '@trycourier/courier';

const client = new Courier({
  apiKey: 'My API Key',
});

const notificationGetContent = await client.notifications.retrieveContent('id');

console.log(notificationGetContent.blocks);
{
  "blocks": [
    {
      "alias": "<string>",
      "context": "<string>",
      "id": "<string>",
      "type": "action",
      "content": "<string>",
      "locales": {},
      "checksum": "<string>"
    }
  ],
  "channels": [
    {
      "id": "<string>",
      "type": "<string>",
      "content": {
        "subject": "<string>",
        "title": "<string>"
      },
      "locales": {},
      "checksum": "<string>"
    }
  ],
  "checksum": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Response

200 - application/json
blocks
NotificationBlock · object[] | null
channels
NotificationChannel · object[] | null
checksum
string | null