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.providers.delete('id');{
"message": "<string>",
"type": "invalid_request_error"
}Delete a provider configuration. Returns 409 if the provider is still referenced by routing or notifications.
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.providers.delete('id');{
"message": "<string>",
"type": "invalid_request_error"
}