curl --request GET \
--url http://localhost:3000/projects/{projectId}/environments/{envId}/flags/{flagId}/value \
--header 'Authorization: Bearer <token>'{
"statusCode": 123,
"message": "OK",
"data": {
"value": "<unknown>",
"type": "boolean",
"targeting_rules": [
{
"type": "rule",
"attribute": "<string>",
"operator": "eq",
"value": "<string>"
}
],
"key": "<string>",
"off_variation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rollout": {
"strategy": "gradual",
"target_percentage": 50,
"increment": 50,
"interval_hours": 1,
"salt": "<string>",
"start_at": "2023-11-07T05:31:56Z"
}
}
}Fetch the full configuration of a flag in a specific project + environment.
Access: Viewers, Editors, Admins, or SDKs with read-only token for the project.
Returns the flag’s value, type, targeting rules, and rollout strategy.
curl --request GET \
--url http://localhost:3000/projects/{projectId}/environments/{envId}/flags/{flagId}/value \
--header 'Authorization: Bearer <token>'{
"statusCode": 123,
"message": "OK",
"data": {
"value": "<unknown>",
"type": "boolean",
"targeting_rules": [
{
"type": "rule",
"attribute": "<string>",
"operator": "eq",
"value": "<string>"
}
],
"key": "<string>",
"off_variation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rollout": {
"strategy": "gradual",
"target_percentage": 50,
"increment": 50,
"interval_hours": 1,
"salt": "<string>",
"start_at": "2023-11-07T05:31:56Z"
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.