Reads across organizations for Nexus's own people only: a person with a platform role who is marked staff or signs in with a Nexus address. Each read is audited in the caller's organization before it runs. Metadata and counts only, never content.
Every person, newest first, with who they are, how they arrived (the sign-up's org.created), their organizations, when they were last seen and their figures over the window: calls, tokens, spend, sessions, failed and refused calls. Staff only; audited as staff.list_viewed.
The last person's id on the previous page (nextCursor)
x-nexus-staff-viewerheader · string
The dashboard's signed-in viewer, kept in the audit event as sent; never used for access
Responses
200OKapplication/json
windowStaffWindowrequired
Whole UTC days: from inclusive, until exclusive (the end of today).
fromstring (date-time)required
untilstring (date-time)required
daysintegerrequired
usersarray of StaffUserSummaryrequired
idstringrequired
emailstring | nullrequired
Null once erased
namestring | nullrequired
createdAtstring (date-time)required
erasedbooleanrequired
mark"staff" | "test" | "demo" | nullrequired
class"customer" | "nexus"required
signUpobject | nullrequired
The personal organization's org.created; null for people from before it
atstring (date-time)
methodstring | null
emailDomainstring | null
countrystring | null
utmSourcestring | null
utmMediumstring | null
utmCampaignstring | null
referrerstring | null
referralstring | null
campaignstring | null
orgsarray of objectrequired
idstringrequired
kind"personal" | "company"required
namestring | nullrequired
Null for a personal organization
slugstring | nullrequired
role"owner" | "admin" | "member"required
class"customer" | "nexus"required
markstring | nullrequired
lastSeenAtstring (date-time) | nullrequired
The latest model call, any time, or agent session heartbeat in the window
totalsobjectrequired
usageStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
refusedCallsintegerrequired
failedCallsintegerrequired
sessionsintegerrequired
failedSessionsintegerrequired
subscriptionStaffSubscriptionUsage | nullrequired
appsarray of stringrequired
planobjectrequired
nexus"payg" | "credits" | nullrequired
creditsBoughtUsdstring | nullrequired
connectedarray of objectrequired
providerstringrequired
The plan's provider: claude (Anthropic) or chatgpt (OpenAI)
tierstring | nullrequired
The person's latest plan with the provider, from their app (agent_plans): free, pro, max, plus, team, enterprise or unknown. Null when no session sent one, as with NEXUS_COLLECT_AGENT_PLAN off.
avgSessionMinutesinteger | nullrequired
The mean app session in the window from the apps' heartbeat (timeInApp's minutes over its sessions), else the mean length of their agent sessions. Null with neither.
flag"abuse" | "bug" | nullrequired
nextCursorstring | nullrequired
statsobject | nullrequired
The day's tiles, on the first page only; null on a page a cursor names.
peopleintegerrequired
signedUpTodayintegerrequired
signedUpDailyAvg7dstringrequired
activeTodayintegerrequired
hitErrorTodayintegerrequired
collectionStaffCollection
Current Gateway collection switches. Historical rows can remain available when a switch is disabled. A flag is true only when the signal is kept for everyone; a signal kept for organizations marked staff alone is false and listed in staffOnly.
activitybooleanrequired
agentPlanbooleanrequired
clientErrorsbooleanrequired
signupSourcebooleanrequired
staffOnlyarray of "activity" | "agentPlan" | "clientErrors"
The signals kept only for organizations marked as staff; omitted when none is.
400`days` (`invalid_days`), `limit` (`invalid_limit`) or `cursor` (`invalid_cursor`) is out of rangeapplication/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
403Not a person with a platform role who is one of Nexus's own people (`staff_required`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
503The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
400
`days` (`invalid_days`), `limit` (`invalid_limit`) or `cursor` (`invalid_cursor`) is out of range
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
429
rate_limit_error
Too many requests from this key in a minute
503
The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)
One person: their summary, each day of the window, the apps, models and products they used, their agent sessions by agent and route, calls that did not settle by reason, and their latest failed and refused calls with request ids. Spend counts the organizations the person has left too. Staff only; audited as staff.person_viewed.
The dashboard's signed-in viewer, kept in the audit event as sent; never used for access
Responses
200OKapplication/json
windowStaffWindowrequired
Whole UTC days: from inclusive, until exclusive (the end of today).
fromstring (date-time)required
untilstring (date-time)required
daysintegerrequired
userStaffUserSummaryrequired
idstringrequired
emailstring | nullrequired
Null once erased
namestring | nullrequired
createdAtstring (date-time)required
erasedbooleanrequired
mark"staff" | "test" | "demo" | nullrequired
class"customer" | "nexus"required
signUpobject | nullrequired
The personal organization's org.created; null for people from before it
atstring (date-time)
methodstring | null
emailDomainstring | null
countrystring | null
utmSourcestring | null
utmMediumstring | null
utmCampaignstring | null
referrerstring | null
referralstring | null
campaignstring | null
orgsarray of objectrequired
idstringrequired
kind"personal" | "company"required
namestring | nullrequired
Null for a personal organization
slugstring | nullrequired
role"owner" | "admin" | "member"required
class"customer" | "nexus"required
markstring | nullrequired
lastSeenAtstring (date-time) | nullrequired
The latest model call, any time, or agent session heartbeat in the window
totalsobjectrequired
usageStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
refusedCallsintegerrequired
failedCallsintegerrequired
sessionsintegerrequired
failedSessionsintegerrequired
subscriptionStaffSubscriptionUsage | nullrequired
appsarray of stringrequired
planobjectrequired
nexus"payg" | "credits" | nullrequired
creditsBoughtUsdstring | nullrequired
connectedarray of objectrequired
providerstringrequired
The plan's provider: claude (Anthropic) or chatgpt (OpenAI)
tierstring | nullrequired
The person's latest plan with the provider, from their app (agent_plans): free, pro, max, plus, team, enterprise or unknown. Null when no session sent one, as with NEXUS_COLLECT_AGENT_PLAN off.
avgSessionMinutesinteger | nullrequired
The mean app session in the window from the apps' heartbeat (timeInApp's minutes over its sessions), else the mean length of their agent sessions. Null with neither.
flag"abuse" | "bug" | nullrequired
dailyarray of objectrequired
daystring (date)required
usageStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
refusedCallsintegerrequired
failedCallsintegerrequired
sessionsintegerrequired
subscriptionStaffSubscriptionUsage | nullrequired
appsarray of objectrequired
appstringrequired
usageStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
modelsarray of objectrequired
modelstringrequired
usageStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
productsarray of objectrequired
productstringrequired
usageStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
agentsarray of objectrequired
agentstringrequired
viastringrequired
sessionsintegerrequired
failedintegerrequired
interruptedintegerrequired
lostintegerrequired
errorsarray of objectrequired
status"failed" | "refused" | "released"required
reasonstring | nullrequired
callsintegerrequired
lastAtstring (date-time)required
recentFailuresarray of objectrequired
idstringrequired
atstring (date-time)required
orgIdstringrequired
status"failed" | "refused"required
modelstringrequired
providerstringrequired
productstringrequired
appstringrequired
reasonstring | nullrequired
requestIdstring | nullrequired
sessionsarray of objectrequired
idstringrequired
startedAtstring (date-time)required
endedAtstring (date-time) | nullrequired
lengthMinutesintegerrequired
appstringrequired
mode"code" | "chat"required
agentstring | nullrequired
viastringrequired
tokensintegerrequired
gatewayTokensintegerrequired
subscriptionTokensintegerrequired
failedCallsintegerrequired
statusstringrequired
journeyarray of objectrequired
Each step's first time, null until it happens. For an erased person, the steps the audit trail records are null.
stepstringrequired
labelstringrequired
atstring (date-time) | nullrequired
okbooleanrequired
activationobject | nullrequired
The person's Desktop sign-ins and chats, from records the Gateway already keeps; null for an erased person.
firstDesktopAtstring (date-time) | nullrequired
The first Desktop sign-in, any time, or the first Desktop model call in the window, whichever is earlier.
desktopInstallsintegerrequired
Distinct machines signed in on Desktop, any time, by the sign-in label's host.
firstChatAtstring (date-time) | nullrequired
The first chat the person started, any time.
chatsStartedintegerrequired
Chats started in the window.
chatsAnsweredintegerrequired
Chats with at least one answer, among those whose first call is in the window.
exitsNotMeasuredstringrequired
Why exits are not shown.
staffViewsobjectrequired
last30Daysintegerrequired
codeChatobjectrequired
codeMinutesintegerrequired
chatMinutesintegerrequired
estimatedbooleanrequired
devicesarray of objectrequired
appstringrequired
versionstring | nullrequired
osstring | nullrequired
The OS the heartbeat names most for this app version in the window. Null with no heartbeat for it.
minutesinteger | nullrequired
Active minutes on this app version in the window, from the heartbeat. Null with none.
callsintegerrequired
Model calls. 0 for an app version only the heartbeat names.
signalsarray of StaffSignalrequired
kindstringrequired
kindOf"bug" | "abuse"required
valuestringrequired
thresholdstringrequired
sincestring (date-time) | nullrequired
For review candidates, the observed threshold-trigger time; otherwise the first counting event in the activity window.
baselineMultiplestring | nullrequired
reasonstringrequired
evidenceStaffReviewEvidence
fromstring (date-time)required
untilstring (date-time)required
observedAtstring (date-time)required
scopestringrequired
countsStaffReviewCountsrequired
totalintegerrequired
min 0
freshintegerrequired
min 0
maturedintegerrequired
min 0
evaluatedintegerrequired
min 0
unknownintegerrequired
min 0
excludedintegerrequired
min 0
qualifiedintegerrequired
min 0
accountsarray of objectrequired
userIdstringrequired
welcomeGrantMicrosstringrequired
Exact micro-dollar integer. Never a reservation hold.
pattern ^[0-9]+$
welcomeSpentMicrosstringrequired
Exact micro-dollar integer. Never a reservation hold.
A count on the attention list; a boolean on a person's page
timeInAppobject | nullrequired
Active minutes and app sessions in the window, from the apps' heartbeat. Null with none, as with NEXUS_COLLECT_ACTIVITY off.
minutesintegerrequired
At most one a minute per organization and app
sessionsintegerrequired
One per organization, app and UTC day with an active minute
activityByHourarray of object | nullrequired
Active minutes in each of the last 24 whole UTC hours by surface, oldest first. A day row that spans several hours is spread over them by time. Null with no heartbeat in them.
hourstring (date-time)required
The hour's start, UTC
codeintegerrequired
chatintegerrequired
otherintegerrequired
Wiki, Review, Pages and every other screen
clientErrorsarray of object | nullrequired
The newest 50 errors the apps caught since the window's start (kept 30 days), newest first. Never a message. Null with none, as with NEXUS_COLLECT_CLIENT_ERRORS off.
The 5xx and 429 answers the person met in the window, on any route: sign-in, Nexus UI and model calls (http_error_days). Null with none. The counter has no switch.
serverErrorsintegerrequired
Answers with a status from 500 to 599
rateLimitedintegerrequired
Answers with status 429
byFamilyarray of objectrequired
By route family and status, most answers first
familystringrequired
The route family, as the family label on /metrics
statusintegerrequired
countintegerrequired
lastDaystring (date)required
The last UTC day with one
collectionStaffCollection
Current Gateway collection switches. Historical rows can remain available when a switch is disabled. A flag is true only when the signal is kept for everyone; a signal kept for organizations marked staff alone is false and listed in staffOnly.
activitybooleanrequired
agentPlanbooleanrequired
clientErrorsbooleanrequired
signupSourcebooleanrequired
staffOnlyarray of "activity" | "agentPlan" | "clientErrors"
The signals kept only for organizations marked as staff; omitted when none is.
clientErrorGroupsStaffClientErrorGroups
Current UTC calendar day, partial at observedAt. Measured reads all retained daily counters; it does not establish client reporting coverage. Data remains readable while collection is off. Truncation is explicit. Person detail selects groups containing that person, while counts remain global.
state"measured" | "unavailable"required
collectionEnabledboolean | nullrequired
windowobjectrequired
fromstring (date-time)required
untilstring (date-time)required
observedAtstring (date-time)required
minimumPeople3required
groupLimit50required
peopleLimit20required
groupsTruncatedbooleanrequired
groupsarray of StaffClientErrorGrouprequired
at most 50 items
idstringrequired
appstringrequired
appVersionstringrequired
osstringrequired
kindstringrequired
componentstringrequired
codestringrequired
affectedPeopleintegerrequired
min 0
errorsintegerrequired
min 0
fatalErrorsintegerrequired
min 0
lastAtstring (date-time)required
peoplearray of stringrequired
at most 20 items
peopleTruncatedbooleanrequired
referredByobject | nullrequired
Who referred the person, from their row in referrals. Ids only, never a name or an email. Null when nobody did, and for an erased person.
kind"person" | "campaign"required
userIdstring | nullrequired
The referrer's user id, for a link to their staff page; null for a campaign.
campaignstring | nullrequired
The campaign's label; null for a person.
atstring (date-time) | nullrequired
When the sign-up recorded the referral; null on rows from before it was kept.
referredobjectrequired
The people the person referred: empty for an erased person.
totalintegerrequired
Everyone they referred, past the 50 listed too.
min 0
peoplearray of objectrequired
The newest 50 of them, oldest first. Ids only, never a name or an email.
at most 50 items
userIdstringrequired
signedUpAtstring (date-time)required
When their sign-up recorded the referral.
erasedbooleanrequired
Erased, or no longer on record: their page shows nothing of theirs.
firstCallAtstring (date-time) | nullrequired
Their first model call in any of their organizations; null before one, and for an erased person.
paidAtstring (date-time) | nullrequired
When their personal organization first paid Nexus with a credit purchase of at least the reward's minimum; null before.
The referrer's reward for them, as GET /v1/referrals shows the referrer.
400`days` is out of range (`invalid_days`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
403Not a person with a platform role who is one of Nexus's own people (`staff_required`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
404No such person (`unknown_person`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
503The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
400
`days` is out of range (`invalid_days`)
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
not_found
Nothing matches the path in your organization
404
No such person (`unknown_person`)
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
429
rate_limit_error
Too many requests from this key in a minute
503
The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)
People, organizations, sign-up domains and apps to look at now: the bug and abuse rules that fire over the last 24 hours against the 7 days before, each with its value, threshold, start and baseline multiple, every rule with how many it fires for, and what the data cannot measure yet. Staff only; audited as staff.list_viewed.
A count on the attention list; a boolean on a person's page
notMeasuredarray of objectrequired
kindstringrequired
whystringrequired
clientErrorGroupsStaffClientErrorGroups
Current UTC calendar day, partial at observedAt. Measured reads all retained daily counters; it does not establish client reporting coverage. Data remains readable while collection is off. Truncation is explicit. Person detail selects groups containing that person, while counts remain global.
state"measured" | "unavailable"required
collectionEnabledboolean | nullrequired
windowobjectrequired
fromstring (date-time)required
untilstring (date-time)required
observedAtstring (date-time)required
minimumPeople3required
groupLimit50required
peopleLimit20required
groupsTruncatedbooleanrequired
groupsarray of StaffClientErrorGrouprequired
at most 50 items
idstringrequired
appstringrequired
appVersionstringrequired
osstringrequired
kindstringrequired
componentstringrequired
codestringrequired
affectedPeopleintegerrequired
min 0
errorsintegerrequired
min 0
fatalErrorsintegerrequired
min 0
lastAtstring (date-time)required
peoplearray of stringrequired
at most 20 items
peopleTruncatedbooleanrequired
reviewCoveragearray of StaffReviewCoverage
Rule-specific evaluated, unknown, excluded and fresh cohorts. Absent on older Gateway releases.
totalintegerrequired
min 0
freshintegerrequired
min 0
maturedintegerrequired
min 0
evaluatedintegerrequired
min 0
unknownintegerrequired
min 0
excludedintegerrequired
min 0
qualifiedintegerrequired
min 0
kindstringrequired
fromstring (date-time)required
untilstring (date-time)required
notestringrequired
403Not a person with a platform role who is one of Nexus's own people (`staff_required`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
503The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
429
rate_limit_error
Too many requests from this key in a minute
503
The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)
Company numbers over a window, customers next to Nexus: people, daily, weekly and monthly actives, the last 7 days' sign-up funnel and activation, today's sources and sign-in methods, sign-ups per day, and usage per day, model, app and organization (the top 50 by spend, the rest summed). Counts only, no content. Staff only; audited as staff.list_viewed.
People included in every figure. all preserves the existing view; customers excludes Nexus people, including their activity in other organizations.
x-nexus-staff-viewerheader · string
The dashboard's signed-in viewer, kept in the audit event as sent; never used for access
Responses
200OKapplication/json
windowStaffWindowrequired
Whole UTC days: from inclusive, until exclusive (the end of today).
fromstring (date-time)required
untilstring (date-time)required
daysintegerrequired
peopleobjectrequired
totalintegerrequired
customersintegerrequired
nexusintegerrequired
activeobjectrequired
People with a model call or an agent session today, in the last 7 days and in the last 30.
dauintegerrequired
wauintegerrequired
mauintegerrequired
activationobjectrequired
The share of the last 7 days' sign-ups with a model call or an agent session within a day; null with no sign-up.
withinOneDaySharenumber | nullrequired
min 0 · max 1
funnelarray of objectrequired
The last 7 days' sign-ups, step by step. The steps are not nested. desktop_signed_in is a Desktop sign-in or Desktop model call, chat_started a chat they created and chat_answered a chat with at least one answer.
The funnel's Desktop and chat records for the same sign-ups, from records the Gateway already keeps. Exits are not counted.
desktopInstallsintegerrequired
Distinct machines they signed in on Desktop, by the sign-in label's host.
chatsStartedintegerrequired
Chats they started in the last 7 days.
chatsAnsweredintegerrequired
Their chats with at least one answer, among those whose first call is in the last 7 days.
exitsNotMeasuredstringrequired
Why exits are not counted.
sourcesarray of object | nullrequired
Today's sign-ups by referrer and campaign, a referral, or direct. Null when today has sign-ups and none says where it came from (NEXUS_SIGNUP_SOURCE off).
sourcestringrequired
signUpsintegerrequired
sourcesNotCollectedintegerrequired
Today's sign-ups that say nothing of where they came from: no method, country, UTM value, referrer or referral. Never counted as direct.
methodsobjectrequired
Today's sign-ups: the share by sign-in method and with a work email; null with no sign-up. The method shares are null too when no sign-up today names its method (NEXUS_SIGNUP_SOURCE off).
googlenumber | nullrequired
min 0 · max 1
githubnumber | nullrequired
min 0 · max 1
emailnumber | nullrequired
min 0 · max 1
workDomainnumber | nullrequired
min 0 · max 1
signUpsobjectrequired
dailyarray of objectrequired
daystring (date)required
customersintegerrequired
nexusintegerrequired
totalsobjectrequired
customersintegerrequired
nexusintegerrequired
usageobjectrequired
dailyarray of objectrequired
daystring (date)required
customersStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
nexusStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
byModelarray of objectrequired
modelstringrequired
customersStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
nexusStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
byApparray of objectrequired
appstringrequired
customersStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
nexusStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
bySurfacearray of object
ByApp with Nexus for desktop's GPUI build apart (desktop-gpui, by the client it named). unknown is a record that kept no app.
surfacestringrequired
customersStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
nexusStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
byOrgarray of objectrequired
The top 50 organizations by spend.
orgIdstringrequired
kind"personal" | "company"required
namestring | nullrequired
class"customer" | "nexus"required
topModelstring | nullrequired
peopleintegerrequired
usageStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
otherOrgsobjectrequired
orgsintegerrequired
usageStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
subscriptionobject | nullrequired
What people's own plans reported; null where the store keeps no subscription days.
codeChatobjectrequired
codeMinutesintegerrequired
chatMinutesintegerrequired
estimatedbooleanrequired
timeInAppobject | nullrequired
Time in the apps over the window, everyone's, from the heartbeat. Null with none, as with NEXUS_COLLECT_ACTIVITY off.
avgSessionMinutesintegerrequired
Active minutes over app sessions
minutesintegerrequired
sessionsintegerrequired
One per person, organization, app and UTC day with an active minute
peopleintegerrequired
People with an active minute
codeSharenumberrequired
Share of the minutes on Code, two decimals
min 0 · max 1
chatSharenumberrequired
Share of the minutes on Chat, two decimals
min 0 · max 1
otherSharenumberrequired
Share of the minutes on every other surface, two decimals
min 0 · max 1
noCallYetintegerrequired
People with an active minute and no model call ever
cliDownloadsobject | null
The native CLI's downloads through this Gateway (GET /cli/nexus-<target>) over the window, the same in either scope. Aggregates only: no person, address, key or user agent. Null without a database.
totalintegerrequired
dailyarray of objectrequired
Every day of the window, 0 included.
daystring (date)required
countintegerrequired
byTargetarray of objectrequired
Most first.
targetstringrequired
countintegerrequired
byVersionarray of objectrequired
Most first.
versionstringrequired
countintegerrequired
ossInstallsobject | null
The open-source desktop app's active installs over the window, from its opt-in daily_active, and the live registered fork clients. The same in either scope: counts only, no install ID. Null without a database.
dailyarray of objectrequired
Every day of the window, 0 included.
daystring (date)required
installsintegerrequired
Installs that sent daily_active for the day
signedInintegerrequired
Of those, the installs signed in to Nexus Cloud that day
registeredForksintegerrequired
Registered fork clients not revoked, now
scope"all" | "customers"required
The scope applied to every figure in this response.
collectionStaffCollection
Current Gateway collection switches. Historical rows can remain available when a switch is disabled. A flag is true only when the signal is kept for everyone; a signal kept for organizations marked staff alone is false and listed in staffOnly.
activitybooleanrequired
agentPlanbooleanrequired
clientErrorsbooleanrequired
signupSourcebooleanrequired
staffOnlyarray of "activity" | "agentPlan" | "clientErrors"
The signals kept only for organizations marked as staff; omitted when none is.
retentionStaffRetentionrequired
Recorded account-creation cohorts backed by personal org.created audit evidence in the selected window, at most 90 days. Uses User.createdAt, never organization creation or guessed age. Current Company classification applies across all organizations. Erased identities stay in All; Customers reports unresolved erased classifications. Week 0 is activation during the creation week; Weeks 1–4 are later calendar weeks beginning Monday 00:00 UTC. Active means non-refused recorded model use or observed agent-session start/last heartbeat. No interpolation, app-open inference or future observations. Reuses existing bounded reads under the 20-second staff deadline. No collection watermark proves historical completeness; missing identities, dates and evidence remain explicit.
generatedAtstring (date-time)required
fromstring (date-time)required
untilstring (date-time)required
scope"all" | "customers"required
period"calendar_week_monday_utc"required
observedFromstring (date-time) | nullrequired
Earliest evidenced account-creation time in this bounded read and scope. Unresolved erased classifications do not establish Customers' boundary. Not a historical completeness watermark.
unlinkedSignUpEventsintegerrequired
Distinct personal organizations with an audit event but no usable identity/date. Cohort and scope are unknown, so all denominators are unavailable.
min 0
olderAccountEventsintegerrequired
Personal-organization events for accounts created before the read; never assigned new ages.
min 0
cohortsarray of StaffRetentionCohortrequired
fromstring (date-time)required
untilstring (date-time)required
cohortCompletebooleanrequired
knownSignUpsintegerrequired
Evidenced immutable identities in this scope, once across all organizations.
min 0
erasedSignUpsintegerrequired
Evidenced erased identities still included in this cohort.
min 0
missingEvidencePeopleintegerrequired
In-scope registry identities created in this week without personal audit evidence inside the read.
min 0
unclassifiedPeopleintegerrequired
Erased identities whose Customer/Nexus classification is unavailable for Customers.
Eligible registry identities with an unparseable recorded creation date. No cohort is assignable, so all denominators in this scope are unavailable.
min 0
peopleInsightsStaffPeopleInsightsrequired
Current-scope operational aggregates. Unknown and erased identities are separate from known people. Rankings carry no person identity.
newDailyarray of StaffPeopleDayrequired
daystring (date)required
customersintegerrequired
min 0
nexusintegerrequired
min 0
unknownintegerrequired
min 0
activeDailyarray of StaffPeopleDayrequired
daystring (date)required
customersintegerrequired
min 0
nexusintegerrequired
min 0
unknownintegerrequired
min 0
activeWeeklyarray of StaffPeopleWeekrequired
fromstring (date-time)required
untilstring (date-time)required
completebooleanrequired
customersintegerrequired
min 0
nexusintegerrequired
min 0
unknownintegerrequired
min 0
byOrgarray of StaffOrgPeoplerequired
orgIdstringrequired
namestringrequired
class"customer" | "nexus"required
membersintegerrequired
min 0
activeintegerrequired
min 0
unresolvedMembersintegerrequired
min 0
otherOrgsintegerrequired
min 0
personalOnlyobjectrequired
customersobjectrequired
membersintegerrequired
min 0
activeintegerrequired
min 0
nexusobjectrequired
membersintegerrequired
min 0
activeintegerrequired
min 0
topBySpendarray of StaffTopPersonrequired
at most 10 items
rankintegerrequired
min 1
class"customer" | "nexus"required
orgsintegerrequired
min 0
usageStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
topByCallsarray of StaffTopPersonrequired
at most 10 items
rankintegerrequired
min 1
class"customer" | "nexus"required
orgsintegerrequired
min 0
usageStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
unattributedobjectrequired
customersStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
nexusStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
unknownPersonStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
erasedPersonStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
unknownCreationDatePeopleintegerrequired
min 0
cohortFunnelStaffCohortFunnelrequired
Monday UTC cohorts. First accepted means a non-refused call on days 0 through 6. Day two is exactly the UTC date two days after creation, with a prior accepted call. Observed counts are lower bounds while follow-up remains open. Each stage has a final denominator only after its own calendar dates and evidence are complete.
400`days` is out of range (`invalid_days`) or `scope` is unknown (`invalid_scope`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
403Not a person with a platform role who is one of Nexus's own people (`staff_required`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
503The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
400
`days` is out of range (`invalid_days`) or `scope` is unknown (`invalid_scope`)
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
429
rate_limit_error
Too many requests from this key in a minute
503
The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)
Tokens by model over chosen UTC days, every organization's, customers next to Nexus: calls, prompt and completion tokens and spend per model, over the range and per day. Refused calls add nothing. Counts only, no content. Staff only; audited as staff.list_viewed.
The last UTC day, YYYY-MM-DD, inclusive; default today. At most 90 days after from, and not after today
scopequery · "all" | "customers"
People included. all counts everyone; customers excludes Nexus people, including their calls in other organizations.
x-nexus-staff-viewerheader · string
The dashboard's signed-in viewer, kept in the audit event as sent; never used for access
Responses
200OKapplication/json
windowStaffWindowrequired
Whole UTC days: from inclusive, until exclusive (the end of today).
fromstring (date-time)required
untilstring (date-time)required
daysintegerrequired
scope"all" | "customers"required
modelsarray of objectrequired
Most tokens first.
modelstringrequired
customersStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
nexusStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
dailyarray of objectrequired
Every day of the window, a day with no call included.
daystring (date)required
customersStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
nexusStaffUsagerequired
Settled, failed and released calls. Refused calls are counted apart. spendUsd is the ledger's cost at the provider, as a decimal string, and null when no call was made.
callsintegerrequired
promptTokensintegerrequired
completionTokensintegerrequired
tokensintegerrequired
spendUsdstring | nullrequired
pattern ^-?[0-9]+\.[0-9]{6}$
400`from` or `to` is missing, malformed, reversed, after today or more than 90 days apart (`invalid_range`), or `scope` is unknown (`invalid_scope`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
403Not a person with a platform role who is one of Nexus's own people (`staff_required`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
503The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
400
`from` or `to` is missing, malformed, reversed, after today or more than 90 days apart (`invalid_range`), or `scope` is unknown (`invalid_scope`)
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
429
rate_limit_error
Too many requests from this key in a minute
503
The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)
The live view: people active in the last 5 minutes and by app, people active today, running agent sessions, tokens and failed calls a minute, and today's sign-ups with how they arrived (no email, no id). Staff only; audited as staff.list_viewed.
The dashboard's signed-in viewer, kept in the audit event as sent; never used for access
Responses
200OKapplication/json
generatedAtstring (date-time)required
activeNowobjectrequired
People with a model call, or an agent session started in the last 24 hours, heard in the last 5 minutes.
peopleintegerrequired
byApparray of objectrequired
appstringrequired
peopleintegerrequired
activeTodayintegerrequired
sessionsRunningintegerrequired
Running agent sessions that started in the last 24 hours.
tokensPerMinuteintegerrequired
errorsPerMinutenumberrequired
Failed model calls a minute over the last 5 minutes, one decimal.
min 0
signUpsobjectrequired
lastHourintegerrequired
todayintegerrequired
latestarray of objectrequired
Today's 10 latest sign-ups: how they arrived, and the ids that link the person and their referrer, never a name or an email.
atstring (date-time)required
userIdstring | nullrequired
The person who signed up, for a link to their staff page; null when the event names nobody.
referrerUserIdstring | nullrequired
The person whose referral code the sign-up carried, from referrals; null for a campaign's code or no code.
methodstring | nullrequired
referrerstring | nullrequired
campaignstring | nullrequired
countrystring | nullrequired
workDomainbooleanrequired
inAppobject | nullrequired
People whose app counted an active minute in the last 2 minutes, from the heartbeat. Null with nobody, as with NEXUS_COLLECT_ACTIVITY off.
peopleintegerrequired
byApparray of objectrequired
People per app, most first
appstringrequired
peopleintegerrequired
noCallYetintegerrequired
Of them, people with no model call ever
collectionStaffCollection
Current Gateway collection switches. Historical rows can remain available when a switch is disabled. A flag is true only when the signal is kept for everyone; a signal kept for organizations marked staff alone is false and listed in staffOnly.
activitybooleanrequired
agentPlanbooleanrequired
clientErrorsbooleanrequired
signupSourcebooleanrequired
staffOnlyarray of "activity" | "agentPlan" | "clientErrors"
The signals kept only for organizations marked as staff; omitted when none is.
403Not a person with a platform role who is one of Nexus's own people (`staff_required`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
503The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
429
rate_limit_error
Too many requests from this key in a minute
503
The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)
Customer ledger fees, billed usage and credits for every closed billing day, with recurring subscriptions from Stripe. Missing sources carry errors. Staff only; audited before the read.
The dashboard's signed-in viewer, kept in the audit event as sent; never used for access
Responses
200OKapplication/json
scope"customers"required
billingFromstring (date)required
windowStaffWindowrequired
Whole UTC days: from inclusive, until exclusive (the end of today).
fromstring (date-time)required
untilstring (date-time)required
daysintegerrequired
provisionalbooleanrequired
ledgerErrorobject | nullrequired
codestringrequired
reasonstringrequired
dailyarray of objectrequired
daystring (date)required
feeUsdstring | nullrequired
Exact USD; null on an empty or unknown financial day.
pattern ^\d+\.\d{6}$
billedUsdstring | nullrequired
Exact USD; null on an empty or unknown financial day.
pattern ^\d+\.\d{6}$
creditsUsdstring | nullrequired
Exact USD; null on an empty or unknown financial day.
pattern ^\d+\.\d{6}$
freeStartUsdstring | nullrequired
Exact USD; null on an empty or unknown financial day.
pattern ^\d+\.\d{6}$
ledgerErrorstring | nullrequired
recurringobjectrequired
mrrUsdstring | nullrequired
Exact monthly USD from mapped customer subscriptions; null when Stripe or a subscription price is unavailable.
pattern ^\d+\.\d{6}$
contractedArrUsdstring | nullrequired
Exact annual USD from mapped customer subscriptions; null when Stripe, subscription prices, or signed contract prices are unavailable.
pattern ^\d+\.\d{6}$
subscriptionsintegerrequired
min 0
unpricedContractsintegerrequired
min 0
recurringErrorstring | nullrequired
400Query windows are unsupported (`unsupported_window`).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
403Not a person with a platform role who is one of Nexus's own people (`staff_required`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
503Both money sources are unconfigured (`executive_not_configured`), audit failed (`staff_audit_unavailable`), or the read exceeded 20 s (`staff_read_timeout`).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
Query windows are unsupported (`unsupported_window`).
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
Both money sources are unconfigured (`executive_not_configured`), audit failed (`staff_audit_unavailable`), or the read exceeded 20 s (`staff_read_timeout`).
The dashboard's signed-in viewer, kept in the audit event as sent; never used for access
Responses
200OKapplication/json
scope"customers"required
windowStaffWindowrequired
Whole UTC days: from inclusive, until exclusive (the end of today).
fromstring (date-time)required
untilstring (date-time)required
daysintegerrequired
modelsarray of ExecutiveModelDays | nullrequired
modelstringrequired
openWeightsboolean | nullrequired
dailyarray of ExecutiveCountDayrequired
daystring (date)required
valueintegerrequired
min 0
tokensErrorExecutiveSourceError | nullrequired
signUpsarray of ExecutiveCountDay | nullrequired
daystring (date)required
valueintegerrequired
min 0
signUpsErrorExecutiveSourceError | nullrequired
customersToDateintegerrequired
min 0
organizationsarray of ExecutiveCountDayrequired
daystring (date)required
valueintegerrequired
min 0
organizationsToDateintegerrequired
min 0
adoptionExecutiveAdoption | nullrequired
adoptionErrorExecutiveSourceError | nullrequired
provisionalbooleanrequired
400Custom windows or histories longer than 3660 days are unsupported.application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
403Not a person with a platform role who is one of Nexus's own people (`staff_required`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
502The customer classification or organization history could not be read.application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
503The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
Custom windows or histories longer than 3660 days are unsupported.
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
429
rate_limit_error
Too many requests from this key in a minute
502
The customer classification or organization history could not be read.
503
The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)
The dashboard's signed-in viewer, kept in the audit event as sent; never used for access
Responses
200OKapplication/json
campaignsarray of CampaignCoderequired
labelstringrequired
The campaign's name: lowercase letters, digits and inner hyphens
codestringrequired
<label>-<random tail>
linkstringrequired
The sign-up link that carries the code: /r/<code> at the site's root
maxUsesintegerrequired
min 1
usedintegerrequired
min 0
paidintegerrequired
How many of the people it brought in have paid: a credit purchase in their personal organization, of any amount. A later refund does not lower it
min 0
leftintegerrequired
How many more people it admits now: 0 once revoked or past its end
min 0
expiresAtstring (date-time) | nullrequired
When it stops admitting people; null with no end
revokedbooleanrequired
403Not a person with a platform role who is one of Nexus's own people (`staff_required`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
503The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
429
rate_limit_error
Too many requests from this key in a minute
503
The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)
Make a campaign code: <label>-<random tail>, admitting uses people until until. It earns no referral reward. Staff only; audited as invite.created in the platform audit stream, with the caller as its actor.
The campaign's name, trimmed and lowercased: a DNS label of at most 40 characters
max length 40
usesintegerrequired
How many people it admits
min 1
untilstring | null
Its end: an ISO time, or a YYYY-MM-DD day through its end in UTC. Absent: no end
Responses
201Createdapplication/json
labelstringrequired
The campaign's name: lowercase letters, digits and inner hyphens
codestringrequired
<label>-<random tail>
linkstringrequired
The sign-up link that carries the code: /r/<code> at the site's root
maxUsesintegerrequired
min 1
usedintegerrequired
min 0
paidintegerrequired
How many of the people it brought in have paid: a credit purchase in their personal organization, of any amount. A later refund does not lower it
min 0
leftintegerrequired
How many more people it admits now: 0 once revoked or past its end
min 0
expiresAtstring (date-time) | nullrequired
When it stops admitting people; null with no end
revokedbooleanrequired
400The body is not valid (`invalid_invite`), the label is not a lowercase DNS label of at most 40 characters, `uses` is 0, or `until` is not a time or has passedapplication/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
403Not a person with a platform role who is one of Nexus's own people (`staff_required`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
409The label has a campaign code already, revoked or not (`invite_exists`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
400
invalid_request_error
A field is missing or not valid; the message names it
400
The body is not valid (`invalid_invite`), the label is not a lowercase DNS label of at most 40 characters, `uses` is 0, or `until` is not a time or has passed
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
409
The label has a campaign code already, revoked or not (`invite_exists`)
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
The dashboard's signed-in viewer, kept in the audit event as sent; never used for access
Responses
200OKapplication/json
labelstringrequired
The campaign's name: lowercase letters, digits and inner hyphens
codestringrequired
<label>-<random tail>
linkstringrequired
The sign-up link that carries the code: /r/<code> at the site's root
maxUsesintegerrequired
min 1
usedintegerrequired
min 0
paidintegerrequired
How many of the people it brought in have paid: a credit purchase in their personal organization, of any amount. A later refund does not lower it
min 0
leftintegerrequired
How many more people it admits now: 0 once revoked or past its end
min 0
expiresAtstring (date-time) | nullrequired
When it stops admitting people; null with no end
revokedbooleanrequired
403Not a person with a platform role who is one of Nexus's own people (`staff_required`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
404No campaign code has this label (`unknown_invite`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
503The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
not_found
Nothing matches the path in your organization
404
No campaign code has this label (`unknown_invite`)
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).
429
rate_limit_error
Too many requests from this key in a minute
503
The read could not be audited (`staff_audit_unavailable`) or took longer than 20 s (`staff_read_timeout`)
Revoke a campaign code: it admits no one after. Revoking twice answers the same and writes one event. Staff only; audited as invite.revoked in the platform audit stream, with the caller as its actor.
The campaign's name: lowercase letters, digits and inner hyphens
codestringrequired
<label>-<random tail>
linkstringrequired
The sign-up link that carries the code: /r/<code> at the site's root
maxUsesintegerrequired
min 1
usedintegerrequired
min 0
paidintegerrequired
How many of the people it brought in have paid: a credit purchase in their personal organization, of any amount. A later refund does not lower it
min 0
leftintegerrequired
How many more people it admits now: 0 once revoked or past its end
min 0
expiresAtstring (date-time) | nullrequired
When it stops admitting people; null with no end
revokedbooleanrequired
403Not a person with a platform role who is one of Nexus's own people (`staff_required`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
404No campaign code has this label (`unknown_invite`)application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
429Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).application/json
errorobject
messagestringrequired
typestringrequired
The class of the error: invalid_request_error (400, 405, 408, 409, 413, 422, 426), authentication_error (401), billing_error (402), permission_error (403), not_found (404), rate_limit_error (429), or a 5xx type such as server_error.
codestring
Stable: branch on it, not on message. Every 4xx carries one: its site's own code, else the default for its status (400 invalid_request, 401 unauthenticated, 402 payment_required, 403 forbidden, 404 not_found, 405 method_not_allowed, 408 request_timeout, 409 conflict, 422 unprocessable, 429 rate_limited, any other 4xx invalid_request). A 502 carries its site's code, else upstream_error. Any other 5xx carries one only when its site sets it. The agent routes (/v1/anthropic/, /v1/openai/) answer in the provider's shape.
paramstring
model when the error is a model refusal (a code starting with model_); absent otherwise.
nexusobject
Details of the error, when it has any: the policy rule of a model refusal, the seconds of a 408.
minimumstring
On a 426 cli_too_old only: the oldest nexus CLI version Gateway supports.
Errors
Status
Code
When
401
authentication_error
No key, or a key Gateway does not accept
403
role_required
Your role does not have this permission
404
not_found
Nothing matches the path in your organization
404
No campaign code has this label (`unknown_invite`)
429
Over the caller's rate limit (`rate_limit_error`): retry after `Retry-After` seconds. Also a 429 `concurrency_limit`, with `Retry-After: 1`, when the organization already has its most requests in flight (off unless Gateway sets a cap).