What GET answers, for keys with control: read or write. Parameters go in the query string;
unknown or repeated ones are refused.
Generated from the tools the API serves (go run ./tools/genapiref). Keys, pages and errors:
Management API. The same description as OpenAPI 3.1: GET /control/v1/openapi.json.
GET /control/v1/anomalies — Endpoint anomalies (error rate, latency, spend) the gateway recorded.
| parameter |
type |
|
since |
string |
default 24h |
| answer |
type |
|
anomalies |
list of objects |
always |
anomalies[].endpoint |
string |
always |
anomalies[].requests |
integer |
always |
anomalies[].signal |
string |
always |
anomalies[].threshold |
number |
always |
anomalies[].usual |
number |
always |
anomalies[].value |
number |
always |
anomalies[].window |
time (RFC 3339) |
always |
GET /control/v1/apis — The API Gateway’s APIs: base URL, methods, OAuth connection, header policy names — never header values.
| answer |
type |
|
apis |
list of objects |
always |
apis[].block |
list of strings |
when set |
apis[].disabled |
boolean |
when set |
apis[].forward |
list of strings |
when set |
apis[].methods |
list of strings |
when set |
apis[].name |
string |
always |
apis[].oauth |
string |
when set |
apis[].private |
boolean |
when set |
apis[].sets_headers |
list of strings |
when set |
apis[].url |
string |
always |
mount |
string |
always |
GET /control/v1/audit — The audit trail, newest first: every change and sign-in, who made it and from where.
| parameter |
type |
|
action |
string |
an action like key.created, or a prefix: key.* |
actor |
string |
ui:, cli, mcp:, api:, gateway |
before |
integer |
next_before of the previous page |
limit |
integer (1–100) |
|
since |
string |
e.g. 24h, 7d |
| answer |
type |
|
entries |
list of objects |
always |
entries[].action |
string |
always |
entries[].actor |
string |
always |
entries[].detail |
string |
always |
entries[].ip |
string |
always |
entries[].seq |
integer |
always |
entries[].time |
time (RFC 3339) |
always |
next_before |
integer |
when set · pass as before for the next page; absent on the last |
GET /control/v1/budgets — Spend against every configured budget, today and this month.
| answer |
type |
|
budgets |
list of objects |
always |
budgets[].field |
string |
always |
budgets[].limit |
number |
always |
budgets[].name |
string |
when set |
budgets[].scope |
string |
always |
budgets[].used |
number |
always |
GET /control/v1/config — The running configuration without secrets: providers (whether a key is set, never the key), model aliases, MCP servers, limits, budgets, guardrails and mounts.
| answer |
type |
|
auth_mode |
string |
always |
budgets |
any |
always · as the config file has it |
default_provider |
string |
always |
guardrails |
any |
always · as the config file has it |
limits |
any |
always · as the config file has it |
mcp_endpoints |
boolean |
always |
mcp_servers |
list of objects |
always |
mcp_servers[].disabled |
boolean |
when set |
mcp_servers[].name |
string |
always |
mcp_servers[].target |
string |
always |
mcp_servers[].transport |
string |
always |
models |
object |
always |
mounts |
object |
always |
providers |
list of objects |
always |
providers[].base_url |
string |
always |
providers[].name |
string |
always |
providers[].server_key |
boolean |
always |
providers[].type |
string |
always |
GET /control/v1/endpoints — The AI Gateway endpoints: model, variables, version, whether disabled or an MCP tool.
| answer |
type |
|
endpoints |
list of objects |
always |
endpoints[].description |
string |
when set |
endpoints[].disabled |
boolean |
when set |
endpoints[].input |
variables, input_schema, messages |
always |
endpoints[].mcp_tool |
boolean |
always |
endpoints[].model |
string |
always |
endpoints[].name |
string |
always |
endpoints[].variables |
list of strings |
when set |
endpoints[].version |
string |
always |
GET /control/v1/keys — The pg_ keys with their restrictions — never their secrets.
| answer |
type |
|
keys |
list of objects |
always |
keys[].access |
object |
when set |
keys[].apis |
list of strings |
when set |
keys[].approve |
string |
when set |
keys[].control |
string |
when set |
keys[].disabled |
boolean |
when set |
keys[].endpoints |
list of strings |
when set |
keys[].mcp |
list of strings |
when set |
keys[].name |
string |
always |
keys[].providers |
list of strings |
when set |
keys[].source |
keys_file, config |
always |
keys[].users |
string |
when set |
GET /control/v1/logs — Recent requests from the request log, newest first (at most 100).
| parameter |
type |
|
before |
integer |
only requests with a lower id: next_before of the previous page |
endpoint |
string |
|
key |
string |
|
limit |
integer (1–100) |
|
model |
string |
|
provider |
string |
|
since |
string |
|
status |
string |
a code like 429 or a class like 5xx |
surface |
ai, mcp, api |
|
| answer |
type |
|
next_before |
integer |
when set · pass as before for the next page; absent on the last |
requests |
list of objects |
always |
requests[].cost_usd |
number or null |
always |
requests[].duration_ms |
number |
always |
requests[].endpoint |
string |
when set |
requests[].error |
string |
when set |
requests[].guard |
string |
when set |
requests[].id |
integer |
always |
requests[].input_tokens |
integer |
always |
requests[].key |
string |
when set |
requests[].model |
string |
always |
requests[].output_tokens |
integer |
always |
requests[].provider |
string |
always |
requests[].route |
string |
always |
requests[].status |
integer |
always |
requests[].surface |
string |
always |
requests[].time |
time (RFC 3339) |
always |
requests[].user |
string |
when set |
GET /control/v1/oauth-connections — The OAuth connections: connected, expiry, needing a reconnect — never tokens.
| answer |
type |
|
connections |
list of objects |
always |
connections[].error |
string |
when set |
connections[].expires_at |
time (RFC 3339) |
when set |
connections[].grant |
string |
always |
connections[].name |
string |
always |
connections[].obtained_at |
time (RFC 3339) |
when set |
connections[].orphan |
boolean |
when set |
connections[].preset |
string |
when set |
connections[].scope |
string |
when set |
connections[].state |
string |
always |
GET /control/v1/stats — Requests, errors, latency (p50/p95), tokens and cost over a window, optionally grouped. surface mcp covers MCP gateway requests (by server, tool or key), surface api API Gateway requests (by api, method or key).
| parameter |
type |
|
by |
provider, model, key, endpoint, server, tool, api, method |
|
since |
string |
window, e.g. 1h, 24h (default), 7d |
surface |
ai, mcp, api |
ai (default): model requests |
| answer |
type |
|
rows |
list of objects |
always |
rows[].cost_usd |
number |
always |
rows[].errors |
integer |
always |
rows[].group |
string |
when set |
rows[].input_tokens |
integer |
always |
rows[].output_tokens |
integer |
always |
rows[].p50_ms |
number |
always |
rows[].p95_ms |
number |
always |
rows[].requests |
integer |
always |
since |
time (RFC 3339) |
always |
GET /control/v1/webhook-deliveries — Webhook deliveries, newest first: state, attempts, last answer. With id: one delivery with the event it carries.
| parameter |
type |
|
before |
integer |
only older deliveries: next_before of the previous page |
id |
integer |
one delivery, with its payload |
limit |
integer (1–100) |
|
state |
pending, delivered, failed |
|
webhook |
string |
|
| answer |
type |
|
deliveries |
list of objects |
when set |
deliveries[].attempts |
integer |
always |
deliveries[].created |
time (RFC 3339) |
always |
deliveries[].done |
time (RFC 3339) |
when set |
deliveries[].duration_ms |
integer |
always |
deliveries[].event_id |
string |
always |
deliveries[].event_type |
string |
always |
deliveries[].id |
integer |
always |
deliveries[].last_error |
string |
always |
deliveries[].last_status |
integer |
always |
deliveries[].next_attempt |
time (RFC 3339) |
when set |
deliveries[].state |
pending, delivered, failed |
always |
deliveries[].webhook |
string |
always |
delivery |
object |
when set |
delivery.attempts |
integer |
always |
delivery.created |
time (RFC 3339) |
always |
delivery.done |
time (RFC 3339) |
when set |
delivery.duration_ms |
integer |
always |
delivery.event_id |
string |
always |
delivery.event_type |
string |
always |
delivery.id |
integer |
always |
delivery.last_error |
string |
always |
delivery.last_status |
integer |
always |
delivery.next_attempt |
time (RFC 3339) |
when set |
delivery.payload |
string |
always · the event as signed and sent |
delivery.response |
string |
always · the receiver’s answer, its first 2 KB |
delivery.state |
pending, delivered, failed |
always |
delivery.webhook |
string |
always |
next_before |
integer |
when set · pass as before for the next page; absent on the last |
GET /control/v1/webhooks — The webhooks: URL (credentials removed), events, state (ok, idle, failing, disabled), queue and deliveries in the last 24 hours.
| answer |
type |
|
webhooks |
list of objects |
always |
webhooks[].delivered_24h |
integer |
always |
webhooks[].events |
list of strings |
always |
webhooks[].failed_24h |
integer |
always |
webhooks[].failing_since |
time (RFC 3339) |
when set |
webhooks[].last_delivered |
time (RFC 3339) |
when set |
webhooks[].last_error |
string |
when set |
webhooks[].name |
string |
always |
webhooks[].pending |
integer |
always |
webhooks[].state |
ok, idle, failing, disabled |
always |
webhooks[].url |
string |
always |