PelekaPeleka Developers
API ReferenceAudienceSegments

List segments in the workspace

GET
/api/v1/segments
X-API-Key<token>

In: header

Response Body

application/json

curl -X GET "https://example.com/api/v1/segments"
{  "data": [    {      "id": "550e8400-e29b-41d4-a716-446655440000",      "workspaceId": "550e8400-e29b-41d4-a716-446655440000",      "name": "Active subscribers",      "icon": "users",      "description": "Subscribed in the last 90 days",      "color": "#3b82f6",      "type": "dynamic",      "rules": {        "conditions": []      },      "count": "1234",      "createdAt": "2026-01-01T00:00:00.000Z",      "updatedAt": "2026-01-01T00:00:00.000Z"    }  ]}