Skip to Content

List segments

GET
/segments

Get all audience segments for the project, newest first. This endpoint is not paginated — it returns a bare array of every segment.

Authorization

ApiKeyAuth
headerAuthorizationBearer <API Key>

API Key authentication. The project is automatically derived from the key.

/v1/track requires a public key (pk_*) — it is the one endpoint intended for client-side use, and a secret key is rejected there with 401.

Every other endpoint requires a secret key (sk_*) and rejects public keys with 401.

So the two key types are not interchangeable in either direction: pick the key that matches the endpoint you are calling.

Response body

List of segments

application/json
  1. response
[index: integer]?
Example request
curl -X GET 'https://api.send.47signals.com/segments'
Example response
[  {    "id": "string",    "name": "string",    "description": "string",    "type": "DYNAMIC",    "condition": {      "logic": "AND",      "groups": [        {          "filters": [            {              "field": "string",              "operator": "equals",              "value": null,              "unit": "days"            }          ],          "conditions": {}        }      ]    },    "trackMembership": true,    "memberCount": 0,    "projectId": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }]