POST
/
api
/
experiment
/
ab-test
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>"
}

Authorizations

Authorization
string
header
required

Headers

TR-Dataset
string
required

The dataset id to use for the request

Body

application/json

JSON request payload to get a user's treatment

The body is of type object.

Response

200
application/json

User treatment response

The response is of type object.