Chief Tools Logo
FlowGuard API v1

Action

id
​string · required

Formatted action ID.

Example: action_01j8q8zk2f4m6n7p9r1s3t5v7x
name
​string · required
result
​ActionResult · required

Action result applied to a matching request.

status_code
​integer | null · required

HTTP status returned by results that produce a response.

message
​string | null · required

Response message returned by results that produce a response.

window_seconds
​integer | null · required

Rate-limit window in seconds, or null for other results.

requests_per_window
​integer | null · required

Requests allowed per rate-limit window, or null for other results.

partition_by
​array | null · required

Rate-limit partition dimensions, an empty list for one rule-wide bucket, or null when unset (per client IP on current proxies, rule-derived on older proxies).

created_at
​string · required

ISO 8601 creation timestamp.

updated_at
​string · required

ISO 8601 last-update timestamp.

rules_count
​integer

Number of rules currently using this action.

ActionCreatedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

An action was added.

Enum values:
action.created
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

ActionDeletedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

An action was removed.

Enum values:
action.deleted
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

ActionResult

string

ActionUpdatedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

An action changed.

Enum values:
action.updated
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

BehaviorMetric

string

BlockIPRequest

ip
​string · required

The client IP address to block.

Example: 192.0.2.44
prefix_length
​integer | null

Block the network around the IP instead: 24 for IPv4, 56 or 64 for IPv6. Leave it out to block only the IP.

Example: 24
stream_id
​string | null · maxLength: 255

The stream ID of the request the IP was blocked from, kept in the entry's comment.

Example: 01JABCD2EFGH3JKLM4NPQR5STV

BlockedIP

ip
​string · required

The IP address that was looked up.

Example: 192.0.2.44
blocked
​boolean · required

Whether an entry of the Blocked IPs list covers the IP.

match_kind
​string | null · enum · required

exact when the entry is the IP itself, cidr when it is a network around it.

Enum values:
exact
cidr
​required
additional_match_count
​integer · required

How many other entries also cover the IP, which stay when this entry is removed.

source_stream_id
​string | null · required

The stream ID of the request the IP was blocked from, when it was blocked from one.

​object · required

Whether AbuseIPDB lists the IP, with what confidence, and its page about the IP.

CreateWebhookEndpointRequest

url
​string · uri · maxLength: 2048 · required

HTTPS URL that receives the events, it must resolve to a public address.

Example: https://example.com/webhooks/chief
events
​string[] · minItems: 1 · unique · required

Event types the endpoint receives, * for every event including types added later.

Enum values:
*
server.created
server.enrolled
server.updated
server.deleted
server.offline
server.online
server.upgrade_started
Example: ["server.offline","server.online"]
description
​string | null · maxLength: 255

What the endpoint is for, shown in the dashboard.

Example: Paging

IPList

id
​string · required

Formatted IP list ID accepted by IP-list rule conditions.

Example: iplist_01j8q8zk2f4m6n7p9r1s3t5v7x
name
​string · required
is_global
​boolean · required

Whether the list is managed globally instead of by the authenticated team.

supports_confidence
​boolean · required

Whether IP-list rule matches may specify a confidence threshold.

created_at
​string · required

ISO 8601 creation timestamp.

updated_at
​string · required

ISO 8601 last-update timestamp.

entries_count
​integer

Number of entries in the list when requested by the endpoint.

IPListEntry

id
​string · required

Formatted IP-list entry ID.

Example: iplist_entry_01j8q8zk2f4m6n7p9r1s3t5v7x
content
​string · required

Normalized IPv4, IPv6, or CIDR value.

type
​IPListEntryType · required

Entry address type.

comment
​string | null · required

Optional note associated with the entry.

confidence
​integer | null · required

Confidence assigned by a managed list, or null for custom lists.

created_at
​string · required

ISO 8601 creation timestamp.

updated_at
​string · required

ISO 8601 last-update timestamp.

IPListEntryType

integer

ImportIPListEntriesRequest

​object[] · minItems: 1 · maxItems: 1000 · required

Entries to normalize and add to the custom IP list.

IpListCreatedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

An IP list was added.

Enum values:
ip_list.created
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

IpListDeletedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

An IP list was removed.

Enum values:
ip_list.deleted
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

IpListEntryCreatedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

An entry was added to an IP list.

Enum values:
ip_list_entry.created
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

IpListEntryDeletedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

An entry was removed from an IP list.

Enum values:
ip_list_entry.deleted
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

IpListEntryUpdatedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

An IP list entry changed.

Enum values:
ip_list_entry.updated
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

IpListUpdatedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

An IP list was renamed.

Enum values:
ip_list.updated
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

LogWindowAnchorType

string

LogWindowRequest

​object · required

Anchor used to center the returned log window.

before
​integer · min: 0 · max: 200 · required

Number of matching events to retrieve before the anchor.

after
​integer · min: 0 · max: 200 · required

Number of matching events to retrieve after the anchor.

​object · required

ProxyRelease

version
​string · required
tag
​string · required
url
​string · required

Release notes on GitHub.

is_latest
​boolean · required

Whether this is the newest release, the one manual upgrades install.

published_at
​string · required

ISO 8601 timestamp of when the release was published.

rollout_starts_at
​string · required

ISO 8601 timestamp of when the automatic rollout starts upgrading to this release.

ProxyRolloutPausedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

An automatic proxy rollout paused after failed upgrades.

Enum values:
proxy_rollout.paused
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

ProxyUpgrade

id
​string · required

Formatted upgrade ID.

Example: upgrade_01j8q8zk2f4m6n7p9r1s3t5v7x
status
​ProxyUpgradeStatus · required

running until the server reports the target version, which makes it succeeded. It is failed when the server did not report it in time.

source
​ProxyUpgradeSource · required

Whether someone started the upgrade or the automatic rollout did.

manual
Started by someone, from the UI or the API.
automatic
Started by the automatic rollout.
from_version
​string | null · required

Proxy version when the upgrade started.

target_version
​string · required

Proxy version the upgrade installs.

​required
created_at
​string · required

ISO 8601 timestamp of when the upgrade started.

finished_at
​string | null · required

ISO 8601 timestamp of when the upgrade succeeded or failed.

ProxyUpgradeFailure

string
timeout
The server did not report the target version in time.
cancelled
The server was deleted while the upgrade was running.

ProxyUpgradeSource

string
manual
Started by someone, from the UI or the API.
automatic
Started by the automatic rollout.

ProxyUpgradeStatus

string

QueryLogsRequest

from
​string · date-time · required

Inclusive beginning of the query range. Defaults to 24 hours before to.

Example: 2026-09-02T12:00:00Z
to
​string · date-time · required

Exclusive end of the query range. Defaults to the current time.

Example: 2026-09-03T12:00:00Z
direction
​string · enum · required

Sort order for matching events.

Enum values:
asc
desc
Example: desc
Default: desc
limit
​integer · min: 1 · max: 200 · required

Maximum number of events to return.

Default: 100
​object · required
cursor
​string | null · maxLength: 2048

Opaque cursor returned as meta.next_cursor by the previous page. Keep the time range, filters, and direction unchanged when continuing a query.

Example: eyJ0aW1lc3RhbXAiOjE3NzczNzQwMDAwMDAsImlkIjoic3ludGhldGljLWV2ZW50In0=

RateLimitPartition

string

ResendWebhookEventRequest

endpoint
​string · required

ID of the endpoint to send the event to. It gets the event even when it did not receive it before, or does not subscribe to its type.

Example: webhook_01m6v2nkcfd8n7hg5r9t5k0ys6

RotateWebhookSecretRequest

replace_previous
​boolean

Rotate even though the secret from the last rotation still signs deliveries. That secret stops signing right away, receivers that only know it start rejecting deliveries.

Default: false

Rule

id
​string · required

Formatted rule ID.

Example: rule_01j8q8zk2f4m6n7p9r1s3t5v7x
name
​string · required
position
​integer · required

Zero-based evaluation position. Lower positions are evaluated first.

action_id
​string | null · required

Formatted action ID, or null when the rule has no action.

​object · required

Normalized recursive condition group evaluated by the rule.

​object · required

Server scope controlling which proxies evaluate the rule.

created_at
​string · required

ISO 8601 creation timestamp.

updated_at
​string · required

ISO 8601 last-update timestamp.

RuleCondition

string

RuleCreatedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

A rule was added.

Enum values:
rule.created
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

RuleDeletedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

A rule was removed.

Enum values:
rule.deleted
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

RuleMatch

string

RuleServerScopeMode

string

RuleType

string

RuleUpdatedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

A rule changed or was disabled.

Enum values:
rule.updated
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

SaveActionRequest

name
​string · maxLength: 255 · required

Human-readable action name.

Example: Block synthetic scanners
result
​string · enum · required

Result applied when a rule using this action matches. log and skip_log continue evaluation; skip_log leaves the request out of the logs unless another rule acts on it or the response status is 400 or higher.

Enum values:
allow
block
challenge
rate_limit
log
skip_log
status_code
​integer | null · min: 100 · max: 599

HTTP status returned by results that produce a response.

message
​string | null · maxLength: 255

Response message returned by results that produce a response.

window_seconds
​integer | null · min: 1 · max: 86400

Rate-limit window in seconds. Required when result is rate_limit.

requests_per_window
​integer | null · min: 1

Requests allowed during the rate-limit window. Required when result is rate_limit.

partition_by
​array | null · maxItems: 5 · unique

Dimensions that receive independent rate-limit buckets. An empty list creates one bucket per rule. Null leaves the scope to the proxy: per client IP on current proxies, a rule-derived bucket shared by all clients on older proxies.

Enum values:
client.ip
connection.id
request.fingerprint.ja4
request.url.domain
request.url.path

SaveIPListEntryRequest

content
​string · maxLength: 255 · required

IPv4, IPv6, or CIDR value.

Example: 198.51.100.24
comment
​string | null · maxLength: 255 · required

Optional note associated with the entry.

SaveIPListRequest

name
​string · maxLength: 255 · required

Human-readable IP-list name.

Example: Synthetic blocked networks

SaveRuleRequest

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

SaveServerRequest

name
​string · maxLength: 255 · required

Human-readable proxy name.

Example: Synthetic edge proxy
deployment
​string · enum

Whether the proxy runs on a single host or as a fleet of instances sharing one key. Can only be set when creating the server.

Enum values:
host
fleet
default_hostname
​string | null · maxLength: 255

Default TLS hostname, or null to reject connections without a matching certificate.

cert_path
​string | null · maxLength: 255

Absolute path containing combined certificate files.

acme_path
​string | null · maxLength: 255

Absolute path to a Traefik ACME file.

nginx_config_path
​string | null · maxLength: 255

Absolute path to an NGINX configuration file.

allow_unattended_upgrades
​boolean

Allow upgrades initiated by FlowGuard.

auto_upgrades
​boolean | null

Whether the automatic rollout upgrades this server, or null to follow the team's setting. Omit it to keep the current value.

​object

Protocol configuration applied by the proxy.

​object

FG-Stream and FG-IPCountry headers the proxy adds to requests sent to the backend.

fail2ban_enabled
​boolean

Enable the host-level Fail2Ban integration.

Server

id
​string · required

Formatted server ID accepted by rule server scopes.

Example: server_01j8q8zk2f4m6n7p9r1s3t5v7x
name
​string · required
deployment
​ServerDeployment · required

Whether the proxy runs on a single host or as a fleet of instances sharing one key.

live_instance_count
​integer · required

Number of proxy instances that reported in during the last 7 minutes.

version
​string | null · required

Currently reported FlowGuard proxy version.

heartbeat_status
​string | null · required

Health status calculated from the proxy's latest heartbeat.

config_up_to_date
​boolean · required

Whether the proxy has loaded the latest desired configuration.

default_hostname
​string | null · required

Default TLS hostname, or null when unmatched connections are rejected.

cert_path
​string | null · required

Absolute path containing combined certificate files.

acme_path
​string | null · required

Absolute path to a Traefik ACME file.

nginx_config_path
​string | null · required

Absolute path to an NGINX configuration file.

allow_unattended_upgrades
​boolean · required

Whether FlowGuard may initiate proxy upgrades.

​object · required

Proxy upgrades started from FlowGuard.

​object · required

HTTP protocols served by the proxy.

​object · required

FG-Stream and FG-IPCountry headers the proxy adds to requests sent to the backend.

fail2ban_enabled
​boolean · required

Whether the host-level Fail2Ban integration is enabled.

​object · required

Rule features supported by the installed proxy version.

created_at
​string · required

ISO 8601 creation timestamp.

updated_at
​string · required

ISO 8601 last-update timestamp.

ServerCreatedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

A server was added and waits for its proxy.

Enum values:
server.created
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

ServerDeletedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

A server was removed.

Enum values:
server.deleted
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

ServerDeployment

string

ServerEnrolledEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

A server's proxy reported in for the first time.

Enum values:
server.enrolled
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

ServerOfflineEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

A server's proxy stopped reporting in.

Enum values:
server.offline
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

ServerOnlineEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

An offline server's proxy reports in again.

Enum values:
server.online
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

ServerUpdatedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

A server's name or settings changed.

Enum values:
server.updated
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

ServerUpgradeFailedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

A proxy upgrade failed.

Enum values:
server.upgrade_failed
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

ServerUpgradeStartedEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

A proxy upgrade started.

Enum values:
server.upgrade_started
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

ServerUpgradeSucceededEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

A proxy upgrade succeeded.

Enum values:
server.upgrade_succeeded
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

SummarizeTrafficRequest

from
​string · date-time · required
to
​string · date-time · required
baselines
​TrafficBaseline[] · maxItems: 2 · unique · required
Enum values:
previous_period
previous_day
​object · required
​object · required

TrafficBaseline

string · enum
Enum values:
previous_period
previous_day

UpdateWebhookEndpointRequest

url
​string · uri · maxLength: 2048

HTTPS URL that receives the events, it must resolve to a public address.

Example: https://example.com/webhooks/chief
description
​string | null · maxLength: 255

What the endpoint is for, shown in the dashboard. Null removes it.

Example: Paging
events
​string[] · minItems: 1 · unique

Event types the endpoint receives, * for every event including types added later. Replaces the current list.

Enum values:
*
server.created
server.enrolled
server.updated
server.deleted
server.offline
server.online
server.upgrade_started
Example: ["*"]

WebhookAttemptError

string

Why an attempt failed without a usable response, an attempt with a non-2xx response has no error.

timeout
The endpoint did not answer within 15 seconds.
connection
The connection failed: DNS, refused, TLS.
blocked
The URL resolves to a private or reserved address.
redirect
The endpoint answered with a redirect, which is not followed.

WebhookDelivery

id
​string · required

Formatted delivery ID.

Example: delivery_01m6v3f5b0c8z6w4k2t9r7p5n3
endpoint_id
​string · required

ID of the endpoint it is sent to.

Example: webhook_01m6v2nkcfd8n7hg5r9t5k0ys6
event_id
​string · required

ID of the event it sends.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
event_type
​WebhookEventType · required

Type of the event it sends.

server.created
A server was added and waits for its proxy.
server.enrolled
A server's proxy reported in for the first time.
server.updated
A server's name or settings changed.
server.deleted
A server was removed.
server.offline
A server's proxy stopped reporting in.
server.online
An offline server's proxy reports in again.
server.upgrade_started
A proxy upgrade started.
server.upgrade_succeeded
A proxy upgrade succeeded.
server.upgrade_failed
A proxy upgrade failed.
proxy_rollout.paused
An automatic proxy rollout paused after failed upgrades.
rule.created
A rule was added.
rule.updated
A rule changed or was disabled.
rule.deleted
A rule was removed.
action.created
An action was added.
action.updated
An action changed.
action.deleted
An action was removed.
ip_list.created
An IP list was added.
ip_list.updated
An IP list was renamed.
ip_list.deleted
An IP list was removed.
ip_list_entry.created
An entry was added to an IP list.
ip_list_entry.updated
An IP list entry changed.
ip_list_entry.deleted
An entry was removed from an IP list.
webhook_endpoint.test
A test event sent from the dashboard.
status
​WebhookDeliveryStatus · required
pending
Waiting for its first attempt or for a retry.
succeeded
The endpoint answered with a 2xx status.
failed
Every attempt failed.
cancelled
The endpoint was disabled or deleted before it succeeded.
attempts
​integer · required

Attempts made so far, resends included.

next_attempt_at
​string | null · required

ISO 8601 time the next automatic attempt is due, null when none is scheduled.

last_attempted_at
​string | null · required

ISO 8601 time of the last attempt, null before the first.

last_response_status
​integer | null · required

HTTP status of the last response, null before the first attempt or when no response came.

created_at
​string · required

ISO 8601 creation timestamp.

Every attempt with its request and response, oldest first. Only returned for a single delivery.

WebhookDeliveryAttempt

number
​integer · required

Number of the attempt within its delivery, from 1.

manual
​boolean · required

Whether someone resent it, instead of an automatic attempt.

succeeded
​boolean · required

Whether the endpoint answered with a 2xx status in time.

attempted_at
​string · required

ISO 8601 time the request was sent.

duration_ms
​integer | null · required

How long the request took, null when it could not be sent.

​required
error_message
​string | null · required

What went wrong, for people.

​object · required
response
​object | null · required

The endpoint's response, null when none came.

WebhookDeliveryStatus

string
pending
Waiting for its first attempt or for a retry.
succeeded
The endpoint answered with a 2xx status.
failed
Every attempt failed.
cancelled
The endpoint was disabled or deleted before it succeeded.

WebhookEndpoint

id
​string · required

Formatted endpoint ID.

Example: webhook_01m6v2nkcfd8n7hg5r9t5k0ys6
url
​string · required

HTTPS URL that receives the events.

Example: https://example.com/webhooks/chief
description
​string | null · required

What the endpoint is for.

Example: Paging
​array · required

Event types the endpoint receives, * for every event including types added later.

Example: ["server.offline","server.online"]
status
​WebhookEndpointStatus · required

Whether deliveries are sent. A disabled endpoint receives nothing until it is enabled again.

enabled
Receives the events it subscribed to.
disabled
Receives nothing until someone enables it again, disabled_reason tells why.
​required
disabled_at
​string | null · required

ISO 8601 time the endpoint was disabled, null while it is enabled.

failing_since
​string | null · required

ISO 8601 time the endpoint started failing every delivery, null while deliveries succeed. It is disabled after five days.

secret
​string | null · required

Signing secret, only set in the response that creates the endpoint or rotates its secret, null otherwise. Store it with your other secrets.

Example: whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw
previous_secret_expires_at
​string | null · required

ISO 8601 time until which the secret from before the last rotation still signs deliveries next to the current one, null when only one secret signs.

created_at
​string · required

ISO 8601 creation timestamp.

updated_at
​string · required

ISO 8601 timestamp of the last change.

WebhookEndpointDisabledReason

string
manual
Someone disabled it.
failing
Every delivery failed for five days, so it was disabled automatically.

WebhookEndpointStatus

string
enabled
Receives the events it subscribed to.
disabled
Receives nothing until someone enables it again, disabled_reason tells why.

WebhookEndpointTestEvent

id
​string · required

Identifies the event, the same as the webhook-id header. It stays the same on retries and resends, use it to skip events you processed.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​string · enum · required

A test event sent from the dashboard.

Enum values:
webhook_endpoint.test
timestamp
​string · date-time · required

When the event happened, in UTC. It does not change on retries.

api_version
​string · required

The version of the payload format.

Example: v1
​object · required

WebhookEvent

id
​string · required

Formatted event ID, the same as id in the payload and the webhook-id header.

Example: event_01m6v3f5aydrktmzrbpz1pqh7e
type
​WebhookEventType · required

Event type.

server.created
A server was added and waits for its proxy.
server.enrolled
A server's proxy reported in for the first time.
server.updated
A server's name or settings changed.
server.deleted
A server was removed.
server.offline
A server's proxy stopped reporting in.
server.online
An offline server's proxy reports in again.
server.upgrade_started
A proxy upgrade started.
server.upgrade_succeeded
A proxy upgrade succeeded.
server.upgrade_failed
A proxy upgrade failed.
proxy_rollout.paused
An automatic proxy rollout paused after failed upgrades.
rule.created
A rule was added.
rule.updated
A rule changed or was disabled.
rule.deleted
A rule was removed.
action.created
An action was added.
action.updated
An action changed.
action.deleted
An action was removed.
ip_list.created
An IP list was added.
ip_list.updated
An IP list was renamed.
ip_list.deleted
An IP list was removed.
ip_list_entry.created
An entry was added to an IP list.
ip_list_entry.updated
An IP list entry changed.
ip_list_entry.deleted
An entry was removed from an IP list.
webhook_endpoint.test
A test event sent from the dashboard.
api_version
​string · required

Version of the payload format.

Example: v1
created_at
​string · required

ISO 8601 time the event happened.

​object · required

The body every delivery of the event sends, see the event's schema for its fields.

​WebhookDelivery[]

The event's deliveries, one per endpoint. Only returned for a single event.

WebhookEventType

string
server.created
A server was added and waits for its proxy.
server.enrolled
A server's proxy reported in for the first time.
server.updated
A server's name or settings changed.
server.deleted
A server was removed.
server.offline
A server's proxy stopped reporting in.
server.online
An offline server's proxy reports in again.
server.upgrade_started
A proxy upgrade started.
server.upgrade_succeeded
A proxy upgrade succeeded.
server.upgrade_failed
A proxy upgrade failed.
proxy_rollout.paused
An automatic proxy rollout paused after failed upgrades.
rule.created
A rule was added.
rule.updated
A rule changed or was disabled.
rule.deleted
A rule was removed.
action.created
An action was added.
action.updated
An action changed.
action.deleted
An action was removed.
ip_list.created
An IP list was added.
ip_list.updated
An IP list was renamed.
ip_list.deleted
An IP list was removed.
ip_list_entry.created
An entry was added to an IP list.
ip_list_entry.updated
An IP list entry changed.
ip_list_entry.deleted
An entry was removed from an IP list.
webhook_endpoint.test
A test event sent from the dashboard.

WebhookEventTypeDetails

type
​WebhookEventType · required

Event type, as type in the payload and in an endpoint's events.

server.created
A server was added and waits for its proxy.
server.enrolled
A server's proxy reported in for the first time.
server.updated
A server's name or settings changed.
server.deleted
A server was removed.
server.offline
A server's proxy stopped reporting in.
server.online
An offline server's proxy reports in again.
server.upgrade_started
A proxy upgrade started.
server.upgrade_succeeded
A proxy upgrade succeeded.
server.upgrade_failed
A proxy upgrade failed.
proxy_rollout.paused
An automatic proxy rollout paused after failed upgrades.
rule.created
A rule was added.
rule.updated
A rule changed or was disabled.
rule.deleted
A rule was removed.
action.created
An action was added.
action.updated
An action changed.
action.deleted
An action was removed.
ip_list.created
An IP list was added.
ip_list.updated
An IP list was renamed.
ip_list.deleted
An IP list was removed.
ip_list_entry.created
An entry was added to an IP list.
ip_list_entry.updated
An IP list entry changed.
ip_list_entry.deleted
An entry was removed from an IP list.
webhook_endpoint.test
A test event sent from the dashboard.
group
​string · required

Heading the event is listed under in the dashboard.

Example: Availability
description
​string · required

When the event is sent.

Example: A server stopped checking in.