segments
Get Segment
Get the metadata of a segment. If the segment is not read-only, the response also contains its definition. Read-only segments do not have a definition.
get/3.0/segments/{segment_id}
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
segment_idstring required
The unique id for the segment.
Query parameters
fieldsstring[]
A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
exclude_fieldsstring[]
A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
Response
Example response
{
"created_at": "2025-01-15T10:30:00+00:00",
"id": "0dbaba26-0003-8000-8000-000000000919",
"list_id": "a1b2c3d4e5",
"name": "Example Segment"
}Changes
No recorded changes to this operation across all 1 revision of this API.