admin
Who uses the hub, for the hub's own operators. Only a hub admin signed in to the web app may call these. An API key is 403. Anyone else is 404.
GET / v1/ admin/ users
Everyone with an account on this hub
The people with an account on this hub, for its operators. Only a hub admin signed in to the web app may call it. A hub admin is a person the deployment names by id, or an owner of an organization it names by id. Handles and slugs never count, since a freed name can be taken by anyone. An API key of any scope is 403. Anyone else, signed in or not, is 404.
Each call is recorded in the audit log as admin.users.view.
email and sign_in_methods come from the sign-in provider, Clerk. They are read in one batched call per page and cached for five minutes. When Clerk is not configured or does not answer, clerk says so and sign_in_methods is null. email then falls back to the copy the sign-in token carried, if any (email_source: hub).
Counts and spend_month_usd cover each person's own account. Work owned by an organization counts toward the organization. spend_month_usd is what the calendar month (UTC) recorded: Lucen cloud jobs, the agent, and Coach and planner calls.
last_active_at is the person's last authenticated request, stamped at most every five minutes. Keys the hub minted for a robot, a hosted job or an agent turn do not count.
Parameters
| Name | In | Type | Description |
|---|---|---|---|
q | query | string | Matches the handle, the display name and the e-mail address, ignoring case. With Clerk configured, Clerk's own user search is asked too. So an address only Clerk holds still matches. |
sort | query | AdminUserSort |
|
method | query | string | Only people who can sign in this way, as |
limit | query | integer | Page size. |
cursor | query | string | Opaque cursor from the previous page's |
Responses
| Status | Description | Body |
|---|---|---|
200 | A page of people. | AdminUserPage |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
422 | Request failed validation. | Problem |
GET / v1/ admin/ stats
How many people use the hub, and what they made
The hub in numbers, for its operators: people, sign-ups per day for 30 days, what exists, and this month's spend. Access is the same as listAdminUsers. Every number is one SQL aggregate over the hub's own tables, and nothing is read from Clerk.
Days are whole days in UTC. A 7-day window is today and the six days before it. "Active" means at least one authenticated request in the window, as AdminUser.last_active_at records it.
Responses
| Status | Description | Body |
|---|---|---|
200 | The hub's numbers. | AdminStats |
401 | Missing or invalid credentials. | Problem |
403 | Authenticated but not allowed (visibility, membership or scope). | Problem |
404 | Resource not found (or hidden from the caller). | Problem |
Schemas (11)
The schemas these operations reach before any other tag’s do. A type that links elsewhere is rendered on that tag’s page.
AdminUserSort
AdminUserPage
| Field | Type | Description |
|---|---|---|
items | array of AdminUser | |
next_cursor | string | null | |
total | integer | People matching |
clerk | AdminClerkStatus |
AdminStats
| Field | Type | Description |
|---|---|---|
generated_at | string (date-time) | |
users | AdminUserStats | |
signups_per_day | array of AdminSignupDay | Thirty days, oldest first, today last. A day with no sign-ups is a zero. |
totals | AdminHubTotals | |
spend_month | AdminSpendMonth |
AdminUser
| Field | Type | Description |
|---|---|---|
id | Id | |
handle | Slug | |
display_name | string | null | |
avatar_url | string | null | |
created_at | string (date-time) | When the hub first saw the person, at their first sign-in. |
last_active_at | string (date-time) | null (date-time) | The last authenticated request, stamped at most every five minutes. Null when the hub has never recorded one. |
orgs | array of AdminUserOrg | |
counts | AdminUserCounts | |
spend_month_usd | number | What the person's own account recorded this calendar month (UTC): Lucen cloud jobs, the agent, and Coach and planner calls. |
email | string | null | The primary e-mail address. |
email_source | string | null |
|
sign_in_methods | array of string | null | How the person can sign in, from Clerk: an OAuth provider ( |
clerk_user_id | string | null | |
clerk_dashboard_url | string (uri) | null (uri) | The person's page in the Clerk dashboard. |
clerk_status | string |
|
AdminClerkStatus
What the sign-in provider said for this page. ok: Clerk answered. unconfigured: this deployment has no Clerk secret key. unreachable: Clerk did not answer in time, or refused the key.
| Field | Type | Description |
|---|---|---|
status | string | |
detail | string | null | One sentence for the page when |
AdminUserStats
| Field | Type | Description |
|---|---|---|
total | integer | |
new_today | integer | |
new_7d | integer | |
new_30d | integer | |
active_7d | integer | |
active_30d | integer |
AdminSignupDay
| Field | Type | Description |
|---|---|---|
day | string (date) | |
count | integer |
AdminHubTotals
| Field | Type | Description |
|---|---|---|
robots | integer | |
policies | integer | |
datasets | integer | |
runs | integer | Training runs, plans excluded. |
devices_online | integer | Connected robots heard from within |
online_window_s | integer |
AdminSpendMonth
What every account on the hub recorded this calendar month (UTC). cloud_usd is Lucen cloud jobs, agent_usd the agent's AI model calls and sandbox, model_calls_usd Coach and planner calls.
| Field | Type | Description |
|---|---|---|
month | string | |
total_usd | number | |
cloud_usd | number | |
agent_usd | number | |
model_calls_usd | number |
AdminUserOrg
| Field | Type | Description |
|---|---|---|
slug | Slug | |
display_name | string | null | |
role | string |
AdminUserCounts
What the person's own account holds. policies are model repos. runs are training runs, plans excluded. devices are connected robots that were not disconnected.
| Field | Type | Description |
|---|---|---|
robots | integer | |
policies | integer | |
datasets | integer | |
runs | integer | |
devices | integer |