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.history('message_id');
console.log(response.results);{
"results": [
{}
]
}Fetch the array of events of a message you’ve previously sent.
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.history('message_id');
console.log(response.results);{
"results": [
{}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A unique identifier representing the message ID
A supported Message History type that will filter the events returned.