Get Context Experiment Data
GEThttps://sandbox.absmartly.io/v1/context
A GET request for obtaining data on your experiments.
Request
Query Parameters
environment string
An environment to filter the results by. These can be found and created in your ABsmartly Web Console settings.
Example: development
application string
An application to filter the results by. These can be found and created in your ABsmartly Web Console settings.
Example: www
Responses
- 200
- 400
- 401
- default
Success
- application/json
- Schema
- Example (from schema)
Schema
experiments object[]required
{
"experiments": [
{
"id": 123,
"name": "exp_banner_color",
"iteration": 0,
"unitType": "user_id",
"environment": "production",
"seed": 9453674179528,
"split": [
0.5,
0.5
],
"trafficSeed": -56241591889905,
"trafficSplit": [
0,
1
],
"fullOnVariant": 1,
"applications": [
{
"name": "website"
}
],
"variants": [
{
"name": "treatment",
"config": "{\"color\":\"red\"}"
}
],
"audience": "{ \"filter\": [{ \"gt\": [{ \"var\": \"age\" }, { \"value\": 20 }] }] }",
"audienceStrict": false
}
]
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
code int64required
message stringrequired
{
"code": 0,
"message": "string"
}
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/context' \
-H 'Accept: application/json' \
-H 'X-API-Key: <API_KEY_VALUE>'
ResponseClear