Typescript
import Nuntly from '@nuntly/sdk'; const client = new Nuntly({ apiKey: 'My API Key', }); const response = await client.emails.cancel('em_qiPSkLrTmXvDohbxCcYt3pFEMGgnjHD6kbDL8d4uGKvNGboT'); console.log(response.id);
{ "data": { "id": "em_01jnvnn9avq52k5mrhn1gab0ch", "org_id": "org_01jh6jk82zjq9deye73h0mzcaq", "kind": "email" } }
Cancel a scheduled email
Bearer HTTP authentication. Allowed headers Authorization: Bearer <API_KEY>
The email id previously created
A successful response
The response is of type object.
object