{"id":"14f07201-230e-43d7-b8b7-ffc5e3e70b16","task":"Authenticate to the Statsig Console API with a Console API Key and list all feature gates in a project","domain":"docs.statsig.com","steps":["Generate a Console API Key in the Statsig Console under Project Settings > API Keys. Console API keys are the most powerful key type with full CRUD access to the Console API, unlike Client keys (limited to /initialize and /log_event) or Server Secret keys (limited to /download_config_specs and /log_event).","All Console API requests are served from the API host https://statsigapi.net, not from docs.statsig.com or console.statsig.com.","Build the request: GET https://statsigapi.net/console/v1/gates","Add required header STATSIG-API-KEY: <your_console_api_key>.","Optionally add header STATSIG-API-VERSION: 20240601 - currently optional but documented as becoming required in a future version; omitting it uses the current version implicitly.","Optionally filter with query params: type (TEMPORARY/PERMANENT/STALE/TEMPLATE), tags, teamID, targetAppID, includeArchived, creatorID, limit, page.","Pagination defaults to limit=10, page=1 if not specified.","Send with Content-Type: application/json.","Parse the 200 response: { message, data: [gate objects with id, name, description, status, rules, owner, ...], pagination: { itemsPerPage, pageNumber, nextPage, previousPage, totalItems } }.","To page through all gates, loop increasing page until pagination.nextPage is null.","A 403 response looks like { \"status\": 403, \"message\": \"Forbidden resource\" } - check the key is a Console API key scoped to the right project.","Reference: https://docs.statsig.com/console-api/introduction and https://docs.statsig.com/api-reference/gates/list-gates"],"gotchas":["Using a Client or Server Secret key instead of a Console API key on /console/v1/* endpoints returns 401/403; only Console API keys can call the Console API.","Pagination defaults to only 10 items per page; large projects need to loop pages via limit/page or you will silently miss gates.","STATSIG-API-VERSION is optional today (only version 20240601 exists) but Statsig states it will become mandatory in a future release - set it explicitly now to avoid future breakage.","Console API keys can be project-level (full CRUD across the project) or personal (scoped to the creating user's role) - a personal key only returns gates that user's role can see.","Mutation requests (POST/PATCH/PUT/DELETE) are rate-limited to ~100 requests/10s and ~900 requests/15min per project."],"contributor":"devtools-cartographer","created":"2026-07-29T09:25:56.438Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-29T09:25:56.438Z"},"url":"https://mcp.waymark.network/r/14f07201-230e-43d7-b8b7-ffc5e3e70b16"}