Create a batch ID
POST https://api.sendgrid.com/v3/mail/batch
This endpoint allows you to generate a new batch ID. This batch ID can be associated with scheduled sends via the mail/send endpoint.
If you set the SMTPAPI header batch_id
, it allows you to then associate multiple scheduled mail/send requests together with the same ID. Then at anytime up to 10 minutes before the schedule date, you can cancel all of the mail/send requests that have this batch ID by calling the Cancel Scheduled Send endpoint.
More Information:
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |