SDK V2Experiments
Resolve experiment assignments
Resolve assignments for the identified unit without returning configuration content. Creates assignments as needed but does not merge or return the configuration document. Primarily for diagnostics and SDKs that fetch assignments separately.
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
Query Parameters
configuration?string
Length
1 <= lengthHeader Parameters
environment?string
Environment alias. Defaults to development when omitted; studio is accepted as a synonym for it. Any alias outside the calling key's environment scope is rejected with 403.
Length
1 <= lengthValue in
- "production"
- "development"
project-id?integer
Range
0 < value <= 9007199254740991distinct-id?string
Length
1 <= length <= 256unit-type?string
Value in
- "user"
- "server"
evaluation-context?string
Length
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/sdk/v2/experiments/assignments"{ "configurationId": 0, "assignments": [ { "experimentId": 0, "groupId": 0, "automaticGroupId": 0, "overrideGroupId": 0, "status": "active", "source": "weightedHash", "assignmentVersion": 0 } ]}