{ "opencollection": "1.0.0", "info": { "name": "Knock Audiences Accounts Variables API", "version": "1.0" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Variables", "type": "folder" }, "items": [ { "info": { "name": "Get a variable", "type": "http" }, "http": { "method": "GET", "url": "https://api.knock.app/v1/variables/:key", "params": [ { "name": "key", "value": "", "type": "path", "description": "The key of the variable to retrieve." } ] }, "docs": "Returns a single variable by key with per-environment value overrides." }, { "info": { "name": "List variables", "type": "http" }, "http": { "method": "GET", "url": "https://api.knock.app/v1/variables", "params": [ { "name": "environment", "value": "", "type": "query", "description": "The environment slug." }, { "name": "branch", "value": "", "type": "query", "description": "The slug of a branch to use. This option can only be used when `environment` is `\"development\"`." }, { "name": "type", "value": "", "type": "query", "description": "Filter variables by type. Supports 'public' or 'secret'." }, { "name": "after", "value": "", "type": "query", "description": "The cursor to fetch entries after." }, { "name": "before", "value": "", "type": "query", "description": "The cursor to fetch entries before." }, { "name": "limit", "value": "", "type": "query", "description": "The number of entries to fetch per-page." } ] }, "docs": "Returns a list of variables. When an environment is specified, returns per-environment variables. Otherwise, returns project-scoped variables with per-environment overrides." } ] } ], "bundled": true }