{ "opencollection": "1.0.0", "info": { "name": "Split Admin Evaluation API", "version": "2.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Evaluation", "type": "folder" }, "items": [ { "info": { "name": "Get treatment for a feature flag", "type": "http" }, "http": { "method": "GET", "url": "https://api.split.io/internal/api/v2/client/get-treatment", "params": [ { "name": "key", "value": "", "type": "query", "description": "The customer key to evaluate the feature flag against" }, { "name": "split-name", "value": "", "type": "query", "description": "The name of the feature flag to evaluate" }, { "name": "bucketing-key", "value": "", "type": "query", "description": "Optional bucketing key used for consistent percentage-based treatment assignments" }, { "name": "attributes", "value": "", "type": "query", "description": "JSON string of attributes used in targeting rule evaluation" }, { "name": "impressions-disabled", "value": "", "type": "query", "description": "When set to true, disables impression logging for this evaluation" } ] }, "docs": "Evaluates a single feature flag for the given key and returns the treatment value. Optionally includes dynamic configuration associated with the treatment. This is the primary endpoint for feature flag evaluation." }, { "info": { "name": "Get treatment with attributes", "type": "http" }, "http": { "method": "POST", "url": "https://api.split.io/internal/api/v2/client/get-treatment", "params": [ { "name": "key", "value": "", "type": "query", "description": "The customer key to evaluate the feature flag against" }, { "name": "split-name", "value": "", "type": "query", "description": "The name of the feature flag to evaluate" }, { "name": "bucketing-key", "value": "", "type": "query", "description": "Optional bucketing key for consistent assignments" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Evaluates a single feature flag for the given key with attributes passed in the request body. This is preferred over the GET method when attributes contain complex or large data structures." }, { "info": { "name": "Get treatments for multiple feature flags", "type": "http" }, "http": { "method": "GET", "url": "https://api.split.io/internal/api/v2/client/get-treatments", "params": [ { "name": "key", "value": "", "type": "query", "description": "The customer key to evaluate feature flags against" }, { "name": "split-names", "value": "", "type": "query", "description": "Comma-separated list of feature flag names to evaluate" }, { "name": "bucketing-key", "value": "", "type": "query", "description": "Optional bucketing key for consistent assignments" }, { "name": "attributes", "value": "", "type": "query", "description": "JSON string of attributes for targeting rule evaluation" }, { "name": "impressions-disabled", "value": "", "type": "query", "description": "When set to true, disables impression logging for these evaluations" } ] }, "docs": "Evaluates multiple feature flags for the given key in a single request and returns the treatment values for each. More efficient than making individual get-treatment calls." }, { "info": { "name": "Get treatments with attributes", "type": "http" }, "http": { "method": "POST", "url": "https://api.split.io/internal/api/v2/client/get-treatments", "params": [ { "name": "key", "value": "", "type": "query", "description": "The customer key to evaluate feature flags against" }, { "name": "split-names", "value": "", "type": "query", "description": "Comma-separated list of feature flag names to evaluate" }, { "name": "bucketing-key", "value": "", "type": "query", "description": "Optional bucketing key for consistent assignments" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Evaluates multiple feature flags for the given key with attributes passed in the request body." }, { "info": { "name": "Get all treatments for a key", "type": "http" }, "http": { "method": "GET", "url": "https://api.split.io/internal/api/v2/client/get-all-treatments", "params": [ { "name": "keys", "value": "", "type": "query", "description": "JSON string containing an array of key objects with matchingKey and trafficType properties, and optionally a bucketingKey" }, { "name": "attributes", "value": "", "type": "query", "description": "JSON string of attributes for targeting rule evaluation" }, { "name": "impressions-disabled", "value": "", "type": "query", "description": "When set to true, disables impression logging for these evaluations" } ] }, "docs": "Evaluates all available feature flags for the given keys and traffic types and returns the treatment values. Useful for retrieving a complete set of flag evaluations for a user session." }, { "info": { "name": "Get all treatments with attributes", "type": "http" }, "http": { "method": "POST", "url": "https://api.split.io/internal/api/v2/client/get-all-treatments", "params": [ { "name": "keys", "value": "", "type": "query", "description": "JSON string containing an array of key objects" } ], "body": { "type": "json", "data": "{}" } }, "docs": "Evaluates all available feature flags for the given keys with attributes passed in the request body." } ] } ], "bundled": true }