v1.0
OAS 2.0
Bucketeer Gateway Service
Client Libraries
Gets a single evaluation for a specific user. To call this API, you need a CLIENT
API Key role.
curl https://ENDPOINT/get_evaluation \
--request POST \
--header 'Content-Type: application/json' \
--header 'authorization: YOUR_SECRET_TOKEN' \
--data '{
"tag": "",
"user": {
"id": "",
"data": {
"propertyName*": ""
},
"taggedData": {
"propertyName*": {
"value": {
"propertyName*": ""
}
}
},
"lastSeen": "",
"createdAt": ""
},
"featureId": "",
"sourceId": "UNKNOWN",
"sdkVersion": ""
}'
{
"evaluation": {
"id": "string",
"featureId": "string",
"featureVersion": 1,
"userId": "string",
"variationId": "string",
"variation": {
"id": "string",
"value": "string",
"name": "string",
"description": "string"
},
"reason": {
"type": "TARGET",
"ruleId": "string"
},
"variationValue": "string",
"variationName": "string"
}
}
A successful response.
Gets all the evaluations for a specific user. To call this API, you need a CLIENT
API Key role.
curl https://ENDPOINT/get_evaluations \
--request POST \
--header 'Content-Type: application/json' \
--header 'authorization: YOUR_SECRET_TOKEN' \
--data '{
"tag": "",
"user": {
"id": "",
"data": {
"propertyName*": ""
},
"taggedData": {
"propertyName*": {
"value": {
"propertyName*": ""
}
}
},
"lastSeen": "",
"createdAt": ""
},
"userEvaluationsId": "",
"featureId": "",
"sourceId": "UNKNOWN",
"userEvaluationCondition": {
"evaluatedAt": "",
"userAttributesUpdated": true
},
"sdkVersion": ""
}'
{
"state": "QUEUED",
"evaluations": {
"id": "string",
"evaluations": [
{
"id": "string",
"featureId": "string",
"featureVersion": 1,
"userId": "string",
"variationId": "string",
"variation": {
"id": "string",
"value": "string",
"name": "string",
"description": "string"
},
"reason": {
"type": "TARGET",
"ruleId": "string"
},
"variationValue": "string",
"variationName": "string"
}
],
"createdAt": "string",
"archivedFeatureIds": [
"string"
],
"forceUpdate": true
},
"userEvaluationsId": "string"
}
A successful response.
Gets all the feature flag in an environment. To call this API, you need a SERVER
API Key role.
curl https://ENDPOINT/get_feature_flags \
--request POST \
--header 'Content-Type: application/json' \
--header 'authorization: YOUR_SECRET_TOKEN' \
--data '{
"tag": "",
"featureFlagsId": "",
"requestedAt": "",
"sourceId": "UNKNOWN",
"sdkVersion": ""
}'
{
"featureFlagsId": "string",
"features": [
{
"id": "string",
"name": "string",
"description": "string",
"enabled": true,
"deleted": true,
"evaluationUndelayable": true,
"ttl": 1,
"version": 1,
"createdAt": "string",
"updatedAt": "string",
"variations": [
{
"id": "string",
"value": "string",
"name": "string",
"description": "string"
}
],
"targets": [
{
"variation": "string",
"users": [
"string"
]
}
],
"rules": [
{
"id": "string",
"strategy": {
"type": "FIXED",
"fixedStrategy": {
"variation": "string"
},
"rolloutStrategy": {
"variations": [
{
"variation": "string",
"weight": 1
}
],
"audience": {
"percentage": 1,
"defaultVariation": "string"
}
}
},
"clauses": [
{
"id": "string",
"attribute": "string",
"operator": "EQUALS",
"values": [
"string"
]
}
]
}
],
"defaultStrategy": {
"type": "FIXED",
"fixedStrategy": {
"variation": "string"
},
"rolloutStrategy": {
"variations": [
{
"variation": "string",
"weight": 1
}
],
"audience": {
"percentage": 1,
"defaultVariation": "string"
}
}
},
"offVariation": "string",
"tags": [
"string"
],
"lastUsedInfo": {
"featureId": "string",
"version": 1,
"lastUsedAt": "string",
"createdAt": "string",
"clientOldestVersion": "string",
"clientLatestVersion": "string"
},
"maintainer": "string",
"variationType": "STRING",
"archived": true,
"prerequisites": [
{
"featureId": "string",
"variationId": "string"
}
],
"samplingSeed": "string",
"autoOpsSummary": {
"progressiveRolloutCount": 1,
"scheduleCount": 1,
"killSwitchCount": 1
}
}
],
"archivedFeatureFlagIds": [
"string"
],
"requestedAt": "string",
"forceUpdate": true
}
A successful response.
Gets all the segment users in an environment. To call this API, you need a SERVER
API Key role.
curl https://ENDPOINT/get_segment_users \
--request POST \
--header 'Content-Type: application/json' \
--header 'authorization: YOUR_SECRET_TOKEN' \
--data '{
"segmentIds": [
""
],
"requestedAt": "",
"sourceId": "UNKNOWN",
"sdkVersion": ""
}'
{
"segmentUsers": [
{
"segmentId": "string",
"users": [
{
"id": "string",
"segmentId": "string",
"userId": "string",
"state": "INCLUDED",
"deleted": true
}
],
"updatedAt": "string"
}
],
"deletedSegmentIds": [
"string"
],
"requestedAt": "string",
"forceUpdate": true
}
A successful response.
This API is for reporting Goal events. To call this API, you need a CLIENT
or SERVER
API Key role.
curl https://ENDPOINT/register_events \
--request POST \
--header 'Content-Type: application/json' \
--header 'authorization: YOUR_SECRET_TOKEN' \
--data '{
"events": [
{
"id": "",
"event": {
"@type": "",
"propertyName*": "anything"
},
"environmentId": ""
}
],
"sdkVersion": "",
"sourceId": "UNKNOWN"
}'
{
"errors": {
"propertyName*": {
"retriable": true,
"message": "string"
}
}
}
A successful response.
This API is an integration for Google Tab Manager to report Goal events. To call this API, you need a CLIENT
API Key role.
curl 'https://ENDPOINT/track?apikey=&userid=&goalid=&tag=×tamp=&value=1' \
--header 'authorization: YOUR_SECRET_TOKEN'
{}
A successful response.
Cookie Enabled | Cookie Key | Cookie Value |
---|---|---|
Header Enabled | Header Key | Header Value |
---|---|---|
Accept | */* | |
Content-Type | application/json | |
Parameter Enabled | Parameter Key | Parameter Value |
---|---|---|