curl --request GET \
--url http://localhost/api/admin/segments/ \
--header 'Authorization: <api-key>'{
"segments": [
{
"id": "<string>",
"workspaceId": "<string>",
"name": "<string>",
"definition": {
"entryNode": {
"type": "Trait",
"id": "<string>",
"path": "<string>",
"operator": {
"type": "Within",
"windowSeconds": 123
}
},
"nodes": [
{
"type": "Trait",
"id": "<string>",
"path": "<string>",
"operator": {
"type": "Within",
"windowSeconds": 123
}
}
]
},
"updatedAt": 123,
"subscriptionGroupId": "<string>",
"lastRecomputed": 123
}
]
}Get all segments.
curl --request GET \
--url http://localhost/api/admin/segments/ \
--header 'Authorization: <api-key>'{
"segments": [
{
"id": "<string>",
"workspaceId": "<string>",
"name": "<string>",
"definition": {
"entryNode": {
"type": "Trait",
"id": "<string>",
"path": "<string>",
"operator": {
"type": "Within",
"windowSeconds": 123
}
},
"nodes": [
{
"type": "Trait",
"id": "<string>",
"path": "<string>",
"operator": {
"type": "Within",
"windowSeconds": 123
}
}
]
},
"updatedAt": 123,
"subscriptionGroupId": "<string>",
"lastRecomputed": 123
}
]
}Default Response
Show child attributes
Show child attributes
Show child attributes
Trait Show child attributes
Trait