Contacts API - Segments
Elements that can be shared among more than one endpoint definition.
Retrieve all segments
GET /v3/contactdb/segments
Base url: https://api.sendgrid.com
This endpoint allows you to retrieve all of your segments.
Authentication
- API Key
Headers
Responses
The name of this segment.
The list id from which to make this segment. Not including this ID will mean your segment is created from the main contactdb rather than a list.
The conditions for a recipient to be included in this segment.
The count of recipients in this list. This is not included on creation of segments.
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; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the SendGrid tag on Stack Overflow.