GamebeastDocs
Dashboard

Get available experiments snapshot

GET
/sdk/v1/experiments/

Returns a snapshot of every experiment currently available to this application and environment, including each experiment's groups, variants, and static configuration. The SDK uses this to know which experiments exist before asking for an assignment.

Authorization

sdkApiKey
authorization<token>

SDK (public) key, prefixed gb_pk_ (older keys: sdk_). Send it as the authorization header value. Scoped to one project, so it is safe to ship in a game build.

In: header

Header Parameters

isstudio?|
Defaulttrue
project-id?integer
Range0 < value <= 9007199254740991

Response Body

application/json

curl -X GET "https://example.com/sdk/v1/experiments/"
{  "timestampMs": 0,  "targetType": "gameserver",  "requiredProperties": [    "string"  ],  "groups": [    {      "id": 0,      "endsAt": 0,      "groupName": "string",      "experimentName": "string",      "configs": {        "options": {          "privacy": [            [              "string"            ]          ]        },        "variables": null      }    }  ],  "scheduled": {    "property1": [      0    ],    "property2": [      0    ]  }}