Chief Tools Logo
FlowGuard API v1

Endpoints for discovering and managing FlowGuard request-matching rules.


Show rule capabilities

GET
https://flowguard.network/api/v1
/rules/capabilities
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Return the condition operators, match types, action results, server scope modes, and nesting limit supported by the current FlowGuard API. Use these capabilities to construct valid rule payloads.

Show rule capabilities › Responses

The rule language and action capabilities supported by the current API.

​object · required

List rules

GET
https://flowguard.network/api/v1
/rules
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

List the authenticated team's rules in evaluation order. A lower position is evaluated first. Results can be searched by name and are paginated.

List rules › query Parameters

query
​string | null · maxLength: 255

Search results by name.

per_page
​integer · min: 1 · max: 100

Number of results per page.

Default: 50
page
​integer · min: 1

Page number to return.

Default: 1

List rules › Responses

Array of Rule

​Rule[] · required

Create a rule

POST
https://flowguard.network/api/v1
/rules
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Create a rule for the authenticated team. The optional action must belong to the same team. A supplied zero-based position inserts the rule at that point and shifts later rules down; when omitted, the rule is appended.

Create a rule › Request Body

name
​string · maxLength: 255 · required

Human-readable rule name.

Example: Protect synthetic service
​object · required

Recursive condition group. Each group contains an AND or OR operator, a list of matches, and nested groups. Consult the rule capabilities endpoint for supported match types and operators.

Example: {"operator":"AND","matches":[{"type":"domain","match":"equals","value":"service.example.test"}],"groups":[]}
​object · required

Server scope controlling which proxies evaluate the rule.

action_id
​string | null

Formatted ID of an action owned by the authenticated team. Send null for a match-only rule.

position
​integer · min: 0

Zero-based evaluation position. Omit when creating to append the rule; omit when updating to retain its current position.

Example: 0

Create a rule › Responses

The rule was created.

​Rule · required

Show a rule

GET
https://flowguard.network/api/v1
/rules/{rule}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Show one rule belonging to the authenticated team, including its conditions, action, server scope, and evaluation position.

Show a rule › path Parameters

rule
​string · required

Show a rule › Responses

Rule

​Rule · required

Update a rule

PATCH
https://flowguard.network/api/v1
/rules/{rule}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Update a rule belonging to the authenticated team. Omitted top-level fields retain their current values. Set action_id to null to detach the action; changing position reorders the team's rules.

Update a rule › path Parameters

rule
​string · required

Update a rule › Request Body

name
​string · maxLength: 255 · required

Human-readable rule name.

Example: Protect synthetic service
​object · required

Recursive condition group. Each group contains an AND or OR operator, a list of matches, and nested groups. Consult the rule capabilities endpoint for supported match types and operators.

Example: {"operator":"AND","matches":[{"type":"domain","match":"equals","value":"service.example.test"}],"groups":[]}
​object · required

Server scope controlling which proxies evaluate the rule.

action_id
​string | null

Formatted ID of an action owned by the authenticated team. Send null for a match-only rule.

position
​integer · min: 0

Zero-based evaluation position. Omit when creating to append the rule; omit when updating to retain its current position.

Example: 0

Update a rule › Responses

Rule

​Rule · required

Delete a rule

DELETE
https://flowguard.network/api/v1
/rules/{rule}
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Delete a rule belonging to the authenticated team and close the gap in the remaining evaluation positions.

Delete a rule › path Parameters

rule
​string · required

Delete a rule › Responses

The rule was deleted.

string

Disable a rule

POST
https://flowguard.network/api/v1
/rules/{rule}/disable
OpenID Connect
or
Bearer (ctp_*)
or
Bearer (ctt_*)

Remove the action assigned to a rule belonging to the authenticated team. The rule and its conditions remain available for later use.

Disable a rule › path Parameters

rule
​string · required

Disable a rule › Responses

Rule

​Rule · required