{ "item": [ { "id": "0d993079-1505-4a12-9229-37ca0d40fe95", "name": "Flags", "description": { "content": "Retrieve feature flags for an environment. Returns the current state of all feature flags including their enabled status and values.", "type": "text/plain" }, "item": [ { "id": "bf2f4bef-2cc9-4ad8-80e5-3d45c5d4f384", "name": "List all flags for an environment", "request": { "name": "List all flags for an environment", "description": { "content": "Retrieves all feature flags for the environment associated with the provided Environment Key. Returns an array of flag objects, each containing the feature definition, its enabled state, and any associated value. This endpoint is used by client-side SDKs to initialize flag state.", "type": "text/plain" }, "url": { "path": [ "flags", "" ], "host": [ "{{baseUrl}}" ], "query": [ { "disabled": false, "key": "feature", "value": "", "description": "Optional feature name to filter flags. When provided, returns only the flag matching the specified feature name." } ], "variable": [] }, "header": [ { "key": "Accept", "value": "application/json" } ], "method": "GET", "auth": null }, "response": [ { "id": "97d664bf-fa74-4f96-b20a-c92cce0fc37e", "name": "Successful response containing all flags for the environment", "originalRequest": { "url": { "path": [ "flags", "" ], "host": [ "{{baseUrl}}" ], "query": [ { "key": "feature", "value": "" } ], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" }, { "key": "Accept", "value": "application/json" } ], "method": "GET", "body": {} }, "status": "OK", "code": 200, "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": "[\n {\n \"id\": 5941,\n \"feature\": {\n \"id\": 3091,\n \"name\": \"string\",\n \"created_date\": \"1987-01-09T07:41:43.951Z\",\n \"description\": \"string\",\n \"initial_value\": \"string\",\n \"default_enabled\": true,\n \"type\": \"STANDARD\"\n },\n \"feature_state_value\": \"string\",\n \"enabled\": true,\n \"environment\": 3710,\n \"identity\": 3271,\n \"feature_segment\": 6867\n },\n {\n \"id\": 9374,\n \"feature\": {\n \"id\": 9045,\n \"name\": \"string\",\n \"created_date\": \"2009-08-25T00:56:59.116Z\",\n \"description\": \"string\",\n \"initial_value\": \"string\",\n \"default_enabled\": false,\n \"type\": \"MULTIVARIATE\"\n },\n \"feature_state_value\": \"string\",\n \"enabled\": true,\n \"environment\": 2958,\n \"identity\": 3212,\n \"feature_segment\": 7823\n }\n]", "cookie": [], "_postman_previewlanguage": "json" }, { "id": "9fb9a40d-5a0e-4416-8b6e-3c0c0cb6fd59", "name": "Unauthorized - invalid or missing Environment Key", "originalRequest": { "url": { "path": [ "flags", "" ], "host": [ "{{baseUrl}}" ], "query": [ { "key": "feature", "value": "" } ], "variable": [] }, "header": [ { "description": { "content": "Added as a part of security scheme: apikey", "type": "text/plain" }, "key": "Authorization", "value": "" }, { "key": "Accept", "value": "application/json" } ], "method": "GET", "body": {} }, "status": "Unauthorized", "code": 401, "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": "{\n \"detail\": \"string\"\n}", "cookie": [], "_postman_previewlanguage": "json" } ], "event": [], "protocolProfileBehavior": { "disableBodyPruning": true } } ], "event": [] } ], "event": [], "variable": [ { "type": "string", "value": "https://api.flagsmith.com/api/v1", "key": "baseUrl" } ], "auth": { "type": "apikey", "apikey": [ { "key": "key", "value": "Authorization" }, { "key": "value", "value": "{{apiKey}}" }, { "key": "in", "value": "header" } ] }, "info": { "_postman_id": "c5bf2d7b-2797-490e-aa79-5993c8616ef0", "name": "Flagsmith Admin Environments Flags API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description": { "content": "The Flagsmith Admin API allows developers to programmatically manage all aspects of their Flagsmith projects. Anything that can be done through the Flagsmith dashboard can also be accomplished via this API, including creating, updating, and deleting projects, environments, feature flags, segments, and users. It uses a secret Organisation API Token for authentication and provides a Swagger interface at api.flagsmith.com/api/v1/docs for interactive exploration.\n\nContact Support:\n Name: Flagsmith Support", "type": "text/plain" } } }