Get or create a participant's assignment
GET
https://api.evidential.dev/v1/experiments/{experiment_id}/assignments/{participant_id}
Gets or creates an arm assignment for a participant. The behavior depends on the experiment type:
- Preassigned A/B experiments: returns the assignment if one exists.
create_if_noneis ignored. - Online A/B and Multi-armed Bandit experiments: returns the existing assignment, or creates one
when
create_if_noneis true. - Contextual Multi-armed Bandit (CMAB) experiments: returns the assignment if one exists. To create
a new assignment, use the
assign_cmabendpoint, which accepts the required context values.
Authorization
Path parameters
Query parameters
Returns
200
Successful Response
400
The request is invalid. Check that the request body matches the required structure and that all required fields and headers are present.
403
You did not provide a valid API key, or your API key does not have permission for this operation.
Tip: Check that the API key in the X-API-Key header has access to the data source or experiment.
404
The resource was not found, or you do not have access to it.
Tip: Check that the API key in the X-API-Key header has access to the data source or experiment.