Skip to main content
Load Balancers

Create a load balancer

Creates a new load balancer with a domain, upstream servers, and settings for the authenticated team. The domain must be a naked hostname (no scheme, path, or port) and must not already be in use in Gatekeeper by another active LB/WAF. This operation is synchronous and returns the created resource.

POST
/loadbalancers
Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
cacheDynamicPagesboolean

Cache dynamic page responses when eligible.

cacheStaticFilesboolean

Cache static assets at the edge.

domainstringrequired

Naked domain name to attach (for example example.com). Do not include http(s), path, or port.

enableHttp3boolean

Enable HTTP/3 (QUIC) support on the edge.

namestringrequired

Human-readable load balancer name (max 255 chars).

upstreamsobject[]required

Backend upstream targets. Load balancers require at least two upstreams.

Minimum array length: 2
upstreamsUseHttpsboolean

Use HTTPS (443) to upstream servers when true; HTTP (80) when false.

Response

application/json

Load balancer created

domainstring

Canonical naked domain attached to this load balancer.

idstring

Load balancer device ID. Use this value for get/patch/delete operations.

namestring

Human-readable load balancer name.

settingsobject

Effective load balancer settings currently applied in Gatekeeper.

upstreamsobject[]

Backend upstream servers currently attached to this load balancer.