List Segments
List Segments available to the organisation. Campaigns and sendouts take Segment versions, as segment_version_ids and to_segment_version_ids; include published_version for the id of the version each Segment sends to.
Authorization
bearerAuth In: header
Query Parameters
Unique identifier for the resource.
uuidFilters by any of the supplied id values.
items <= 10Filters resources by id using the not_in operator.
Human-readable name of the resource.
Filters out resources with this name.
Filters by any of the supplied name values.
Stable key used to identify the resource.
Filters by any of the supplied key values.
Maximum number of resources to return.
100 <= value <= 100Opaque token returned by a previous page request.
1 <= lengthAdditional fields to include in the response. Use repeated query syntax: include=foo&include=bar.
Response Body
application/json
curl -X GET "https://api.getmateo.com/v1/segments"{ "object": "list", "data": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "key": "string", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "published_version": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "segment_id": "0dbbf761-5b2d-4647-8bfa-2b714456749c", "version": 1, "published": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } } ], "next_page_url": "string", "previous_page_url": "string"}