curl --request GET \
--url http://localhost:3000/projects/{projectId}/environments/{envId}/flags \
--header 'Authorization: Bearer <token>'{
"statusCode": 123,
"message": "OK",
"data": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"key": "<string>",
"type": "boolean",
"is_active": true,
"client_side_enabled": true,
"analytics_enabled": true,
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"flag_value": {
"targeting_rules_count": 0,
"variations_count": 0,
"segments_count": 0,
"type": "boolean",
"off_variation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"description": "<string>"
}
],
"meta": {
"total": 123,
"page": 123,
"pageCount": 123
}
}
}Fetch all flags with their values for a specific environment (with pagination).
curl --request GET \
--url http://localhost:3000/projects/{projectId}/environments/{envId}/flags \
--header 'Authorization: Bearer <token>'{
"statusCode": 123,
"message": "OK",
"data": {
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"key": "<string>",
"type": "boolean",
"is_active": true,
"client_side_enabled": true,
"analytics_enabled": true,
"metadata": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"deleted_at": "2023-11-07T05:31:56Z",
"flag_value": {
"targeting_rules_count": 0,
"variations_count": 0,
"segments_count": 0,
"type": "boolean",
"off_variation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
},
"description": "<string>"
}
],
"meta": {
"total": 123,
"page": 123,
"pageCount": 123
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
x >= 11 <= x <= 100Search query to filter projects by name or projectKey
Filter flags by metadata.flag_template value
Sort results in ascending order
asc Field to sort results by