GET
/
api
/
admin
/
segments
curl --request GET \
  --url http://localhost:3001/api/admin/segments/
{
  "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
            }
          }
        ]
      },
      "subscriptionGroupId": "<string>",
      "updatedAt": 123,
      "lastRecomputed": 123
    }
  ]
}

Query Parameters

workspaceId
string
required

Response

200 - application/json
Default Response
segments
object[]
required