Skip to main content
POST
Activate a gate

Authorizations

Authorization
string
header
required

Your secret server API key (bs_dev_… or bs_production_…) with Gates API access: the gates:write scope, granted in the Console under Settings → Developer Tools → API Keys. Without it every Gates API call answers gates_scope_required. The organization and environment always come from the key. Site keys are refused.

Body

application/json
key
string
required

The key of the gate to activate.

Pattern: ^[a-z0-9][a-z0-9_-]{0,63}$
Example:

"presale-nyc-1120"

Response

The gate, now active. NOTE: handler errors also arrive here (HTTP 200) as data.error — codes: invalid_key (401 — missing, malformed or inactive key), gates_scope_required (403 — the key lacks Gates API access), org_not_found (404), gate_not_found (404), org_not_verified / domain_not_verified / gate_limit_reached (403, Production only).

data
object
required