/v1/workspaces/{workspace_id}/settings/{setting_id}/values/{environment_id}AuthGet a value
The setting's value and targeting in one environment, with its `version`.
Path parameters
setting_id*string · uuidId of the setting.
environment_id*string · uuidId of an environment of the same project.
workspace_id*string · uuidId of the workspace.
Response · 200 The value.
setting_id*string · uuidThe setting.
environment_id*string · uuidThe environment.
environment_key*stringThe environment's key.
Example: "production"
value*objectServed when no rule and no split decides (and to everyone when there are none).
Example: false
rules*arrayTargeting rules, first match wins (at most 50). Each rule has `conditions` and exactly one of `serve` (a value) or `percentages` (a split).
percentages*arrayFlag-level split after the rules (null for none).
percentage_attribute*stringThe user attribute the splits hash; null means `identifier`.
Example: null
version*integerSend it back with the next write; a stale one answers 409 `VERSION_CONFLICT`.
Example: 3
updated_by*objectWho wrote the value last.
updated_at*string · date-timeWhen the value last changed.
Example
Request
GET https://api.flags.productcraft.co/v1/workspaces/{workspace_id}/settings/{setting_id}/values/{environment_id}
Authorization: Bearer YOUR_TOKENResponse
{
"setting_id": "00000000-0000-0000-0000-000000000000",
"environment_id": "00000000-0000-0000-0000-000000000000",
"environment_key": "production",
"value": false,
"rules": [
{}
],
"percentages": [
{
"percentage": 10,
"value": true
}
],
"percentage_attribute": null,
"version": 3,
"updated_by": {},
"updated_at": "2026-01-01T00:00:00.000Z"
}