Idempotency.POST writes that create resources accept Idempotency-Key: <uuid> and replay
the same response if you retry within 24h.
Flags
GET/api/admin/gates
List feature gates
Returns a single page of gates ordered by updated_at desc, id desc. Use the cursor query parameter to paginate.
Use caseSnapshot every gate in the project — for example to render an admin overview or to drive a CI check that asserts no gate is left at 100% in staging.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
limit
query
number
Max results per page (default 50, max 500).
cursor
query
string
Opaque pagination cursor from a prior page's `next_cursor`.
Creates a new gate. Default enabled: true at the supplied rollout_pct (0 = fully dark).
Only name is required. Request fields use snake_case (owner_email); the GET response returns camelCase (ownerEmail, groupName).
Returns 409 if name already exists in the project (case-sensitive).
Use cases
Use case
Description
Example
Dark create + ramp later
{ "name": "checkout_v2" } at 0% rollout. Ramp via PATCH after deploy validation.
Targeted rollout
supply rules to gate the caller (e.g. only plan = pro users) plus a rollout_pct to bucket within that audience.
Gatekeeper stack
supply stack instead of rules/rollout_pct for internal ∪ beta ∪ public fall-through. Stack entries evaluated top-to-bottom; first match wins.
Dashboard metadata
populate title, description, folder, group, owner_email so the admin UI is self-documenting from day one.
—
Disabled on create
pre-provision with enabled: false for a future launch; flip on with POST /{id}/enable at go-live.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
namerequired
string
Stable gate key used by SDKs (`Shipeasy.checkGate(user, '<name>')`). Single segment or `folder.name`. Lowercase letters, digits, `_` or `-`; max 128 chars. Immutable after create — rename = delete + recreate.
type
"targeting" | "holdout"
Gate kind. `targeting` (default) is a normal flag with the full builder. `holdout` is a **restricted** flag — only a public rollout % and a whitelist are allowed; attribute rules and a gatekeeper stack are rejected. Used as an experiment's `holdout_gate`. default: "targeting"
enabled
boolean
Master switch. Defaults to `true`. Set `false` to create the gate disabled (evaluates to `false` regardless of rules/rollout); flip on via `POST /{id}/enable` or PATCH. default: true
rollout_pct
integer
Initial rollout in **basis points** (0–10000 = 0%–100%) — `100` here means **1%**, not 100%. Use `rollout_percent` (0–100) below if you'd rather think in percent. Use `0` to create the gate dark and ramp via PATCH after deploy validation. default: 0
rollout_percent
number
Initial rollout as a **percentage** (0–100, fractional ok). Friendlier alias for `rollout_pct`; converted internally to basis points (e.g. `100` here = 10000 bp = 100%). If both `rollout_pct` and `rollout_percent` are set, `rollout_percent` wins.
rules
array<{ attr: string; op: string; value: any }>
Targeting predicates. AND-combined. If non-empty, the gate returns `true` only for callers that satisfy every rule **and** fall under `rollout_pct`. default: []
salt
string
Hash salt for percentage bucketing. Auto-generated if omitted. Provide explicitly to keep a gate's buckets stable across delete/recreate. **Immutable after create** — there is no PATCH for `salt` because changing it would re-bucket every caller.
Optional gatekeeper stack. When provided, takes precedence over `rules` + `rollout_pct` at evaluation time. Omit (or pass `null`) for a flat gate.
title
string
Human-readable title shown in the dashboard. Free-form, no key format constraint.
description
string
Long-form description / runbook. Markdown is rendered in the dashboard.
folder
string | null
—
group
string
Group label for dashboard organisation (e.g. team or product area).
owner_email
string
Owner contact. Displayed verbatim; not used for auth.
Response · 201
Name
Type
Description
idrequired
string
Newly assigned gate id (`gat_…`).
namerequired
string
Stable gate key used by SDKs (`Shipeasy.checkGate(user, '<name>')`). Single segment or `folder.name`. Lowercase letters, digits, `_` or `-`; max 128 chars. Immutable after create — rename = delete + recreate.
{ "enabled": false }. Forces evaluation to false for every caller regardless of rules/rollout. Re-enable with POST /{id}/enable or { "enabled": true }.
Modify a rule's `in` set
send the full new rules array. To add 'GB' to ['US','CA']: { "rules": [{ "attr": "country", "op": "in", "value": ["US","CA","GB"] }] }. No per-rule patch endpoint.
send a non-null stack. To revert to flat eval, send { "stack": null }.
Update metadata
any subset of title, description, folder, group, owner_email.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque gate id (`gat_…`) or the gate's `name`.
Body
Name
Type
Description
type
"targeting" | "holdout"
Gate kind. Switching to `holdout` requires the gate carry only a public rollout % + whitelist (attribute rules / stack are rejected).
rollout_pct
integer
New rollout in **basis points** (0–10000 = 0%–100%) — `100` here means **1%**. Use `rollout_percent` (0–100) below for percent. Omit both to leave unchanged.
rollout_percent
number
New rollout as a **percentage** (0–100). Friendlier alias for `rollout_pct`; converted internally. Wins over `rollout_pct` if both are supplied. Omit both to leave unchanged.
rules
array<{ attr: string; op: string; value: any }>
Replaces the rule list wholesale. To add a value to an `in` rule, send the full new `rules` array with the augmented `value` (e.g. previous `['US','CA']` → `['US','CA','GB']`).
enabled
boolean
Master switch. `false` makes the gate evaluate to `false` for every caller regardless of `rollout_pct`, `rules`, or `stack` — use as kill switch.
Returns a single page of non-archived experiments ordered by updated_at desc, id desc. Use the cursor query parameter to paginate.
Use caseSnapshot every active experiment in the project — e.g. render an overview dashboard or drive a CI check that no experiment has been running past its min_runtime_days.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
limit
query
number
Max results per page (default 50, max 500).
cursor
query
string
Opaque pagination cursor from a prior page's `next_cursor`.
status
query
string
Filter by lifecycle status. Pass `archived` to return the archive tab; any other value (or omitting it) returns the non-archived experiments.
Creates a new experiment in draft status. name, universe, and groups are required; everything else has sensible defaults.
Returns 409 if name already exists, 422 if the named universe doesn't exist, 403 if a plan-gated option is set (sequential_testing, custom significance_threshold) on a plan that doesn't include it.
Use cases
Use case
Description
Example
Minimal 50/50
name + universe + two equal-weight groups.
Targeted rollout
supply targeting_gate to restrict the eligible audience and allocation_pct to enrol a slice of it.
Multivariant
three or more groups with weights summing to 10000.
Sequential testing
sequential_testing: true for Premium plans.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
namerequired
string
Stable experiment key. Single segment or `folder.name` (a-z, 0-9, `_`/`-`; max 128 chars). Used by SDKs as `Shipeasy.getExperiment(user, '<name>')`. Immutable after create.
description
string | null
Free-form description. Max 2000 chars, markdown rendered in the dashboard. default: null
hypothesis
string | null
Hypothesis statement shown in the editor. Display-only. default: null
tag
string | null
Short tag chip rendered next to the name. Display-only. default: null
owner_email
string | null
Owner email. Display-only. default: null
audience
string | null
Audience label shown in the editor. Display-only. default: null
bucket_by
string | null
— default: null
folder
string | null
—
universerequired
string
Name of an existing universe in the project. Returns `422` if the universe doesn't exist.
targeting_gate
string | null
Optional gate name (a `targeting`-type flag). Only callers that pass the gate are enrolled in the experiment. default: null
holdout_gate
string | null
Optional per-experiment holdout gate — the name of a `holdout`-type flag (public % + whitelist). A caller the flag passes is *held out* (never assigned, sees the universe defaults). Distinct from the universe-level holdout. default: null
allocation_pct
integer
Share of the (gated) audience allocated to the experiment, in basis points (0–10000 = 0%–100%). `0` = unallocated. Under pooled assignment this is the size of the universe-pool slice claimed. Use `allocation_percent` (0–100) below to think in percent. Immutable while the experiment is running. default: 0
allocation_percent
number
Allocation as a **percentage** (0–100, fractional ok). Friendlier alias for `allocation_pct`; converted to basis points server-side (e.g. `50` = 5000 bp). If both are set, `allocation_percent` wins.
reserved_headroom
integer
Basis points of this experiment's split kept empty (0–10000) so a new variant can be appended into it while running without reshuffling. Group weights must sum to `10000 − reserved_headroom`. Defaults to the universe's `recommended_headroom` when omitted.
salt
string
Hash salt for bucketing. Auto-generated if omitted. Immutable while running.
params
object
**Deprecated** — the universe now owns the config schema (`param_schema`). Retained for back-compat; new experiments should leave this empty and declare params on the universe. Map of param-name → scalar type. default: {}
Two or more variants. Weights must sum to `10000 − reserved_headroom`. Existing weights are immutable while running, but a new variant may be appended into the reserved tail.
significance_threshold
number
p-value cutoff used by the analysis pass. Defaults to `0.05`. Values other than 0.05 require Pro plan or higher. default: 0.05
min_runtime_days
integer
Minimum days the experiment must run before results are considered conclusive. default: 0
min_sample_size
integer
Minimum exposures per group before results are considered conclusive. default: 100
sequential_testing
boolean
Enable sequential testing (always-valid p-values). Requires Premium plan or higher. default: false
Single goal metric defined inline — either a DSL `query` or an `event` (+`aggregation`/`value`) the server compiles. Attaching one is required before the experiment can be started. The underlying event is auto-created if missing.
Up to 10 guardrail metrics defined inline. Each is upserted (event + metric) and attached with role=guardrail. default: []
Response · 201
Name
Type
Description
idrequired
string
Newly assigned experiment id.
namerequired
string
Stable experiment key. Single segment or `folder.name` (a-z, 0-9, `_`/`-`; max 128 chars). Used by SDKs as `Shipeasy.getExperiment(user, '<name>')`. Immutable after create.
Returns the full experiment row including groups, params, allocation, and lifecycle timestamps.
Use caseFetch one experiment to render the detail page or to inspect its current allocation and group weights.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque experiment id (`exp_…`) or the experiment's `name`.
Response · 200
Name
Type
Description
idrequired
string
Stable opaque experiment id (`exp_…`).
namerequired
string
Stable experiment key. Single segment or `folder.name` (a-z, 0-9, `_`/`-`; max 128 chars). Used by SDKs as `Shipeasy.getExperiment(user, '<name>')`. Immutable after create.
descriptionrequired
string | null
—
hypothesisrequired
string | null
—
tagrequired
string | null
—
ownerEmailrequired
string | null
—
audiencerequired
string | null
—
bucketByrequired
string | null
—
folderrequired
string | null
—
statusrequired
"draft" | "running" | "stopped" | "archived"
—
universerequired
string
Universe name this experiment draws from.
targetingGaterequired
string | null
—
holdoutGaterequired
string | null
Per-experiment holdout gate name (a `holdout`-type flag), or `null`.
allocationPctrequired
integer
Allocation in basis points (0–10000).
reservedHeadroomrequired
integer
Basis points of the split reserved for appended variants (group weights sum to 10000 − this).
hashVersionrequired
integer
Bucketing hash algorithm version for the experiment's pool slice (§B4). Defaults to 1.
poolOffsetBprequired
integer | null
Basis-point offset of the experiment's contiguous slice in the universe pool, or `null` before a slice is allocated.
poolSizeBprequired
integer | null
Basis-point width of the experiment's pool slice (equal to its allocation), or `null` before a slice is allocated.
ISO-8601 timestamp the experiment last transitioned to `running`, or `null`.
stoppedAtrequired
string | null
—
updatedAtrequired
string
—
versionrequired
integer | null
Save counter (number of published edits), or `null` on pre-versioning rows.
creatorEmail
string | null
Resolved creator email (`created_by` → users). Enriched field: present on list rows, omitted from the by-id detail.
updaterEmail
string | null
Resolved last-editor email (`updated_by` → users). Enriched field: present on list rows, omitted from the by-id detail.
verdict
"ship" | "hold" | "wait" | "invalid" | "draft"
Answer-first decision from the goal metric + guardrails + SRM vs. the significance threshold and min runtime: `ship`, `hold`, `wait`, `invalid`, `draft`. Enriched field: list rows only.
verdictTitle
string
Expanded verdict headline the results hero renders. Enriched field: list rows only.
verdictWhy
string
Verdict rationale the results hero renders. Enriched field: list rows only.
goalMetric
{ id: string; name: string } | null
The experiment's goal metric `{ id, name }`, or `null` when none is set. Enriched field: list rows only.
Partial update. allocation_pct, groups, salt, universe, params are immutable while running — returns 409 if you try. Stop the experiment first.
Editing groups while in draft is fine; weights must still sum to 10000.
Use cases
Use case
Description
Example
Update metadata
description, tag, targeting_gate editable any time.
Ramp before launch
set allocation_pct while still in draft.
Tighten significance
significance_threshold (Pro+).
Rewire groups
replace groups wholesale while in draft; immutable once running.
—
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque experiment id (`exp_…`) or the experiment's `name`.
Body
Name
Type
Description
name
string
Stable experiment key. Single segment or `folder.name` (a-z, 0-9, `_`/`-`; max 128 chars). Used by SDKs as `Shipeasy.getExperiment(user, '<name>')`. Immutable after create.
description
string | null
—
hypothesis
string | null
—
tag
string | null
—
owner_email
string | null
—
audience
string | null
—
bucket_by
string | null
—
folder
string | null
—
targeting_gate
string | null
—
holdout_gate
string | null
Per-experiment holdout gate — the name of a `holdout`-type flag, or `null` to clear. A caller the flag passes is held out.
allocation_pct
integer
Basis-points allocation (0–10000). Use `allocation_percent` (0–100) for percent. Immutable while the experiment is running.
reserved_headroom
integer
Basis points of the split kept empty for appended variants. Group weights must sum to `10000 − reserved_headroom`. May be shrunk (never grown into existing weights) while running when appending a variant.
allocation_percent
number
Allocation as a **percentage** (0–100). Friendlier alias for `allocation_pct`; converted to basis points server-side. Wins over `allocation_pct` if both are supplied. Immutable while running.
salt
string
Hash salt. Immutable while running.
universe
string
New universe name. Immutable while running. Returns `422` if the universe doesn't exist.
params
object
**Deprecated** — the universe owns the config schema (`param_schema`). Retained for back-compat. Map of param-name → scalar type.
Replacement groups. Weights must sum to `10000 − reserved_headroom`. Existing weights/values are immutable while running; a new variant may be appended into the reserved tail.
Replaces the guardrail set wholesale (event auto-upserted per entry).
Response · 200
Name
Type
Description
idrequired
string
Experiment id that was updated.
Example · 200
{
"id": "exp_01j7wb12c3d4e5f6g7h8j9k0l1"
}
DELETE/api/admin/experiments/{id}
Delete an experiment
Archives the experiment (soft-delete via status transition). Returns 409 if the experiment is still running — stop it first.
Use caseTear down an experiment after the analysis is signed off.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque experiment id (`exp_…`) or the experiment's `name`.
Response · 200
Name
Type
Description
okrequired
true
—
Example · 200
{
"ok": true
}
POST/api/admin/experiments/{id}/status
Transition experiment status
Drives the experiment lifecycle. Allowed transitions:
- draft → running — starts allocation. Bumps the startedAt timestamp.
- running → stopped — halts allocation. Existing exposures stay in the dataset.
- stopped → archived — soft-delete.
- draft → archived — discard an unstarted experiment.
- archived → draft — restore a soft-deleted experiment so it can be re-completed and started. Allowed only if it never started; one that already ran must be cloned instead.
Restarting an archived experiment directly is not allowed — restore it to draft first. Returns 409 on illegal transitions and 429 if the plan's experiments_running limit is exceeded on → running.
Use cases
Use case
Description
Example
Start
{ "status": "running" } after wiring up the SDK and verifying targeting on staging.
Stop
{ "status": "stopped" } once the experiment hits its min_runtime_days and conclusive results land.
Archive
{ "status": "archived" } to soft-delete after sign-off.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque experiment id (`exp_…`) or the experiment's `name`.
Body
Name
Type
Description
statusrequired
"draft" | "running" | "stopped" | "archived"
Target status. Allowed transitions: `draft → running`, `running → stopped`, `stopped → archived`, `draft → archived`, and `archived → draft` (restore — only if the experiment never started). Restarting an archived experiment directly is not allowed; restore it to draft first, then start.
Returns the latest analysis output for the experiment — one row per metric/group/day, including sample size, mean, % delta vs. control, p-value, and a sample-ratio mismatch flag.
Use caseRender the results table on the experiment detail page or drive an automated decision once a goal metric reaches significance.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque experiment id (`exp_…`) or the experiment's `name`.
Requeues the daily analysis pass for this experiment outside the normal cron cadence. Useful after attaching a new metric or correcting an event taxonomy. The job runs asynchronously.
Use caseForce-refresh results after wiring up a new metric without waiting for the next nightly cron tick.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque experiment id (`exp_…`) or the experiment's `name`.
Returns a single page of configs ordered by updated_at desc, id desc. Each row includes the latest published version per env and any active drafts.
Use caseSnapshot every config in the project — e.g. CI check that asserts no env is stuck on a stale default or that every config has a published value on prod.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
limit
query
number
Max results per page (default 50, max 500).
cursor
query
string
Opaque pagination cursor from a prior page's `next_cursor`.
Creates a new config with the given schema. The initial value (or an empty object) is published as version 1 on every env.
Returns 409 if name already exists in the project, 400 if value doesn't validate against schema.
Use cases
Use case
Description
Example
Minimal create
name + schema. Initial value defaults to {}.
Seeded create
supply a flat value to publish the same object on every env.
Per-env seed
supply a { env: value } map for different per-env starting values.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
namerequired
string
—
description
string
Optional free-form description shown in the dashboard. Max 512 chars.
folder
string | null
—
schemarequired
object
JSON Schema (draft 2020-12) describing the shape of the config value. Top-level `type` must be `'object'`; every published value is validated against this schema.
value
any
Initial config value. Either a single JSON object applied to every env, or a `{ env: value }` map seeding per-env values. Must match `schema`. Defaults to `{}` on every env when omitted.
Response · 201
Name
Type
Description
idrequired
string
Newly assigned config id.
namerequired
string
Stable config key in `folder.name` form (two lowercase segments separated by a dot, e.g. `pricing.tiers`). Used by SDKs as `Shipeasy.getConfig('<name>')`. Immutable after create.
Returns config metadata plus the latest published values per env and any active draft values. Use this to fetch the JSON the editor renders.
Use caseFetch one config's current published values and any in-flight drafts.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque config id (`cfg_…`) or the config's `name`.
Response · 200
Name
Type
Description
idrequired
string
Stable opaque config id (`cfg_…`).
namerequired
string
Stable config key in `folder.name` form (two lowercase segments separated by a dot, e.g. `pricing.tiers`). Used by SDKs as `Shipeasy.getConfig('<name>')`. Immutable after create.
descriptionrequired
string | null
—
schemarequired
object
JSON Schema (draft 2020-12) describing the shape of the config value. Top-level `type` must be `'object'`; every published value is validated against this schema.
updatedAtrequired
string
ISO-8601 timestamp of last mutation.
envsrequired
object
Per-env latest published version metadata.
draftsrequired
object
Per-env active drafts (if any).
values
object
Per-env latest published values (only returned by `GET /{id}`, not list).
draftValues
object
Per-env draft values (only returned by `GET /{id}`).
Partial update. When value is supplied it is republished on every env (new version per env). When schema is supplied it replaces the current schema; every existing value is re-validated.
For env-scoped edits, use the draft/publish flow (PUT /{id}/drafts then POST /{id}/publish) instead.
Use cases
Use case
Description
Example
Republish flat value
{ "value": {…} } sets the same value on every env.
Schema migration
{ "schema": {…} } replaces the schema; existing values are re-validated.
Env-scoped edits
use PUT /{id}/drafts + POST /{id}/publish instead of PATCH.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque config id (`cfg_…`) or the config's `name`.
Body
Name
Type
Description
schema
object
Replacement schema. When supplied, the new schema is validated against every published value before it lands.
value
any
Flat value applied to **every** env. Publishes a new version per env. To target one env, use `PUT /{id}/drafts` then `POST /{id}/publish`.
folder
string | null
—
Response · 200
Name
Type
Description
idrequired
string
Config id that was updated.
Example · 200
{
"id": "cfg_01j7wae5h6j7k8l9m0n1p2q3r4"
}
DELETE/api/admin/configs/{id}
Delete a dynamic config
Soft-deletes the config and rebuilds the project's flags KV blob.
Use caseTear down a config after its consumers have stopped reading it.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque config id (`cfg_…`) or the config's `name`.
Response · 200
Name
Type
Description
okrequired
true
—
Example · 200
{
"ok": true
}
PUT/api/admin/configs/{id}/drafts
Save a draft value
Stages a value for one env without publishing. The draft is validated against the config's current schema and stored alongside the baseVersion it was forked from.
Saving over an existing draft overwrites it. Use POST /{id}/publish to promote it to a new published version.
Use caseIterate on a config value on dev without affecting prod — preview in staging, then publish.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque config id (`cfg_…`) or the config's `name`.
Body
Name
Type
Description
envrequired
"dev" | "staging" | "prod"
—
valuerequired
any
Draft value to stage on `env`. Validated against the config's current schema.
Returns recent audit rows for one config (create, update, draft.save, publish, delete) ordered newest first. Use the limit query parameter to cap the result (1–100, default 20).
Use caseRender the activity panel in the config editor or drive a slack notification on publish events.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque config id (`cfg_…`) or the config's `name`.
Replaces a config's JSON Schema in place. Every existing published value is re-validated against the new schema before it lands; the update fails if any value no longer validates.
Use caseEvolve a config's shape (add/remove a field) without republishing values.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque config id (`cfg_…`) or the config's `name`.
Body
Name
Type
Description
schemarequired
object
Replacement JSON Schema (draft 2020-12). Validated against every published value before it lands.
Response · 200
Name
Type
Description
idrequired
string
Config id whose schema was updated.
Example · 200
{
"id": "cfg_01j7wae5h6j7k8l9m0n1p2q3r4"
}
Killswitch
GET/api/admin/killswitches
List killswitches
Returns a single page of killswitches ordered by updated_at desc, id desc. Each row includes the latest published value/switches/version per env.
Use caseSnapshot every killswitch in the project — e.g. to render an incident-response runbook listing every kill and its current trip state.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
limit
query
number
Max results per page (default 50, max 500).
cursor
query
string
Opaque pagination cursor from a prior page's `next_cursor`.
{
"data": [
{
"id": "ksw_01j7w9d8h2k4m6n8p0q2r4s6t8",
"name": "payments.checkout",
"description": "Master kill for the checkout flow. Trip to fall back to the legacy provider.",
"updatedAt": "2026-05-09T18:22:11.000Z",
"envs": {
"dev": {
"value": false,
"version": 3,
"publishedAt": "2026-05-09T18:22:11.000Z"
},
"stage": {
"value": false,
"version": 3,
"publishedAt": "2026-05-09T18:22:11.000Z"
},
"prod": {
"value": false,
"switches": {
"eu_region": true
},
"version": 5,
"publishedAt": "2026-05-09T18:22:11.000Z"
}
}
}
],
"next_cursor": null
}
POST/api/admin/killswitches
Create a killswitch
Creates a new killswitch with value (default false) applied to every env at version 1.
Returns 409 if name already exists in the project.
Use cases
Use case
Description
Example
Untripped create
{ "name": "payments.checkout" }. Provision the kill ahead of an incident.
Pre-tripped
{ "value": true } to ship the killswitch already engaged.
With switches
seed switches to carve out per-region/per-tenant kills from day one.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
namerequired
string
—
description
string
Optional free-form description shown in the dashboard. Max 512 chars.
folder
string | null
—
value
boolean
Default value applied to every env at creation. Defaults to `false`. Use `true` to ship the killswitch pre-tripped.
switches
object
Initial per-switch overrides applied to every env. Empty/omitted leaves the killswitch with only the flat `value`.
Response · 201
Name
Type
Description
idrequired
string
Newly assigned killswitch id.
namerequired
string
Stable config key in `folder.name` form (two lowercase segments separated by a dot, e.g. `pricing.tiers`). Used by SDKs as `Shipeasy.getConfig('<name>')`. Immutable after create.
Returns the killswitch metadata plus the latest published value/switches/version per env.
Use caseFetch the current state of one killswitch — e.g. to verify a trip propagated before declaring an incident mitigated.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque killswitch id (`ksw_…`) or the killswitch's `name`.
Response · 200
Name
Type
Description
idrequired
string
Stable opaque killswitch id.
namerequired
string
Stable config key in `folder.name` form (two lowercase segments separated by a dot, e.g. `pricing.tiers`). Used by SDKs as `Shipeasy.getConfig('<name>')`. Immutable after create.
descriptionrequired
string | null
Free-form description or `null`.
updatedAtrequired
string
ISO-8601 timestamp of last mutation.
envsrequired
object
Per-env latest value, switches, version, and publish timestamp.
Example · 200
{
"id": "ksw_01j7w9d8h2k4m6n8p0q2r4s6t8",
"name": "payments.checkout",
"description": "Master kill for the checkout flow. Trip to fall back to the legacy provider.",
"updatedAt": "2026-05-09T18:22:11.000Z",
"envs": {
"dev": {
"value": false,
"version": 3,
"publishedAt": "2026-05-09T18:22:11.000Z"
},
"stage": {
"value": false,
"version": 3,
"publishedAt": "2026-05-09T18:22:11.000Z"
},
"prod": {
"value": false,
"switches": {
"eu_region": true
},
"version": 5,
"publishedAt": "2026-05-09T18:22:11.000Z"
}
}
}
PATCH/api/admin/killswitches/{id}
Update a killswitch
Partial update applied to every env. Setting value/switches publishes a new version per env. Description-only patches don't bump versions.
To change a single switch on a single env, use PUT /{id}/switch instead.
Use cases
Use case
Description
Example
Trip everywhere
{ "value": true }. Kills the feature across dev/stage/prod in one call.
Untrip everywhere
{ "value": false }.
Replace switches
send the full new map; per-key edits use PUT /{id}/switch.
Update description
metadata-only patches don't bump versions.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque killswitch id (`ksw_…`) or the killswitch's `name`.
Body
Name
Type
Description
description
string | null
New description, or `null` to clear it. Max 512 chars.
folder
string | null
—
value
boolean
Flat value applied to every env. Publishes a new version per env when set. Omit to leave values unchanged.
switches
object
Replace the switches map wholesale on every env. To edit a single entry on a single env use `PUT /{id}/switch` instead.
Response · 200
Name
Type
Description
idrequired
string
Killswitch id that was updated.
Example · 200
{
"id": "ksw_01j7w9d8h2k4m6n8p0q2r4s6t8"
}
DELETE/api/admin/killswitches/{id}
Delete a killswitch
Soft-deletes the killswitch and rebuilds the project's flags KV blob so SDKs stop seeing it.
Use caseTear down a killswitch after the feature it protected has been removed.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque killswitch id (`ksw_…`) or the killswitch's `name`.
Response · 200
Name
Type
Description
okrequired
true
—
Example · 200
{
"ok": true
}
PUT/api/admin/killswitches/{id}/switch
Set one switch entry
Sets or updates a single switchKey on a single env. Publishes one new version on that env only — other envs untouched.
Use this for surgical per-env, per-key flips during incident response (e.g. trip eu_region on prod without touching the flat value or other envs).
Creates a new universe. Only name is required — unit_type defaults to user_id and holdout_range defaults to null (no holdout).
Returns 409 if name already exists in the project. Returns 403 if you supply holdout_range on a plan below Pro.
Use cases
Use case
Description
Example
Default universe
{ "name": "primary_users" }. Per-user randomisation, no holdout.
—
Reserved holdout
supply holdout_range to carve out a measurement slice excluded from all experiments.
Account-level
unit_type: 'account_id' so multi-seat accounts see one consistent variant.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
namerequired
string
Stable universe key. Single segment or `folder.name`. Lowercase letters, digits, `_` or `-`; max 128 chars. Immutable after create.
folder
string | null
—
description
string | null
Human-readable blurb shown in the universe picker/hovercard. default: null
unit_type
string
Unit of randomisation. Typically `user_id`. Use `account_id` to keep whole accounts in the same group across an experiment. default: "user_id"
holdout_range
array<integer> | null
Inclusive `[lo, hi]` bucket range (0–9999) reserved as the **holdout** — callers hashed into this slice are excluded from every experiment in the universe. `null` disables the holdout. Pro plan or higher required. default: null
recommended_headroom
integer
Basis points of reserved headroom seeded into each new experiment created in this universe (0 = none). Lets variants be appended into a running experiment without reshuffling. default: 0
The universe-owned config schema — an ordered `{ name, type, default }[]`. Experiments may only override values per variant, never add fields. `null` starts an empty schema. default: null
Response · 201
Name
Type
Description
idrequired
string
Newly assigned universe id.
namerequired
string
Stable universe key. Single segment or `folder.name`. Lowercase letters, digits, `_` or `-`; max 128 chars. Immutable after create.
Partial update. Only holdout_range is mutable — name and unit_type are immutable after create.
Pass "holdout_range": null to remove an existing holdout.
Use cases
Use case
Description
Example
Adjust holdout
change the reserved measurement slice without recreating experiments.
Remove holdout
{ "holdout_range": null }.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque universe id (`uni_…`) or the universe's `name`.
Body
Name
Type
Description
folder
string | null
—
description
string | null
Human-readable blurb shown in the universe picker/hovercard.
holdout_range
array<integer> | null
Inclusive `[lo, hi]` bucket range (0–9999) reserved as the **holdout** — callers hashed into this slice are excluded from every experiment in the universe. `null` disables the holdout. Pro plan or higher required.
recommended_headroom
integer
Basis points of reserved headroom seeded into new experiments in this universe.
Replace the universe config schema. Additive changes + default edits are always allowed; removing a param a running experiment overrides is rejected (deprecate-only).
Response · 200
Name
Type
Description
idrequired
string
Universe id that was updated.
Example · 200
{
"id": "uni_01j7w8a1b2c3d4e5f6g7h8i9j0"
}
DELETE/api/admin/universes/{id}
Delete a universe
Soft-deletes the universe. Returns 409 if any non-archived experiment still references it — archive those experiments first.
Use caseTear down a universe after every experiment that used it has been archived.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque universe id (`uni_…`) or the universe's `name`.
Response · 200
Name
Type
Description
okrequired
true
—
Example · 200
{
"ok": true
}
Templates
GET/api/admin/gates/templates
List gate templates
Returns the merged targeting-rule template catalog — read-only built-ins first (the @team/@owner audience aliases, country, email-domain, region presets, …), then this project's customer templates. Each item carries a rules: [{ attr, op, value }] definition; the alias templates carry a symbol value (email in ["@team"]) that the SDK expands to the resolved email list at rebuild.
Turn "launch X in country Y" into a gated flag: list templates (optionally with q), take the matching template's rules, substitute the concrete value(s), and pass them as the rules arg of release_flags_create.
The catalog is small and bounded, so the full merged set is returned in one page — this endpoint is not paginated (next_cursor is always null; there are no limit/cursor params).
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
query
query
string
Deprecated alias for `q`, kept working for one release. Prefer `q`.
{
"data": [
{
"id": "country",
"name": "Country is",
"description": "Target by ISO country code (resolve from GeoIP at the SDK edge before evaluating).",
"category": "condition",
"auto": true,
"builtin": true,
"iconKey": "globe",
"rules": [
{
"attr": "country",
"op": "in",
"value": [
"DE",
"FR",
"IT"
]
}
],
"createdAt": null,
"updatedAt": null
}
],
"next_cursor": null
}
POST/api/admin/gates/templates
Create a gate template
Creates a per-project (customer) targeting-rule template. Built-ins are read-only and cannot be created here. Returns 409 if a template with this name already exists in the project.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
namerequired
string
Human label. Unique per project.
description
string
One-liner shown in pickers and matched by the list `query` filter. default: ""
category
"condition" | "rollout"
— default: "condition"
icon_key
string
Display-only icon hint.
auto
boolean
Mark the attribute as request-derived (resolved at the SDK edge). default: false
Soft-deletes (archives) a customer template. Returns 409 if id names a read-only built-in template.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Customer template id (`gtpl_…`) or its `name`.
Response · 200
Name
Type
Description
okrequired
true
—
Example · 200
{
"ok": true
}
Attributes
GET/api/admin/attributes
List targeting attributes
Returns every auto-inferred targeting attribute in the project — the name and (when known) the value type — for building gate/experiment targeting rules.
Use caseDiscover which user-context keys are available before authoring a targeting rule, instead of guessing attribute names.
Creates an event-backed metric. Pass the query as the DSL string (query) or
the typed IR (query_ir) — exactly one. event_name must equal the event the
query references.
Returns 409 if a metric with the same name already exists, and 422 if the
query is invalid or references an unregistered event / label.
Use cases
Use case
Description
Example
Track an event
count_users(<event>) for unique-user counts.
—
Sum a value
sum(<event>, <label>) for revenue / quantity metrics.
Experiment success metric
create the metric, then attach its id to an experiment.
Update a metric's definition — folder, source event, query (query DSL or typed query_ir), winsorisation, minimum detectable effect, or direction. name is immutable. Provide at most one of query / query_ir.
Use caseRefine a metric's query or guardrail direction without recreating it.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque metric id (`met_…`) or the metric's `name`.
Response · 200
Name
Type
Description
idrequired
string
Stable opaque metric id.
namerequired
string
Metric key.
folderrequired
string | null
Folder grouping the metric, or `null`.
eventNamerequired
string
Source event name (camelCase in response).
queryrequired
string | null
Rendered DSL text form of the query, or `null` if it could not be rendered.
Soft-deletes (archives) the metric. Returns 409 if it is attached to a running experiment — stop those experiments first.
Use caseRetire a metric once no running experiment depends on it (the user-facing verb is archive).
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque metric id (`met_…`) or the metric's `name`.
Response · 200
Name
Type
Description
okrequired
true
—
Example · 200
{
"ok": true
}
Events
GET/api/admin/events
List events
Returns every catalogued event in the project, including pending auto-discovered names. Each row carries its own pending flag, so the unapproved queue can be filtered client-side.
Use caseSnapshot the event catalog — for example to review the pending auto-discovery queue before approving names, or to confirm which events your metrics can reference.
Registers a new event name and (optionally) its typed properties. Only name is required.
If the name matches an existing pending (auto-discovered) row, this approves that row instead of returning a conflict. Otherwise an already-registered name returns 409.
Use cases
Use case
Description
Example
Register a known event
{ "name": "checkout_completed" } so metrics can reference it.
—
Declare typed properties
supply properties to document the event's payload shape.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
namerequired
string
Event name. Starts with a letter, digit, or `_`; letters, digits, `_`, `-`, `.`; max 128 chars. Immutable after create — this is the handle metric queries reference.
Replaces the full property set (no merge). Omit to leave properties unchanged.
Response · 200
Name
Type
Description
idrequired
string
Event id that was updated.
Example · 200
{
"id": "evt_01j7w8a1b2c3d4e5f6g7h8i9j0"
}
Ops
GET/api/admin/ops
List the operational queue
Returns the unified ops queue (bugs, feature requests, errors, alerts) in work order — highest priority first, oldest first within a priority — so consumers work it top-down. Filter by type and/or status, and cap with limit. Human-gated holding states (items awaiting human sign-off in the dashboard) are never returned by all/default status.
Use casePull the open queue to triage — e.g. every bug still open — before working items down one by one.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
type
query
string
Filter by item type (`bug`/`feature_request`/`error`/`alert`), or `all`.
status
query
string
Filter by lifecycle status, or `all`. The human-gated holding states (`pending_approval`, `triage`) are excluded from `all`/default and returned only when requested as the exact status.
Files one queue item — a bug report or a feature request — and fires the project's connectors (GitHub issue / Slack). type selects which; only the two user-fileable types are accepted (error/alert tickets are auto-filed by the platform). Returns the new id and per-project number.
Queue item type. `bug` and `feature_request` are user-fileable; `error`, `alert`, and `measure_plan` tickets are auto-filed by the platform (a tracked production error, a metric-threshold alert, and an assistant-proposed measurement plan respectively).
Triage priority, or `null` if not yet set (all types).
source
"team" | "system"
How the item was filed: `team` (a human admin/teammate — bug/feature) or `system` (auto-filed — error/alert/measure_plan).
sourceRef
string | null
Stable key of the originating record for auto-filed tickets (error fingerprint, `<alert source>:<dedupeKey>`, or measurement-plan ref); `null` for human-filed bugs/features.
reporterEmail
string | null
Reporter email (bug/feature), or `null`.
stepsToReproduce
string
Reproduction steps — populated for `bug`, empty string otherwise.
actualResult
string
What actually happened — `bug` only, empty string otherwise.
expectedResult
string
What was expected — `bug` only, empty string otherwise.
description
string
Feature description — populated for `feature_request`, empty string otherwise.
useCase
string
Feature use case — `feature_request` only, empty string otherwise.
Type-specific capture context. For `bug`/`feature_request` it carries `browser` (the auto-collected page URL / user-agent / viewport). For auto-filed tickets it carries the hydrated `error`, `alert`, or `measurePlan` block. `null` only for legacy rows with nothing captured.
Files attached to the report — screenshots, recordings, logs. Populated for `bug`/`feature_request`; always an empty array for auto-filed `error`/`alert`/`measure_plan` tickets. Fetch each via its `fetchUrl` with the same admin/ops key (the download route is ops-key allow-listed).
Per-connector linkage recorded for this item, keyed by connector provider. Populated as connectors act on the item (e.g. GitHub opens an issue, Slack posts a message); more than one provider can be present at once. `null` if no connector has touched the item.
Update a queue item. The body is validated against the item's stored type: a bug accepts its content fields (title, steps-to-reproduce, actual/expected result) plus status/priority/notify and a GitHub PR link; a feature_request its content (title, description, use-case) plus the same triage fields; error/alert/measure_plan accept status/priority/notify only (their content is platform-owned). Pass at least one field.
Completing an error ticket (status resolved or ready_for_qa) also resolves the tracked error it links to; the error reopens automatically if it recurs — so completing is safe pre-deploy.
Use cases
Use case
Description
Example
Start working an item
{ "status": "in_progress" }.
Hand off for review
{ "status": "ready_for_qa" } once the fix landed (the mode PR-based loops use).
Triage
{ "priority": "high" }, content edits on bug/feature items.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
handlerequired
path
string
Per-project item number (e.g. `7`) or the full ops item id.
Response · 200
Name
Type
Description
idrequired
string
Item id that was updated.
Example · 200
{
"id": "fb_01j7w8a1b2c3d4e5f6g7h8i9j0"
}
POST/api/admin/ops/{handle}/link-pr
Link a fixing PR
Record the pull request that fixes a queue item (and clears the link with prNumber: null).
Use caseTie the fixing PR to the item so closing the PR can flip it to ready_for_qa.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
handlerequired
path
string
Per-project item number (e.g. `7`) or the full ops item id.
Body
Name
Type
Description
prNumberrequired
integer | null
PR number to record on the item. `null` unlinks the PR.
prUrl
string
Explicit PR URL. Required for error/alert tickets (no GitHub issue to derive the URL from).
Response · 200
Name
Type
Description
idrequired
string
Item id that was updated.
Example · 200
{
"id": "fb_01j7w8a1b2c3d4e5f6g7h8i9j0"
}
POST/api/admin/notifications
Raise an attention notification
Raise a 'needs your attention' bell notification. Create-only and idempotent on dedupeKey — re-raising with the same key updates the one card instead of stacking duplicates. It never reads, marks read, or deletes the feed, so it is safe for restricted ops keys.
Use caseEscalate work that can't land in code (a product decision, a credential only a human has, a resource only a human may edit), deduped so repeats don't spam the bell.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
titlerequired
string
One-line headline of what's blocked.
summaryrequired
string
One sentence: why it can't be fixed in code. Renders markdown.
steps
array<string>
Ordered steps the human should take to unblock — self-contained (the human reads only this card, not the agent's transcript), 3–6 steps, each naming the exact file, command, env var, or dashboard page. Renders markdown.
href
string | null
Dashboard-relative deep link to the related item. `null` is accepted and treated as "no link".
dedupeKey
string
Stable per-escalation key (e.g. `feedback:7`) so re-runs dedupe to one row.
Response · 201
Name
Type
Description
dedupeKeyrequired
string
The dedupe key the escalation was recorded under.
dispatchedrequired
boolean
`true` if a new escalation was dispatched; `false` on an idempotent repeat.
List the comment thread on a queue item, oldest first. Each comment
carries its author (a teammate email, or system for a comment authored by
Jarvis — the AI agent), its markdown body, and parentId for the single
level of threaded replies. Removed comments are omitted.
Use caseRead the discussion on an item before replying or acting on it.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
handlerequired
path
string
Per-project item number (e.g. `7`) or the full ops item id.
Append a comment to a queue item's thread. The body is markdown (mentions
like @teammate notify that person; @shipeasy asks Jarvis, the AI agent,
to reply). Pass parentId to reply under an existing top-level comment
(one level of threading — a reply to a reply attaches to the same parent).
Create-only and append-only, so it is safe for restricted ops keys — the
same channel the ops loop and Jarvis use to leave a note on an item.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
handlerequired
path
string
Per-project item number (e.g. `7`) or the full ops item id.
Body
Name
Type
Description
bodyrequired
string
The comment body as markdown. Mentions (`@teammate`, `@shipeasy`) are parsed from it.
parentId
string | null
Reply under this top-level comment. Omit / `null` for a top-level comment. Replying to a reply attaches to the same top-level parent (threading is one level deep).
Response · 201
Name
Type
Description
idrequired
string
Newly created comment id.
Example · 201
{
"id": "cm_01j7w8a1b2c3d4e5f6g7h8i9j0"
}
Alerts
GET/api/admin/slack/channels
List Slack channels
List the project's connected Slack channels — used to resolve an alert rule's notification target.
Use casePopulate a channel picker, or validate an alert rule's --slack-channel before saving.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Response · 200
Name
Type
Description
connectedrequired
boolean
Whether a Slack connector is connected and authenticated.
Returns every alert rule in the project (not paginated). Each rule carries its bound metricId, the denormalised metricName (or null if the metric was removed), the comparator/threshold/window, severity, enabled flag, and delivery target.
Use caseAudit which metrics have alerting configured — for example to confirm an on-call threshold is set before a launch.
Creates a metric-threshold alert rule. name, metricId, comparator, and threshold are required; windowHours defaults to 24, severity to warn, and enabled to true.
Returns 404 if metricId does not resolve, and 400 for a metric with no scalar form over a window (e.g. retention metrics) — the cron can't evaluate those.
Use cases
Use case
Description
Example
Threshold alert
warn when an error/latency metric crosses a value over a rolling window.
Routed alert
set notify to page a specific Slack channel or on-call email instead of the project default.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
namerequired
string
Human label for the rule, shown on the alert and the rules list.
metricIdrequired
string
Id of the metric to evaluate.
comparatorrequired
"gt" | "gte" | "lt" | "lte"
How the metric value is compared to the threshold (gt/gte/lt/lte).
thresholdrequired
number
Threshold the metric value is compared against.
windowHours
integer
Lookback window (hours) the metric is aggregated over. 1–720. default: 24
severity
"danger" | "warn" | "info"
Severity of the raised alert. default: "warn"
enabled
boolean
Whether the rule is evaluated by the cron. default: true
Partial update of a rule's tunable knobs. metricId is immutable — the metric also pins the aggregation, so a body carrying metricId is rejected with 409 IMMUTABLE_FIELD; create a new rule bound to the other metric instead (rule deletion is dashboard-only).
Pass "notify": null to revert the rule's delivery target back to the project default.
Use cases
Use case
Description
Example
Tune sensitivity
change threshold/comparator/windowHours as the metric's baseline shifts.
—
Pause without losing config
{ "enabled": false } instead of deleting the rule.
—
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque alert-rule id (`ar_…`) or the rule's `name`.
Deletes the alert rule. The cron stops evaluating it immediately. Use this (then create a new rule) to repoint alerting at a different metric, since metricId is immutable.
Use caseRemove an alert rule that is no longer needed, or as the first half of repointing a rule at a different metric.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque alert-rule id (`ar_…`) or the rule's `name`.
Response · 200
Name
Type
Description
okrequired
true
—
Example · 200
{
"ok": true
}
Projects
GET/api/admin/projects/current
Show the current project
Returns the project the caller's auth header resolves to — plan, status, billing, and which modules are enabled. The server reads the project from the credential, so there is no id parameter. Powers whoami.
Use caseResolve who you are — the project, plan, and enabled modules tied to the current credential — without passing an id. Backs a registry-driven whoami.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Response · 200
Name
Type
Description
idrequired
string
Stable opaque project id.
namerequired
string
Project name.
domainrequired
string | null
Project domain, or `null` if unset.
ownerEmailrequired
string
Email of the account that owns the project.
planrequired
"free" | "pro" | "business" | "enterprise"
Billing plan tier.
statusrequired
"active" | "inactive"
Project lifecycle status.
subscriptionStatusrequired
string
Stripe subscription status (`none`, `active`, `trialing`, `past_due`, …).
billingIntervalrequired
"monthly" | "annual"
Billing cadence.
currentPeriodEndrequired
string | null
ISO-8601 end of the current billing period, or `null`.
trialEndsAtrequired
string | null
ISO-8601 trial end, or `null` if not trialing.
cancelAtPeriodEndrequired
number
`1` if the subscription is set to cancel at period end, else `0`.
moduleTranslationsrequired
boolean | number
Whether the i18n/translations module is enabled.
moduleConfigsrequired
boolean | number
Whether the dynamic-configs module is enabled.
moduleGatesrequired
boolean | number
Whether the feature-gates module is enabled.
moduleExperimentsrequired
boolean | number
Whether the experiments module is enabled.
moduleFeedbackrequired
boolean | number
Whether the feedback/ops module is enabled.
minSampleSize
integer
Verdict power guard — minimum users per arm before a ship/hold verdict.
minRuntimeDays
integer
Minimum days an experiment must run before a verdict (peeking guard).
defaultPower
number
Target statistical power (1−β) feeding the realized-MDE calculation.
ciConfidence
number
Confidence level for the interval surfaced on results.
defaultAllocationPct
integer
Default traffic allocation (basis points) new experiments start with.
defaultHoldout
integer
Default holdout carve-out (basis points) that seeds each new universe's holdout.
defaultWinsorizePct
integer
Default winsorization percentile new metrics start with.
defaultMei
number | null
Default minimum effect of interest (relative, 0–1) new metrics start with, or null.
cupedBaselineDays
integer
CUPED baseline window — days of pre-experiment history, frozen at start.
cupedMinOverlap
number
CUPED selection-bias guard — min share of users with a baseline, else skip.
cupedMinBaselineUsers
integer
CUPED — minimum users with a baseline before it runs at all.
msprtTauMeiFactor
number
mSPRT prior width — τ = minimum effect of interest × this factor.
msprtTauSdFactor
number
mSPRT fallback prior width — τ = this × control SD when no MEI is set.
srmThreshold
number
SRM chi-square p-value below which the run is called invalid.
Find-or-creates a project keyed by (owner_email, domain) under the session's owner, and returns it. Idempotent: a second call with the same domain returns the existing project with created: false.
Only domain is required — name defaults to the domain on first create. Recording the result in a local .shipeasy binding is a consumer side-effect; this endpoint never performs it.
Use cases
Use case
Description
Example
Install flow
provision a per-app project without a trip to the dashboard. Run it on every install; the idempotent key means a re-run returns the existing project rather than duplicating it.
—
Name explicitly
pass name to label the project distinctly from its domain.
—
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
domainrequired
string
Lowercase bare hostname (e.g. `acme.com`, `app.acme.com`, `*.acme.com`), or `*` to allow any origin. Full URLs with `https://` are not accepted. The project is keyed by `(owner_email, domain)`, so a second call with the same domain returns the existing project.
name
string
Human-readable project name. Defaults to the domain on first create.
Response · 200
Name
Type
Description
idrequired
string
Stable opaque project id.
namerequired
string
Project name (the supplied `name`, or the domain on first create).
domainrequired
string | null
Project domain, or `null` if unset.
owner_emailrequired
string
Email of the account that owns the project.
createdrequired
boolean
`true` if this call created the project, `false` if it returned an existing one.
Update the current project's settings — name, domain, slug, default environment, timezone, experiment-analysis knobs (statistical method, significance threshold, auto-rollback, minimum sample days), and the per-module enable flags. Partial: only the fields you send change.
The project id in the path must match the project the caller's credential resolves to (a credential can only edit its own project). Changing domain re-stamps the allowed origin into every live SDK key.
Use caseRename a project, move its domain, toggle a module on/off, or tune the experiment-analysis defaults without leaving the CLI.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque project id. Must match the caller's own project.
Body
Name
Type
Description
name
string
New project name.
domain
string
—
slug
string
URL-safe identifier used in app URLs and SDK config. Lowercase letters, numbers, and hyphens; 2–48 chars; cannot start or end with a hyphen. The caller lowercases the raw slug before sending.
defaultEnv
"dev" | "staging" | "prod"
Default environment new resources are scoped to.
timezone
string
IANA timezone the project's daily analysis runs in.
statMethod
"sequential" | "fixed" | "bayesian"
Statistical method the experiment analyzer uses.
sigThreshold
"0.01" | "0.05" | "0.10"
Significance threshold (alpha) for experiment analysis.
autoRollback
boolean
Whether a failing guardrail auto-rolls back the experiment.
minSampleDays
integer
Minimum number of days an experiment must run before it can be called.
moduleTranslations
boolean
Enable/disable the i18n/translations module.
moduleConfigs
boolean
Enable/disable the dynamic-configs module.
moduleGates
boolean
Enable/disable the feature-gates module.
moduleExperiments
boolean
Enable/disable the experiments module.
moduleFeedback
boolean
Enable/disable the feedback/ops module.
moduleUser
boolean
Enable/disable the user-management module.
moduleEvents
boolean
Enable/disable the events module.
minSampleSize
integer
Verdict power guard — minimum users per arm before a ship/hold verdict.
minRuntimeDays
integer
Minimum days an experiment must run before a verdict (peeking guard).
defaultPower
number
Target statistical power (1−β) feeding the realized-MDE calculation.
ciConfidence
number
Confidence level for the interval surfaced on results (any value in [0.5, 0.999], e.g. 0.90, 0.95, 0.975, 0.99).
defaultAllocationPct
integer
Default traffic allocation (basis points, 1000 = 10%) new experiments start with; overridable per experiment.
defaultHoldout
integer
Default holdout carve-out (basis points) that seeds each new universe's holdout (0 = none).
defaultWinsorizePct
integer
Default winsorization percentile new metrics start with; overridable per metric.
defaultMei
number | null
Default minimum effect of interest (relative, 0–1) new metrics start with; overridable per metric and per experiment. Null clears it.
cupedBaselineDays
integer
CUPED baseline window — days of pre-experiment history, frozen at start.
cupedMinOverlap
number
CUPED selection-bias guard — min share of users with a baseline, else skip.
cupedMinBaselineUsers
integer
CUPED — minimum users with a baseline before it runs at all.
msprtTauMeiFactor
number
mSPRT prior width — τ = minimum effect of interest × this factor.
msprtTauSdFactor
number
mSPRT fallback prior width — τ = this × control SD when no MEI is set.
srmThreshold
number
SRM chi-square p-value below which the run is called invalid.
Response · 200
Name
Type
Description
idrequired
string
Stable opaque project id.
namerequired
string
Project name.
domainrequired
string | null
Project domain, or `null` if unset.
ownerEmailrequired
string
Email of the account that owns the project.
planrequired
"free" | "pro" | "business" | "enterprise"
Billing plan tier.
statusrequired
"active" | "inactive"
Project lifecycle status.
subscriptionStatusrequired
string
Stripe subscription status (`none`, `active`, `trialing`, `past_due`, …).
billingIntervalrequired
"monthly" | "annual"
Billing cadence.
currentPeriodEndrequired
string | null
ISO-8601 end of the current billing period, or `null`.
trialEndsAtrequired
string | null
ISO-8601 trial end, or `null` if not trialing.
cancelAtPeriodEndrequired
number
`1` if the subscription is set to cancel at period end, else `0`.
moduleTranslationsrequired
boolean | number
Whether the i18n/translations module is enabled.
moduleConfigsrequired
boolean | number
Whether the dynamic-configs module is enabled.
moduleGatesrequired
boolean | number
Whether the feature-gates module is enabled.
moduleExperimentsrequired
boolean | number
Whether the experiments module is enabled.
moduleFeedbackrequired
boolean | number
Whether the feedback/ops module is enabled.
minSampleSize
integer
Verdict power guard — minimum users per arm before a ship/hold verdict.
minRuntimeDays
integer
Minimum days an experiment must run before a verdict (peeking guard).
defaultPower
number
Target statistical power (1−β) feeding the realized-MDE calculation.
ciConfidence
number
Confidence level for the interval surfaced on results.
defaultAllocationPct
integer
Default traffic allocation (basis points) new experiments start with.
defaultHoldout
integer
Default holdout carve-out (basis points) that seeds each new universe's holdout.
defaultWinsorizePct
integer
Default winsorization percentile new metrics start with.
defaultMei
number | null
Default minimum effect of interest (relative, 0–1) new metrics start with, or null.
cupedBaselineDays
integer
CUPED baseline window — days of pre-experiment history, frozen at start.
cupedMinOverlap
number
CUPED selection-bias guard — min share of users with a baseline, else skip.
cupedMinBaselineUsers
integer
CUPED — minimum users with a baseline before it runs at all.
msprtTauMeiFactor
number
mSPRT prior width — τ = minimum effect of interest × this factor.
msprtTauSdFactor
number
mSPRT fallback prior width — τ = this × control SD when no MEI is set.
srmThreshold
number
SRM chi-square p-value below which the run is called invalid.
Universal substring search across the project's primary resources — feature gates, experiments, dynamic configs, killswitches, metrics, and team members. Matches the trimmed q against each resource's immutable name and its human title/display name (members match on display name or email), newest-first, capped per resource family so one noisy type can't crowd out the rest.
Returns a flat, ranked-by-type list of hits (members first); an empty or whitespace-only q returns no hits. Each hit carries a project-relative href that deep-links to the row.
Use caseBack a command-palette / quick-switcher in the dashboard, or look up the id of a resource by a fragment of its name before driving another API call.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
q
query
string
Search query. Matched as a case-insensitive substring against each resource's `name` and title/display name. Trimmed; empty returns no hits.
Create a locale profile. name is the stable handle (e.g. fr:prod).
Use caseStand up a new locale before seeding its keys.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
namerequired
string
Profile handle to create, e.g. `en:prod` or `fr:prod`. Lowercase alphanumeric start, then letters/digits/`_`/`:`/`.`/`-`; max 64 chars. The locale is encoded in the handle, so no separate locale fields are accepted.
Response · 201
Name
Type
Description
idrequired
string
Newly assigned profile id.
namerequired
string
Profile handle that was created.
Example · 201
{
"id": "i18n_01j7w8a1b2c4",
"name": "fr:prod"
}
POST/api/admin/i18n/profiles/{profileId}/publish
Publish a profile live
Publish a profile to the CDN — rebuild its KV snapshot + purge the edge. Publishing is PROFILE-WIDE: the whole profile is snapshotted into one KV blob, so the optional chunk in the body is an audit label only (it does not scope what ships).
Use caseShip the latest translations live after pushing/updating keys.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
profileIdrequired
path
string
The profile id to publish.
Body
Name
Type
Description
chunk
string
Optional chunk label to stamp on the audit log. Publishing is profile-wide regardless — the whole profile is snapshotted into one KV blob.
Response · 200
Name
Type
Description
okrequired
true
Always `true` on success.
profile_idrequired
string
Profile that was published.
chunkrequired
string | null
Audit chunk label, or `null` when none was given.
published_atrequired
string
ISO-8601 timestamp of the publish.
versionrequired
string
New KV snapshot version that was shipped.
key_countrequired
number
Number of keys in the published snapshot.
changedrequired
boolean
Whether the snapshot's contents actually changed since the last publish.
purgedrequired
"purged" | "skipped" | "failed"
CDN purge outcome: `purged` ok, `skipped` (no creds), or `failed` (edge still stale).
kv_verifiedrequired
boolean
Whether a KV read-back confirmed the new version persisted.
warning
string
Human-readable caveat when the publish landed but is not fully live.
Example · 200
{
"ok": true
}
Keys
GET/api/admin/i18n/keys
List i18n keys
List keys for a profile, optionally filtered to a name prefix.
Use caseRead the current keys (and values) for a profile — e.g. to diff before a push.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
profile_id
query
string
Profile id to list keys for.
prefix
query
string
Only keys whose name starts with this.
q
query
string
Free-text search — matches keys whose name, value, OR description contains this substring (case-insensitive). Use it to find the key behind a piece of on-screen copy.
limit
query
integer
Max keys to return (1–500).
offset
query
integer
Number of keys to skip before returning `limit` rows (offset pagination).
Overwrite a single existing key's value — the only overwrite path.
The change goes live on its own: the profile's KV snapshot is rebuilt and the CDN purged as part of this call, so no separate profile publish is needed.
Use caseCorrect or re-translate a single string in place.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
The key's id.
Body
Name
Type
Description
valuerequired
string
New value for the key (the only overwrite path).
description
string
Optional human note to store with the key.
variables
array<string>
Explicit `{{var}}` placeholder names in the value. Omit to auto-derive them from the value.
Response · 200
Name
Type
Description
idrequired
string
Id of the key that was updated.
Example · 200
{
"id": "key_01j7"
}
POST/api/admin/i18n/set
Set a key's value and publish it live
Upsert a single key's value into a profile and immediately publish the whole profile (KV rebuild + CDN purge) so the new value is live in one call. The key is inserted when new and overwritten when it already exists. profile is a profile name — omit it to target the project's default-marked profile, or pass a name to target another locale.
Use caseCorrect or replace one live string and ship it without a separate push + publish.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
keyrequired
string
Dotted key path to set, e.g. `home.cta`.
valuerequired
string
New value for the key. Inserted when the key is new, overwritten when it exists.
profile
string
Profile name to target, e.g. `en:prod`. Omit to target the project's default-marked profile.
description
string
Optional human note to store with the key.
Response · 200
Name
Type
Description
okrequired
true
Always `true` on success.
profilerequired
string
Name of the profile that was published.
profile_idrequired
string
Id of the profile that was published.
keyrequired
string
The key that was set.
valuerequired
string
The value that was stored.
published_atrequired
string
ISO-8601 timestamp of the publish.
versionrequired
string
New KV snapshot version that was shipped.
key_countrequired
number
Number of keys in the published snapshot.
changedrequired
boolean
Whether the snapshot's contents actually changed since the last publish.
purgedrequired
"purged" | "skipped" | "failed"
CDN purge outcome: `purged` ok, `skipped` (no creds), or `failed` (edge still stale).
kv_verifiedrequired
boolean
Whether a KV read-back confirmed the new version persisted.
warning
string
Human-readable caveat when the publish landed but is not fully live.
Transition a draft's lifecycle state (open / merged / abandoned).
Use caseMark a reviewed draft as merged, or abandon one that should not ship.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
draftIdrequired
path
string
The draft id to update.
Body
Name
Type
Description
status
"open" | "merged" | "abandoned"
New lifecycle state for the draft.
Response · 200
Name
Type
Description
idrequired
string
Stable opaque draft id.
name
string
Draft name, e.g. the target locale being staged.
profileId
string
Profile the draft targets.
sourceProfileId
string | null
Profile the draft was seeded from, or `null`.
status
"open" | "merged" | "abandoned"
Lifecycle state of the draft.
createdBy
string
Actor email that created the draft.
createdAt
string
ISO-8601 timestamp of creation.
publishedAt
string | null
ISO-8601 merge/publish timestamp, or `null`.
Example · 200
{
"id": "draft_01j7",
"status": "merged"
}
Errors
GET/api/admin/errors
List tracked errors
Returns a single page of tracked production errors as a bare JSON array (no pagination envelope), ordered by lastSeenAt desc. Filter with status, free-text-search with q, and cap the page with limit.
Tracked errors are never filed by hand — an ingestion path (worker log drain / the see() SDK reporter) folds each occurrence into a row keyed by fingerprint, bumping count and lastSeenAt. This surface only reads them and (via PATCH) flips their status.
Use caseSnapshot the project's open issues for a triage dashboard, or drive a CI gate that fails the build when any open error of kind: uncaught exists in prod.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
status
query
string
Filter by triage state. `all` (the default) returns every status.
q
query
string
Case-insensitive substring match against `message`, `errorType`, and `subject`.
limit
query
integer
Maximum number of rows to return (1–500). Defaults to 200.
Returns a single tracked error by its id, including the latest occurrence's stack, extras, and consequence, plus occurrences — the sampled per-instance detail rows behind the issue (newest first; exhaustive while the issue is small, thinned at volume, capped at 100). Returns 404 if no such error exists in the project.
Use caseDrill into one issue — fetch its full stack and seenUrls to investigate, or walk occurrences to see how the failing message/stack varies across instances.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque error id (`err_…`).
Response · 200
Name
Type
Description
idrequired
string
Stable opaque error id.
projectIdrequired
string
Project this issue belongs to.
fingerprintrequired
string
Stable dedupe key — the issue TITLE (hash of `errorType` + `subject` + `outcome`, plus the violation name for violations). Unique per project — every occurrence with the same title folds into this one row; per-instance variety (message/stack/extras) lives in `occurrences`.
causedByFingerprint
string | null
Fingerprint of the issue this one descends from — set when `see()` reported the same error (re-throw) or its `{ cause }` (wrap) at an inner boundary first. Points at another error's `fingerprint` in the same project (soft reference, no FK). `null` for a root issue.
messagerequired
string
Error message text.
errorType
string | null
Error class/name, e.g. `TypeError`. `null` when the source didn't supply one.
stack
string | null
Stack trace of the latest occurrence, or `null` if none was captured.
source
string | null
Where it surfaced — Worker name (`shipeasy`, `shipeasy-worker`) or `sdk-client` / `sdk-server`. `null` if unknown.
url
string | null
Latest occurrence's raw URL (with ids intact), or `null`.
seenUrls
string | null
Distinct, id-normalized route templates this issue has surfaced on, as a JSON-encoded string array (e.g. `["https://app/dashboard/#/gates"]`). UUIDs / numeric ids / opaque tokens are collapsed to `#` so the same route under different ids counts once. `null` if none recorded.
subject
string | null
Consequence subject — `<errorType> causes the <subject> to <outcome>`. `null` if no consequence was reported.
outcome
string | null
Consequence outcome — see `subject`. `null` if no consequence was reported.
side
string | null
Which SDK side reported it — `client` or `server`. `null` if unknown.
env
string | null
Published env the reporting SDK ran against (e.g. `dev`, `staging`, `prod`). `null` if unknown.
Sampled per-instance detail rows behind this issue, newest first. Returned only by `GET /api/admin/errors/{id}` (never in list responses). The parent row's `count` / `firstSeenAt` / `lastSeenAt` are exact; these rows are a *sampled sketch* of the instances — exhaustive while the issue is small, thinning to roughly 1-in-10 past 10 occurrences, 1-in-100 past 100, and 1-in-1000 past 1000 (each row's `sampleRate` records the rate in force when it was kept), capped at the newest 100 rows.
statusrequired
"open" | "resolved" | "ignored"
Triage state. `open` is the default; a `resolved` error reopens automatically (ingestion-side) if it recurs; `ignored` is sticky until flipped back here.
firstSeenAtrequired
string
ISO-8601 timestamp of the first folded occurrence.
lastSeenAtrequired
string
ISO-8601 timestamp of the most recent folded occurrence. Rows are ordered by this, descending.
createdAtrequired
string
ISO-8601 timestamp the row was created.
updatedAtrequired
string
ISO-8601 timestamp of the last mutation (e.g. a status flip).
Flips the triage state of one error — the only mutation this surface allows. Valid transitions are between open, resolved, and ignored; the body must carry exactly { "status": … }.
A resolved error reopens automatically (ingestion-side) if it recurs; ignored is sticky until flipped back here. Returns the updated row.
Use cases
Use case
Description
Example
Triage
{ "status": "ignored" } to suppress a known-benign issue from the open list.
—
Close out
{ "status": "resolved" } once the fix lands; it reopens on its own if the error recurs.
—
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque error id (`err_…`).
Body
Name
Type
Description
statusrequired
"open" | "resolved" | "ignored"
New triage state. `resolved` reopens automatically on recurrence; `ignored` is sticky.
Response · 200
Name
Type
Description
idrequired
string
Stable opaque error id.
projectIdrequired
string
Project this issue belongs to.
fingerprintrequired
string
Stable dedupe key — the issue TITLE (hash of `errorType` + `subject` + `outcome`, plus the violation name for violations). Unique per project — every occurrence with the same title folds into this one row; per-instance variety (message/stack/extras) lives in `occurrences`.
causedByFingerprint
string | null
Fingerprint of the issue this one descends from — set when `see()` reported the same error (re-throw) or its `{ cause }` (wrap) at an inner boundary first. Points at another error's `fingerprint` in the same project (soft reference, no FK). `null` for a root issue.
messagerequired
string
Error message text.
errorType
string | null
Error class/name, e.g. `TypeError`. `null` when the source didn't supply one.
stack
string | null
Stack trace of the latest occurrence, or `null` if none was captured.
source
string | null
Where it surfaced — Worker name (`shipeasy`, `shipeasy-worker`) or `sdk-client` / `sdk-server`. `null` if unknown.
url
string | null
Latest occurrence's raw URL (with ids intact), or `null`.
seenUrls
string | null
Distinct, id-normalized route templates this issue has surfaced on, as a JSON-encoded string array (e.g. `["https://app/dashboard/#/gates"]`). UUIDs / numeric ids / opaque tokens are collapsed to `#` so the same route under different ids counts once. `null` if none recorded.
subject
string | null
Consequence subject — `<errorType> causes the <subject> to <outcome>`. `null` if no consequence was reported.
outcome
string | null
Consequence outcome — see `subject`. `null` if no consequence was reported.
side
string | null
Which SDK side reported it — `client` or `server`. `null` if unknown.
env
string | null
Published env the reporting SDK ran against (e.g. `dev`, `staging`, `prod`). `null` if unknown.
Sampled per-instance detail rows behind this issue, newest first. Returned only by `GET /api/admin/errors/{id}` (never in list responses). The parent row's `count` / `firstSeenAt` / `lastSeenAt` are exact; these rows are a *sampled sketch* of the instances — exhaustive while the issue is small, thinning to roughly 1-in-10 past 10 occurrences, 1-in-100 past 100, and 1-in-1000 past 1000 (each row's `sampleRate` records the rate in force when it was kept), capped at the newest 100 rows.
statusrequired
"open" | "resolved" | "ignored"
Triage state. `open` is the default; a `resolved` error reopens automatically (ingestion-side) if it recurs; `ignored` is sticky until flipped back here.
firstSeenAtrequired
string
ISO-8601 timestamp of the first folded occurrence.
lastSeenAtrequired
string
ISO-8601 timestamp of the most recent folded occurrence. Rows are ordered by this, descending.
createdAtrequired
string
ISO-8601 timestamp the row was created.
updatedAtrequired
string
ISO-8601 timestamp of the last mutation (e.g. a status flip).
Files a feedback ticket (type: "error") for a tracked production error — the "File an issue" action on the errors dashboard. The ticket carries the error's fingerprint as its sourceRef so it dedupes against, and joins back to, the tracked error. Takes no body.
Idempotent: if an open error ticket already tracks this fingerprint (hand- or auto-filed), that existing ticket is returned instead of creating a duplicate. Returns 404 if the error does not exist.
Use casePromote a noisy tracked error into an actionable ticket in the ops queue (the same item the worker auto-files once an error crosses its occurrence threshold), so it can be triaged, assigned, and burned down via the shipeasy-ops-work skill.
Marks one tracked error resolved — the single-purpose "close out" action. Takes no body; it is PATCH /api/admin/errors/{id} pinned to { "status": "resolved" }, exposed so tooling can close an error without being handed the full open/resolved/ignored status machine. A resolved error reopens automatically (ingestion-side) if it recurs, so resolving is always safe: a premature resolve un-does itself on the next occurrence. Returns the updated row; 404 if the error does not exist.
Use caseClose out a tracked error from an agent or script once its fix has shipped — e.g. after a deploy, resolve every open issue the change addressed and let recurrence reopen anything that wasn't actually fixed.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque error id (`err_…`).
Response · 200
Name
Type
Description
idrequired
string
Stable opaque error id.
projectIdrequired
string
Project this issue belongs to.
fingerprintrequired
string
Stable dedupe key — the issue TITLE (hash of `errorType` + `subject` + `outcome`, plus the violation name for violations). Unique per project — every occurrence with the same title folds into this one row; per-instance variety (message/stack/extras) lives in `occurrences`.
causedByFingerprint
string | null
Fingerprint of the issue this one descends from — set when `see()` reported the same error (re-throw) or its `{ cause }` (wrap) at an inner boundary first. Points at another error's `fingerprint` in the same project (soft reference, no FK). `null` for a root issue.
messagerequired
string
Error message text.
errorType
string | null
Error class/name, e.g. `TypeError`. `null` when the source didn't supply one.
stack
string | null
Stack trace of the latest occurrence, or `null` if none was captured.
source
string | null
Where it surfaced — Worker name (`shipeasy`, `shipeasy-worker`) or `sdk-client` / `sdk-server`. `null` if unknown.
url
string | null
Latest occurrence's raw URL (with ids intact), or `null`.
seenUrls
string | null
Distinct, id-normalized route templates this issue has surfaced on, as a JSON-encoded string array (e.g. `["https://app/dashboard/#/gates"]`). UUIDs / numeric ids / opaque tokens are collapsed to `#` so the same route under different ids counts once. `null` if none recorded.
subject
string | null
Consequence subject — `<errorType> causes the <subject> to <outcome>`. `null` if no consequence was reported.
outcome
string | null
Consequence outcome — see `subject`. `null` if no consequence was reported.
side
string | null
Which SDK side reported it — `client` or `server`. `null` if unknown.
env
string | null
Published env the reporting SDK ran against (e.g. `dev`, `staging`, `prod`). `null` if unknown.
Sampled per-instance detail rows behind this issue, newest first. Returned only by `GET /api/admin/errors/{id}` (never in list responses). The parent row's `count` / `firstSeenAt` / `lastSeenAt` are exact; these rows are a *sampled sketch* of the instances — exhaustive while the issue is small, thinning to roughly 1-in-10 past 10 occurrences, 1-in-100 past 100, and 1-in-1000 past 1000 (each row's `sampleRate` records the rate in force when it was kept), capped at the newest 100 rows.
statusrequired
"open" | "resolved" | "ignored"
Triage state. `open` is the default; a `resolved` error reopens automatically (ingestion-side) if it recurs; `ignored` is sticky until flipped back here.
firstSeenAtrequired
string
ISO-8601 timestamp of the first folded occurrence.
lastSeenAtrequired
string
ISO-8601 timestamp of the most recent folded occurrence. Rows are ordered by this, descending.
createdAtrequired
string
ISO-8601 timestamp the row was created.
updatedAtrequired
string
ISO-8601 timestamp of the last mutation (e.g. a status flip).
Returns a bucketed occurrence timeseries for one tracked error (by its fingerprint), read from the shipeasy_errors Analytics Engine dataset (near-real-time; ingest lag is seconds). The window bounds are epoch seconds; to must be strictly greater than from. The response echoes the SQL that produced the rows.
Use caseRender the trend sparkline / occurrence chart on the error detail panel, or pull the raw bucketed counts to alert when an issue's rate spikes.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque error id (`err_…`).
Body
Name
Type
Description
fromrequired
integer
Window start, epoch seconds (inclusive).
torequired
integer
Window end, epoch seconds (exclusive). Must be greater than `from`.
bucket
integer
Bucket width in seconds (60s–86400s/1d). Defaults to `3600` (hourly). Each returned point is floor-aligned to this width. default: 3600
Response · 200
Name
Type
Description
sqlrequired
string
The Analytics Engine SQL executed to produce `rows` (echoed for transparency / debugging).
rowsrequired
array<{ t: integer; v: number }>
Bucketed occurrence series, ordered by `t` ascending.
Example · 200
{
"sql": "SELECT intDiv(toUInt32(double2), 3600) * 3600 AS t,\n sum(double1 * _sample_interval) AS v\nFROM shipeasy_errors\nWHERE index1 = 'e976b15e-2f0d-4c6e-9b1a-3a7c1f2d8e90'\n AND blob1 = '9c1f4f1f2c0c4a5fa1c2b6d3e7c8e3a1'\n AND double2 >= 1751000400 AND double2 < 1751086800\nGROUP BY t\nORDER BY t",
"rows": [
{
"t": 1751000400,
"v": 12
},
{
"t": 1751004000,
"v": 31
},
{
"t": 1751007600,
"v": 27
}
]
}
Connectors
GET/api/admin/connectors
List connectors
Returns every connector in the project as a bare array (no pagination envelope).
The encrypted credentials backing each connector are never serialised — only the connector's non-secret config, accountLabel, and last-attempt health (lastError, lastAttemptAt, lastSuccessAt) are returned.
Use caseRender the integrations/triggers settings page, or drive a CI check that asserts every github connector is enabled and last dispatched without error.
Creates a connector. The request body is discriminated on provider.
- OAuth/app providers (google_sheets, github, slack) — supply { provider, name, events }. The connector is created enabled: false with empty config and no credentials; the provider's OAuth flow then attaches credentials and enables it.
- Trigger providers (claude_trigger, cursor_trigger, copilot_trigger, jules_trigger) — supply config plus the provider's credential field(s) and the connector is fireable immediately. Trigger creates are idempotent by their natural key (config.routineId / config.repoUrl / config.owner+config.repo / config.source): re-creating updates the existing row rather than duplicating it.
Use cases
Use case
Description
Example
File bugs as GitHub Issues
{ "provider": "github", "name": "Bugs → acme/app", "events": ["bug.created"] }, then finish the GitHub App install.
Nightly ops sweep
register a claude_trigger with its routineId and (optionally) a fire token; subscribe events later to auto-fire on new bugs.
—
Cold cloud-agent run
register a cursor_trigger/jules_trigger with the repo coordinates plus both keys, or a copilot_trigger with the repo + user PAT.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Response · 201
Name
Type
Description
idrequired
string
Newly assigned connector id.
Example · 201
{
"id": "9b0e7c2a-1f3d-4a8e-bf21-0c6a2e5d7f10"
}
GET/api/admin/connectors/{id}
Get a connector
Returns a single connector by id. The encrypted credentials are never serialised.
Use caseInspect one connector's health — its enabled state, subscribed events, and last-attempt outcome (lastError/lastSuccessAt).
Human-readable connector label shown in the dashboard.
enabledrequired
boolean
Whether the connector is active. OAuth providers are created `false` and flip to `true` only after the OAuth/config flow completes; trigger providers default to `true` on create. A disabled connector never dispatches and never auto-fires.
eventsrequired
array<"bug.created" | "feature_request.created">
Events this connector is subscribed to. Empty array = no auto-dispatch / no auto-fire (the connector can still be fired/tested manually).
configrequired
object
Provider-specific, non-secret configuration (e.g. a Google Sheets `spreadsheetId`/`sheetTitle`, a Slack channel ref, or a trigger's repo coordinates + routine id). Secrets are never stored here — they live in an encrypted credentials cipher that is never returned by the API.
accountLabelrequired
string | null
Display label for the connected account / target (e.g. the OAuth account email, or a trigger's idempotency key such as its repo url or routine id). `null` until the connector is authenticated/configured.
lastErrorrequired
string | null
Error message from the most recent failed dispatch/fire attempt, or `null` if the last attempt succeeded (or none has run).
lastAttemptAtrequired
string | null
ISO-8601 timestamp of the most recent dispatch/fire attempt, or `null` if none has run.
lastSuccessAtrequired
string | null
ISO-8601 timestamp of the most recent successful dispatch/fire, or `null` if none has succeeded. Preserved across later failures.
Partial update — only supplied fields change. events and configreplace wholesale; there is no merge or append. Secrets cannot be set through this endpoint (credential rotation goes through the provider-specific re-register flow).
The response carries only { id } — re-fetch via GET /api/admin/connectors/{id} for the new row.
Use cases
Use case
Description
Example
Pause a connector
{ "enabled": false }. Stops all dispatch / auto-fire without deleting it.
Change subscribed events
send the full new events array. An empty array unsubscribes the connector from every event.
Rename
{ "name": "Bugs → acme/app issues" }.
—
Retarget
send a new config (e.g. a different Sheets sheetTitle); it replaces the stored config wholesale.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque connector id.
Body
Name
Type
Description
name
string
New connector label.
enabled
boolean
Toggle the connector on/off.
events
array<"bug.created" | "feature_request.created">
Replaces the subscribed-events list wholesale. An empty array unsubscribes the connector from every event (e.g. turning off a trigger's auto-fire).
config
object
Replaces the non-secret config wholesale. Secrets are never set through this endpoint.
Response · 200
Name
Type
Description
idrequired
string
Connector id that was updated.
Example · 200
{
"id": "9b0e7c2a-1f3d-4a8e-bf21-0c6a2e5d7f10"
}
DELETE/api/admin/connectors/{id}
Delete a connector
Permanently removes the connector and its stored credentials.
Use caseDisconnect an integration for good — e.g. tear down a github connector after migrating bug routing elsewhere.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque connector id.
Response · 200
Name
Type
Description
okrequired
true
—
Example · 200
{
"ok": true
}
POST/api/admin/connectors/{id}/fire
Fire a trigger connector
Manually kicks a trigger connector's run — Claude (kicks its preconfigured routine) or Cursor / Copilot / Jules (launches a cold cloud-agent run). Firing is event-less: it kicks the run with an optional caller-supplied prompt override rather than dispatching a single lifecycle payload.
Only trigger providers can be fired, and only once authenticated (a tokenless trigger cannot fire). The attempt's outcome is recorded on the connector's lastAttemptAt / lastError / lastSuccessAt.
Use caseKick a one-off ops sweep on demand from the dashboard's "Fire now" button, optionally overriding the routine's default prompt.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque connector id.
Body
Name
Type
Description
text
string
Optional prompt override for the run. When omitted, each provider falls back to its own default (Claude → the configured `fireText`; the others → their built cold-start prompt).
Response · 200
Name
Type
Description
okrequired
boolean
Always `true` — a successful fire returns HTTP 200. A dispatch failure returns HTTP 502 with the `Error` envelope, not this body.
Example · 200
{
"ok": true
}
POST/api/admin/connectors/{id}/test
Test a connector
Dispatches a single synthetic bug.created payload to the connector's destination so you can verify the integration end-to-end. Unlike fire, this runs the real dispatch path (posts a Slack message / appends a Sheets row / files a GitHub Issue) with throwaway test content. The attempt's outcome is recorded on the connector's lastAttemptAt / lastError / lastSuccessAt.
When the provider produces a linkable artifact (e.g. a GitHub Issue), its URL is returned as issueUrl; otherwise issueUrl is null.
Use caseClick "Send test" after wiring up a connector to confirm credentials and config are correct before relying on it for real events.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque connector id.
Response · 200
Name
Type
Description
okrequired
boolean
Always `true` — a successful test returns HTTP 200. A dispatch failure returns HTTP 502 with the `Error` envelope, not this body.
issueUrlrequired
string | null
URL of the artifact the test produced (e.g. the GitHub Issue created by a `github` connector), or `null` when the provider produces no linkable artifact.
Edit an existing coding-agent trigger connector (claude_trigger / cursor_trigger / copilot_trigger / jules_trigger) — replace its non-secret config and, optionally, rotate its credential secret(s). Discriminated on provider; the id in the path selects the connector and its provider must match the body.
Unlike the generic PATCH /api/admin/connectors/{id} (which cannot touch secrets), this endpoint always replaces the non-secret config wholesale and merges any supplied secret over the stored credential cipher — so a single half of a two-key pair (e.g. just the ops key) can be rotated on its own. A blank/omitted secret leaves the stored cipher untouched.
The response carries only { id } — re-fetch via GET /api/admin/connectors/{id} for the new row.
Use caseRe-point a Cursor trigger at a new repo ref, or rotate a Claude trigger's fire token, without deleting and re-creating the connector.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
idrequired
path
string
Stable opaque connector id. Its stored `provider` must match the body's `provider`.
Response · 200
Name
Type
Description
idrequired
string
Connector id that was updated.
Example · 200
{
"id": "9b0e7c2a-1f3d-4a8e-bf21-0c6a2e5d7f10"
}
Trigger
POST/api/admin/connectors/trigger
Create a recurring coding-agent trigger
Creates (or idempotently updates) a coding-agent trigger connector — the recurring, unattended run that burns down the ops queue in --pr mode. Discriminated on provider; only the four Shipeasy-fireable providers are accepted (claude_trigger, cursor_trigger, copilot_trigger, jules_trigger). Config + credential(s) arrive together; creates are idempotent by the provider's natural key, so re-creating updates the existing row.
Platforms without a fire endpoint (Codex, Windsurf, Cline, OpenClaw, OpenCode, Continue) cannot be created here — they are scheduled on their own platform (typically a GitHub Actions schedule: cron running the platform's headless CLI with the trigger prompt).
Use cases
Use case
Description
Example
Register a Claude routine
after RemoteTrigger {action:"create"} returns trig_…, { "provider": "claude_trigger", "config": { "routineId": "trig_…" } } (tokenless is fine; add the fire token later).
Cold Cursor/Jules run
repo coordinates + both keys; Shipeasy launches the run and the PR opens via the provider's GitHub App.
Copilot cloud agent
repo + a Copilot-licensed user PAT with the "Agent tasks" permission.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Response · 201
Name
Type
Description
idrequired
string
Newly assigned connector id.
Example · 201
{
"id": "9b0e7c2a-1f3d-4a8e-bf21-0c6a2e5d7f10"
}
API Keys
GET/api/admin/keys
List API keys
Returns a single page of the project's API keys ordered by created_at desc, id desc, in the standard { data, next_cursor } envelope. Use the cursor query parameter to paginate.
Response fields are snake_case (created_at, revoked_at, created_by_email, last4). The raw token is never returned — only its last4 tail, so a held key can be matched against the masked row. Revoked keys are included (with a non-null revoked_at).
Use caseAudit which keys exist for a project — surface stale or never-expiring keys, or drive a CI check that asserts no client key is still active in prod after a rotation.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
limit
query
number
Max results per page (default 50, max 500).
cursor
query
string
Opaque pagination cursor from a prior page's `next_cursor`.
Mints a new API key and returns the plaintext token once — it is stored hashed and can never be retrieved again, so capture it on creation.
Only type is required. env is required for server and client keys (the key is bound to one environment, which is the read-env isolation boundary); for admin and ops keys env is ignored and the key is pinned to prod. Expiry is fixed for some types: admin keys always get a 90-day expiry and ops keys a short sliding window, regardless of expiresInDays. Only server/client keys count toward the plan key limit.
Use cases
Use case
Description
Example
Back-end key
{ "type": "server", "env": "prod" } for the production server SDK.
Public browser key
{ "type": "client", "env": "prod", "name": "marketing site" } to embed in the browser SDK.
Scoped, expiring key
{ "type": "server", "env": "staging", "scopes": ["gates:evaluate"], "expiresInDays": 30 } for a time-boxed integration.
Parameters
Name
In
Type
Description
X-Project-Idrequired
header
string
Project to scope this request to.
Body
Name
Type
Description
typerequired
"server" | "client" | "admin" | "ops"
Key kind to mint. `server` (back-end), `client` (public, browser), `admin` (CLI/devtools token), `ops` (restricted unattended-trigger credential). `admin`/`ops` keys don't count toward the plan key limit.
name
string
Optional human label. Programmatic (API) mints that omit it get an auto-generated descriptive name; dashboard mints may leave it blank.
Optional permission strings recorded on the key. `tickets:public_create` is enforced: a client key needs it (plus the project's `allowPublicTickets` setting) to file a `pending_approval` bug via the public `POST /cli/report` endpoint. The rest are audit/display only.
expiresInDays
integer | null
Days until the key expires (1–3650), or `null`/omitted for a key that never expires. Ignored for `admin` keys (fixed 90-day expiry) and `ops` keys (short sliding window).
envrequired
"dev" | "staging" | "prod"
Environment to bind the key to. Always required. For `server`/`client` keys it is the isolation boundary the worker reads from; `admin`/`ops` keys are env-agnostic and pinned to `prod` by the handler regardless of the value sent.
Response · 201
Name
Type
Description
idrequired
string
Stable opaque key id (UUID). Use it to revoke the key.
typerequired
"server" | "client" | "admin" | "ops"
The kind of key that was minted.
envrequired
"dev" | "staging" | "prod"
Environment the key is bound to (`prod` for `admin`/`ops`).
keyrequired
string
The plaintext API token (e.g. `sdk_server_…`). Returned once — store it now; it cannot be recovered.
expires_atrequired
string | null
ISO-8601 expiry, or `null` if the key never expires.