Remote Config
GET/api/v1/config
Authorization
bearer_token In: header
Query Parameters
Full-text search query
1-indexed page number
int640 <= valuePage size
int640 <= valueSort field (key, created_at, updated_at, version)
Sort order (asc or desc)
Value in
- "asc"
- "desc"
Additional filter expressions in the form field:operator:value
Filter by key prefix
Filter by environment
Include values in response
Response Body
application/json
curl -X GET "https://example.com/api/v1/config"{ "configs": [ { "description": "string", "environments": [ "string" ], "key": "string", "type": "string", "updated_at": "2019-08-24T14:15:22Z", "value": null, "version": 0 } ], "pagination": { "has_more": true, "page": 0, "page_size": 0, "total": 0 }}POST/api/v1/config
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/config" \ -H "Content-Type: application/json" \ -d '{ "description": "string", "key": "string", "schema": null, "value": null }'{ "created_at": "2019-08-24T14:15:22Z", "created_by": "string", "description": "string", "id": "string", "key": "string", "metadata": null, "schema": null, "tags": [ "string" ], "updated_at": "2019-08-24T14:15:22Z", "value": null, "version": 0}POST/api/v1/config/bulk-get
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/config/bulk-get" \ -H "Content-Type: application/json" \ -d '{ "keys": [ "string" ] }'{ "cache_ttl_seconds": 0, "configs": { "property1": { "source": "default", "value": null, "version": 0 }, "property2": { "source": "default", "value": null, "version": 0 } }, "missing_keys": [ "string" ]}GET/api/v1/config/environments
curl -X GET "https://example.com/api/v1/config/environments"[ { "created_at": "2019-08-24T14:15:22Z", "created_by": "string", "description": "string", "inherits_from": "string", "name": "string", "protected": true }]POST/api/v1/config/environments
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/config/environments" \ -H "Content-Type: application/json" \ -d '{ "description": "string", "name": "string" }'{ "created_at": "2019-08-24T14:15:22Z", "created_by": "string", "description": "string", "inherits_from": "string", "name": "string", "protected": true}DELETE/api/v1/config/environments/{name}
Authorization
bearer_token In: header
Path Parameters
Environment name
Response Body
curl -X DELETE "https://example.com/api/v1/config/environments/string"POST/api/v1/config/evaluate-batch
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request to evaluate multiple flags at once
Response Body
application/json
curl -X POST "https://example.com/api/v1/config/evaluate-batch" \ -H "Content-Type: application/json" \ -d '{ "context": { "user_id": "string", "property1": null, "property2": null }, "keys": [ "string" ] }'{ "evaluation_time_ms": 0, "evaluations": { "property1": { "enabled": true, "reason": "default_enabled", "rule_id": "string", "variant": null }, "property2": { "enabled": true, "reason": "default_enabled", "rule_id": "string", "variant": null } }}POST/api/v1/config/validate
Authorization
bearer_token In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/config/validate" \ -H "Content-Type: application/json" \ -d '{ "configs": [ { "key": "string", "value": null } ] }'{ "results": { "property1": { "errors": [ "string" ], "valid": true }, "property2": { "errors": [ "string" ], "valid": true } }, "valid": true}GET/api/v1/config/{key}
Authorization
bearer_token In: header
Path Parameters
Configuration key
Query Parameters
Environment name (defaults to 'base')
Include full metadata
Response Body
application/json
curl -X GET "https://example.com/api/v1/config/string"{ "cache_ttl_seconds": 0, "environment": "string", "key": "string", "metadata": null, "source": "default", "type": "string", "updated_at": "2019-08-24T14:15:22Z", "value": null, "version": 0}DELETE/api/v1/config/{key}
Authorization
bearer_token In: header
Path Parameters
Configuration key
Query Parameters
Force deletion
Response Body
curl -X DELETE "https://example.com/api/v1/config/string"PUT/api/v1/config/{key}
Authorization
bearer_token In: header
Path Parameters
Configuration key
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X PUT "https://example.com/api/v1/config/string" \ -H "Content-Type: application/json" \ -d '{ "value": null }'{ "cache_ttl_seconds": 0, "environment": "string", "key": "string", "metadata": null, "source": "default", "type": "string", "updated_at": "2019-08-24T14:15:22Z", "value": null, "version": 0}GET/api/v1/config/{key}/analytics
Authorization
bearer_token In: header
Path Parameters
Configuration key
Query Parameters
Environment to read analytics for (defaults to 'base')
Day window in YYYY-MM-DD form (defaults to today)
Response Body
application/json
curl -X GET "https://example.com/api/v1/config/string/analytics"{ "disabled_count": 0, "enabled_count": 0, "key": "string", "reasons": { "property1": 0, "property2": 0 }, "total_evaluations": 0, "unique_users": 0, "window": "string"}GET/api/v1/config/{key}/evaluate
Authorization
bearer_token In: header
Path Parameters
Configuration key
Query Parameters
User ID for evaluation
Environment (defaults to 'base')
Response Body
application/json
curl -X GET "https://example.com/api/v1/config/string/evaluate?user_id=string"{ "enabled": true, "environment": "string", "key": "string", "reason": "default_enabled", "rule_id": "string", "variant": null}GET/api/v1/config/{key}/history
Authorization
bearer_token In: header
Path Parameters
Configuration key
Query Parameters
Number of entries (default: 20)
int320 <= valueFilter by environment
Response Body
application/json
curl -X GET "https://example.com/api/v1/config/string/history"[ { "changed_at": "2019-08-24T14:15:22Z", "changed_by": "string", "environment": "string", "key": "string", "previous_value": null, "reason": "string", "value": null, "version": 0 }]POST/api/v1/config/{key}/rollback
Authorization
bearer_token In: header
Path Parameters
Configuration key
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/api/v1/config/string/rollback" \ -H "Content-Type: application/json" \ -d '{ "reason": "string", "version": 0 }'{ "cache_ttl_seconds": 0, "environment": "string", "key": "string", "metadata": null, "source": "default", "type": "string", "updated_at": "2019-08-24T14:15:22Z", "value": null, "version": 0}GET/api/v1/config/{key}/rules
Authorization
bearer_token In: header
Path Parameters
Configuration key
Query Parameters
Environment to read env-scoped rules from (falls back to global)
Response Body
application/json
curl -X GET "https://example.com/api/v1/config/string/rules"{ "default_enabled": true, "default_variant": "string", "environment": "string", "key": "string", "rules": [ { "description": "string", "id": "string", "sticky": true, "type": "percentage", "value": 0, "variant": null } ], "updated_at": "2019-08-24T14:15:22Z"}DELETE/api/v1/config/{key}/rules
Authorization
bearer_token In: header
Path Parameters
Configuration key
Query Parameters
Environment to delete env-scoped rules from (omit for global)
Response Body
curl -X DELETE "https://example.com/api/v1/config/string/rules"PUT/api/v1/config/{key}/rules
Authorization
bearer_token In: header
Path Parameters
Configuration key
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Request to set rules on a config (making it a feature flag)
Response Body
application/json
curl -X PUT "https://example.com/api/v1/config/string/rules" \ -H "Content-Type: application/json" \ -d '{ "rules": [ { "type": "percentage", "value": 0 } ] }'{ "default_enabled": true, "default_variant": "string", "environment": "string", "key": "string", "rules": [ { "description": "string", "id": "string", "sticky": true, "type": "percentage", "value": 0, "variant": null } ], "updated_at": "2019-08-24T14:15:22Z"}GET/api/v1/config/{key}/schema
Authorization
bearer_token In: header
Path Parameters
Configuration key
Response Body
application/json
curl -X GET "https://example.com/api/v1/config/string/schema"{ "examples": [ null ], "key": "string", "schema": null, "type": "string"}