Hellomateo API Documentation
Segments

List Segments

GET
/v1/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
AuthorizationBearer <token>

In: header

Query Parameters

id?string

Unique identifier for the resource.

Formatuuid
id[in]?array<>

Filters by any of the supplied id values.

Itemsitems <= 10
id[not_in]?array<>

Filters resources by id using the not_in operator.

name?string

Human-readable name of the resource.

name[neq]?string

Filters out resources with this name.

name[in]?array<string>

Filters by any of the supplied name values.

key?string

Stable key used to identify the resource.

key[in]?array<string>

Filters by any of the supplied key values.

limit?integer

Maximum number of resources to return.

Default10
Range0 <= value <= 100
page_token?string

Opaque token returned by a previous page request.

Length1 <= length
include?array<"published_version">

Additional 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"}