Get Experiment Data
GEThttps://sandbox.absmartly.io/v1/experiment
A GET request for obtaining data on all running experiments.
Request
Header Parameters
X-Agent stringrequired
The User-Agent of your SDK.
Example: absmartly-Java-SDK v1.0.1
X-Environment stringrequired
The environment in which you are running your experiments. These can be found and created in your ABsmartly Web Console settings.
Example: development
X-Application stringrequired
The application in which you are running your experiments. These can be found and created in your ABsmartly Web Console settings.
Example: www
X-Application-Version int64required
The application version which you are running your experiments on.
Example: 0
Responses
- 200
- 401
- default
Success
- application/json
- Schema
- Example (from schema)
Schema
experiments object[]required
{
"experiments": [
{
"id": 123,
"name": "exp_banner_color",
"iteration": 0,
"split": [
0.5,
0.5
],
"trafficSplit": [
0,
1
],
"variants": [
{
"name": "treatment",
"config": "{\"color\":\"red\"}"
}
]
}
]
}
Unauthorized
Unexpected error
- application/json
- Schema
- Example (from schema)
Schema
code int64required
message stringrequired
{
"code": 0,
"message": "string"
}
Authorization: X-API-Key
name: X-API-Keytype: apiKeyin: headerrequired: true
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://sandbox.absmartly.io/v1/experiment' \
-H 'Accept: application/json' \
-H 'X-API-Key: <API_KEY_VALUE>'
ResponseClear