Experiments List
List the existing experiments
/api/v1/experiments/Authentication
Syllable-API-KeyrequiredSend Syllable-API-Key in the header.
Need a credential? Create or manage an API token in the Syllable Console.
Parameters
Query parameters
page
integer | null
query
optional
The page number from which to start (0-based)
0Minimum 0Example 0limit
integer
query
optional
The maximum number of items to return
25Minimum 0Example 25search_fields
enum<string>[]
query
optional
String names of fields to search. Correspond by index to search field values
[]Example nameItem schema
itemsenum<string>required["id","name","name_exact","description","status","target_id","agent_id","created_at","updated_at","started_at","stopped_at"]search_field_values
string[]
query
optional
Values of fields to search. Correspond by index to search fields. Unless field name contains "list", an individual search field value cannot be a list
[]Example Some Object NameItem schema
itemsstringrequiredorder_by
enum<string> | null
query
optional
The field whose value should be used to order the results
["id","name","name_exact","description","status","target_id","agent_id","created_at","updated_at","started_at","stopped_at"]Example nameorder_by_direction
enum<string> | null
query
optional
The direction in which to order the results
["asc","desc"]fields
enum<string>[] | null
query
optional
The fields to include in the response
[]Example []Item schema
itemsenum<string>required["id","name","name_exact","description","status","target_id","agent_id","created_at","updated_at","started_at","stopped_at"]start_datetime
string | null
query
optional
The start datetime for filtering results
2023-01-01T00:00:00Zend_datetime
string | null
query
optional
The end datetime for filtering results
2024-01-01T00:00:00ZResponses
200Successful Response
application/json
response
ListResponse_ExperimentResponse_
required
5 fields
itemsExperimentResponse[]requiredList of items returned from the query
Item schema
itemsExperimentResponserequiredResponse model for experiment operations.
An experiment splits the traffic of one channel target between two or more agents, so that the agents can be compared on the same population. One variant is the control the others are measured against. Each variant is a weighted pointer to the agent that variant runs; the weights are relative and not percentages.
12 fields
idintegerrequiredThe internal ID of the experiment
namestringrequiredThe name of the experiment
target_idinteger | nullrequiredThe channel target being split, or null if that target has since been deleted. A running experiment always has one.
variantsDaoExperimentVariantDetail[]requiredThe variants of the experiment, in a stable order
Item schema
itemsDaoExperimentVariantDetailrequiredA variant, with the name of the agent it runs resolved for display.
6 fields
idintegerrequiredThe internal ID of the variant
namestringrequiredThe name of the variant, which is the grouping key in reports
weightintegerrequiredThe relative weight of the variant, not a percentage. (E.g., if two variants both have a weight of 10, they are equally likely to be selected.)
is_controlbooleanrequiredWhether this is the reference variant the others are measured against
agent_idintegerrequiredThe agent this variant runs
agent_namestringrequiredThe name of that agent
descriptionstring | nulloptionalThe hypothesis under test
statusenum<string>requireddraft, running, or stopped
["draft","running","stopped"]started_atstring (date-time) | nulloptionalWhen the experiment started
stopped_atstring (date-time) | nulloptionalWhen the experiment stopped
created_atstring (date-time)requiredWhen the experiment was created
updated_atstring (date-time)requiredWhen the experiment was last written
last_updated_bystringrequiredWho last wrote it
targetDaoExperimentTargetSummary | nulloptionalThe channel target being split, resolved for display. Null when the target has since been deleted, and when the read did not load it.
5 options
idintegerrequiredThe internal ID of the channel target
targetstringrequiredThe target itself, such as a phone number
target_modeenum<string>requiredThe mode of the channel target
["voice","chat","sms","email","whatsapp"]channel_idintegerrequiredThe channel the target belongs to
channel_namestringrequiredThe name of that channel
pageintegerrequiredThe page number of the results (0-based)
page_sizeintegerrequiredThe number of items returned per page
total_pagesinteger | nulloptionalThe total number of pages of results given the indicated page size
total_countinteger | nulloptionalThe total number of items returned from the query
Response example
{
"items": [
{
"id": 0,
"name": "string",
"target_id": "string",
"variants": [
{
"id": 0,
"name": "string",
"weight": 0,
"is_control": true,
"agent_id": 0,
"agent_name": "string"
}
],
"description": "string",
"status": "string",
"started_at": "string",
"stopped_at": "string",
"created_at": "string",
"updated_at": "string",
"last_updated_by": "string",
"target": "string"
}
],
"page": 0,
"page_size": 0,
"total_pages": "string",
"total_count": "string"
}No response body is declared.
422Validation Error
application/json
response
HTTPValidationError
required
1 field
detailValidationError[]optionalItem schema
itemsValidationErrorrequired3 fields
locstring | integer[]requiredItem schema
itemsstring | integerrequired2 options
Option 1stringrequiredOption 2integerrequiredmsgstringrequiredtypestringrequiredResponse example
{
"detail": [
{
"loc": [
"string"
],
"msg": "string",
"type": "string"
}
]
}
