Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: 'My API Key',
});
const notificationGetContent = await client.notifications.draft.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>"
}import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: 'My API Key',
});
const notificationGetContent = await client.notifications.draft.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>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.