GamebeastDocs
Dashboard
Server APICohorts

Get all cohorts for an application

GET
/application/{applicationId}/analytics/v1/cohorts/

Authorization

personalAccessTokenAuth
AuthorizationBearer <token>

Personal access token (prefixed gb_pat_). Acts on behalf of its owner and can never exceed the owner's own permissions. Send it as Authorization: Bearer <token>.

In: header

Path Parameters

applicationId*number

Gamebeast project ID

Response Body

application/json

curl -X GET "https://example.com/application/0/analytics/v1/cohorts/"
[  {    "id": 0,    "applicationId": 0,    "name": "string",    "description": "string",    "definition": [      [        {          "operator": "and",          "conditions": [            {              "positive": true,              "metric": {                "type": "cohort",                "name": "string",                "definition": null,                "unresolved": true,                "filter": {                  "operation": "and",                  "conditions": [                    {                      "name": "string",                      "type": "property",                      "dataType": "string",                      "condition": {                        "string": {                          "operation": "Is",                          "value": [                            "string"                          ]                        }                      },                      "experiment": {                        "version": "v1",                        "level": "experiment",                        "experimentId": 0                      },                      "sentiment": {                        "topics": [                          "string"                        ],                        "window": {                          "mode": "query_range"                        },                        "map": "metadata"                      }                    }                  ]                }              }            }          ]        }      ]    ],    "createdBy": {      "id": "string",      "name": "string"    },    "updatedBy": "string"  }]