List segments
Get information about all available segments for a specific list.
Request
- Base URLhttps://api.mailchimp.com
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://login.mailchimp.com/oauth2/authorizeToken URLhttps://login.mailchimp.com/oauth2/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique ID for the list.
Query parameters
A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
The number of records to return. Default value is 10. Maximum value is 1000
Used for pagination, this is the number of records from a collection to skip. Default value is 0.
Limit results based on segment type.
Restrict results to segments created after the set time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
Restrict results to segments created before the set time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
Include cleaned members in response
Include transactional members in response
Include unsubscribed members in response
Restrict results to segments update after the set time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
Restrict results to segments update before the set time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
Exclude results based on segment type. For example, use exclude_type=static to exclude tags from the response.
Response
Example response
{
"segments": [
{
"options": {
"conditions": [
{
"field": "aim",
"op": "open",
"value": "any"
}
]
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.