Skip to content
Documentation menu

API reference

Workspace

Find the brands a key can see, and read the workspace's plan, prompts and engine spend.

GET /brands

List the brands this key can see.

Note

A key on a seat limited to named clients lists only those clients.

About this routeDetail
Returnsbrands: one row per brand with its id, name, primaryDomain, verticalKey, active and lifecycle (client, pitch or archived). Use an id from this list as brandId on every other route.
SeatAny seat's key, a viewer's included.
PlanEvery plan.
Rate limitNone on this route.
Engine budgetNothing this route does is metered.
curl "https://api.ansengine.co/brands" \
  -H "Authorization: Bearer ak_your_key"
StatusWhen
200brands: one row per brand with its id, name, primaryDomain, verticalKey, active and lifecycle (client, pitch or archived). Use an id from this list as brandId on every other route.
401No valid API key was sent.

GET /org/usage

Read the plan, the prompt pool and engine spend against the monthly cap.

Note

A key on a seat limited to named clients reads a smaller shape marked scoped: true, carrying its own clients' counts and spend only.

About this routeDetail
Returnsplan, cycleStart, brands, seats, prompts (used and limit, with one row per brand), brandSpend, and spend: spentUsd against capUsd for this cycle, with halted true once the cap is reached.
SeatAny seat's key, a viewer's included.
PlanEvery plan.
Rate limitNone on this route.
Engine budgetNothing this route does is metered.
curl "https://api.ansengine.co/org/usage" \
  -H "Authorization: Bearer ak_your_key"
StatusWhen
200plan, cycleStart, brands, seats, prompts (used and limit, with one row per brand), brandSpend, and spend: spentUsd against capUsd for this cycle, with halted true once the cap is reached.
401No valid API key was sent.
404The workspace behind this key no longer exists.