provider Cancel Scheduled Sends POST
/mail/batch @utdk/sendgrid
/mail/batch Create a batch ID
**This endpoint allows you to generate a new batch ID.**
Once a `batch_id` is created, you can associate it with a scheduled send using the `/mail/send` endpoint. Passing the `batch_id` as a field in the `/mail/send` request body will assign the ID to the send you are creating.
Once an ID is associated with a scheduled send, the send can be accessed and its send status can be modified using the `batch_id`.
- on-behalf-of header
- string
Try it
Authentication
Configure credentials for Email Activity (beta)
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import sendgrid from '@utdk/sendgrid';
await sendgrid.postMailBatch({
"on-behalf-of": "The subuser's username. This header generates the API call as if the subuser account was making the call."
})