curl --request POST \
--url https://api.trieve.ai/api/experiment/ab-test \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Dataset: <tr-dataset>' \
--data '{
"experiment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "<string>"
}'
{
"experiment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"treatment_name": "<string>",
"user_id": "<string>"
}
Get a user’s treatment for an experiment. Auth’ed user must be an owner of the organization to get a user’s treatment.
curl --request POST \
--url https://api.trieve.ai/api/experiment/ab-test \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--header 'TR-Dataset: <tr-dataset>' \
--data '{
"experiment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"user_id": "<string>"
}'
{
"experiment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"treatment_name": "<string>",
"user_id": "<string>"
}
The dataset id to use for the request
JSON request payload to get a user's treatment
The body is of type object
.
User treatment response
The response is of type object
.
Was this page helpful?