SegmentList

Get list of Segments . Segments can refer to any Table.

The two main tables you will be working with are User and Content.

# Grab all segments from "user" table

curl "$LIOAPI/api/segment" -s -H "Authorization: $LIOKEY" | jq '.'

# Grab all "Content Collections" (ney, segments)

curl "$LIOAPI/api/segment?table=content" -s -H "Authorization: $LIOKEY" | jq '.'

Query Params
string

Your Lytics account ID.

string

Table for segments to fetch, "user" by default, specify "content" for content collections (aka segments).

string

True, False or "all". Get all segments, only valid, or only invalid.

Response

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json