Chief Tools Logo
API

Scopes

Scopes limit what an access token can do in FlowGuard. Choose them when you create an access token. Start with the narrowest scope that covers your integration. The shared scopes guide explains how parent scopes and write access work.

Each endpoint in the REST API reference lists its required scope under security.

Available scopes

Broad scopes

ScopeAccess
flowguardEvery user-facing FlowGuard API operation
flowguard:readEvery resource read operation
flowguard:writeEvery resource write and read operation

Logs

ScopeAccess
flowguard:logs:readDiscover log fields and query request logs

Both GET /logs/fields and POST /logs/query use this read scope. FlowGuard does not have a separate write scope for logs.

Rules

ScopeAccess
flowguard:rules:readList and retrieve rules, and inspect rule capabilities
flowguard:rules:writeCreate, update, disable, and delete rules; also grants rule reads

Actions

ScopeAccess
flowguard:actions:readList and retrieve actions
flowguard:actions:writeCreate, update, and delete actions; also grants action reads

Servers and IP lists

ScopeAccess
flowguard:servers:readList and retrieve FlowGuard proxies, configuration, status, and capabilities
flowguard:servers:writeCreate, update, and delete FlowGuard proxies; also grants proxy reads
flowguard:ip_lists:readRead team and global IP lists and their entries
flowguard:ip_lists:writeCreate, update, and delete team IP lists and manage their entries; also grants IP-list reads

Scopes are hierarchical. A resource write scope includes the matching read scope. flowguard:read grants every resource read scope, flowguard:write grants every resource write and read scope, and flowguard grants everything. A resource scope does not grant access to unrelated resources.

Example token configurations

Query request logs

Code
flowguard:logs:read

The token can discover available log fields and query logs. It cannot read or change rules and actions.

Build a rule editor

Code
flowguard:rules:write flowguard:actions:write flowguard:servers:read flowguard:ip_lists:read

The token can inspect rule capabilities, manage rules and actions, and read the servers and IP lists that rules can reference.

Read everything

Use the broad read scope for reporting, monitoring, or inventory across FlowGuard.

Code
flowguard:read