import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const checks = await client.notifications.checks.list('submissionId', { id: 'id' });
console.log(checks.checks);{
"checks": [
{
"id": "<string>",
"status": "RESOLVED",
"type": "custom",
"updated": 123
}
]
}Retrieve the checks for a notification template submission.
import Courier from '@trycourier/courier';
const client = new Courier({
apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted
});
const checks = await client.notifications.checks.list('submissionId', { id: 'id' });
console.log(checks.checks);{
"checks": [
{
"id": "<string>",
"status": "RESOLVED",
"type": "custom",
"updated": 123
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Submission checks retrieved.
Show child attributes