GamebeastDocs
Dashboard
Project APIExperiments (V2)

Count enrolled units per experiment

GET
/application/{applicationId}/v2/experiments/assignment-counts

Count the units currently enrolled in each of the given experiments, read from ClickHouse. Batched so a page of the catalog costs one request. Experiments with no enrolled units are omitted. Responds 503 when the assignment store cannot be read, so a caller never mistakes an outage for an empty experiment.

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

Query Parameters

experimentIds*array<>
Items1 <= items <= 100

Header Parameters

environment_id*number

Gamebeast environment ID

Response Body

application/json

curl -X GET "https://example.com/application/0/v2/experiments/assignment-counts?experimentIds=1" \  -H "environment_id: 0"
{  "counts": [    {      "experimentId": 1,      "assignedUnitCount": 0    }  ]}