import Courier from '@trycourier/courier';const client = new Courier({ apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted});await client.notifications.archive('id');
{ "type": "invalid_request_error", "message": "Notification template nt_nonexistent not found"}
Notification Templates
Archive Notification Template
Archive a notification template.
DELETE
/
notifications
/
{id}
JavaScript
import Courier from '@trycourier/courier';const client = new Courier({ apiKey: process.env['COURIER_API_KEY'], // This is the default and can be omitted});await client.notifications.archive('id');
{ "type": "invalid_request_error", "message": "Notification template nt_nonexistent not found"}