GET
/
api
/
v1
/
analytics
/
exports
/
lookups
/
segments
Get segments
curl --request GET \
  --url https://appex.userpilot.io/api/v1/analytics/exports/lookups/segments \
  --header 'Authorization: <authorization>'
{
  "data": [
    {
      "id": 101,
      "title": "Active Users",
      "usage": "all",
      "category": "user_id",
      "is_hidden": false,
      "is_protected": false,
      "status": "published"
    }
  ],
  "metadata": {
    "cursor": {
      "after": "...",
      "before": null
    },
    "limit": 50,
    "total_count": 1
  }
}

Headers

Authorization
string
required

API authentication token in the format: Token {{API_KEY}}. Obtain your API key from the Userpilot Environment Settings.

Response

200 - application/json

A paginated list of segments.

data
object[]
metadata
object