provider Cancel Scheduled Sends GET
/mail/batch/{batch_id} @utdk/sendgrid
/mail/batch/{batch_id} Validate batch ID
**This endpoint allows you to validate a batch ID.**
When you pass a valid `batch_id` to this endpoint, it will return a `200` status code and the batch ID itself.
If you pass an invalid `batch_id` to the endpoint, you will receive a `400` level status code and an error message.
A `batch_id` does not need to be assigned to a scheduled send to be considered valid. A successful response means only that the `batch_id` has been created, but it does not indicate that it has been associated with a send.
- batch_id path required
- string
- 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.getMailBatchBatchId({
"on-behalf-of": "The subuser's username. This header generates the API call as if the subuser account was making the call."
})