import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const response = await client.messages.content('message_id');
console.log(response.results);{
"results": [
{
"channel": "<string>",
"channel_id": "<string>",
"content": {
"html": "<string>",
"title": "<string>",
"body": "<string>",
"subject": "<string>",
"text": "<string>",
"blocks": [
{
"type": "<string>",
"text": "<string>"
}
]
}
}
]
}import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const response = await client.messages.content('message_id');
console.log(response.results);{
"results": [
{
"channel": "<string>",
"channel_id": "<string>",
"content": {
"html": "<string>",
"title": "<string>",
"body": "<string>",
"subject": "<string>",
"text": "<string>",
"blocks": [
{
"type": "<string>",
"text": "<string>"
}
]
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A unique identifier associated with the message you wish to retrieve (results from a send).
An array of render output of a previously sent message.
Show child attributes