Contacts
Get Batched Contacts by IDs
POST /v3/marketing/contacts/batch
Base url: https://api.sendgrid.com
This endpoint is used to retrieve a set of contacts identified by their IDs.
This can be more efficient endpoint to get contacts than making a series of individual GET
requests to the "Get a Contact by ID" endpoint.
You can supply up to 100 IDs. Pass them into the ids
field in your request body as an array or one or more strings.
Twilio SendGrid recommends exporting your contacts regularly as a backup to avoid issues or lost data.
Request Body
Array of IDs
{
"ids": [
"1234",
"1235"
]
}
Responses
A link to this object.
the error message
the field that generated the error
helper text or docs for troubleshooting
{
"errors": [
{
"field": "field_name",
"message": "error message"
}
]
}
the error message
the field that generated the error
helper text or docs for troubleshooting
{
"errors": [
{
"field": "field_name",
"message": "error message"
}
]
}
Need some help?
We all do sometimes. Get help now from the Twilio SendGrid Support Team.
Running into a coding hurdle? Lean on the wisdom of the crowd by browsing the SendGrid tag on Stack Overflow or visiting Twilio's Stack Overflow Collective.