Documentation / API
Admin
Instance administrator endpoints: list every account and organization with their size and usage, override an organization's daily message quota and enable the AI assistant for an organization.
Who is an instance administrator
Instance administrators are the accounts whose email is listed in the server setting OSC_ADMIN_EMAILS (comma-separated). They are not an organization role: GET /auth/me returns "isAdmin": true for them, and the web UI shows an Administration link. Any other signed-in user gets 403 admin_only on these endpoints.
Paths are relative to https://apiv1.opensensorcloud.com/api/v1.
GET /admin/users
Every account of the instance, read-only:
[
{
"id": "bd6fc07f-…", "email": "marie@example.com", "name": "Marie Martin", "createdAt": "2026-10-02T08:12:00.000Z",
"orgs": [ { "name": "Greenhouses", "slug": "greenhouses", "role": "owner", "devices": 12 } ]
}
]
GET /admin/orgs
Every organization, with its size, today's usage and effective quota:
[
{
"id": "7dd446ca-…", "slug": "demo", "name": "Démo", "members": 3, "devices": 173,
"messagesToday": 7011, "msgPerDay": 50000000, "msgPerDayOverride": true, "aiEnabled": false,
"points": 2295894, "estimatedBytes": 629145600, "deleting": false
}
]
messagesToday counts accepted messages since midnight UTC. msgPerDayOverride is true when the quota was set for this organization rather than inherited from the instance default (ORG_MAX_MSG_PER_DAY). aiEnabled: the AI assistant is enabled for the organization. points and estimatedBytes follow the same method and caveats as GET /orgs/{orgId}/stats (Auth & organizations). deleting: the organization was deleted and its data is being removed in the background; it leaves the list when that is done.
PATCH /admin/orgs/{orgId}
Changes the organization's daily message quota and/or enables its AI assistant; only the given fields change (at least one):
{ "msgPerDay": 500000, "aiEnabled": true }
msgPerDay: 1 to 1,000,000,000, or null to go back to the instance default. The ingestion services see the change within about a minute. Recorded in the organization's audit log as org.quota_update.
aiEnabled: enables (true) or disables (false) the "Ask my data" assistant for the organization. Organizations are off by default, and their own owners and admins cannot change it. It only takes effect if the instance has an AI key (ANTHROPIC_API_KEY). Recorded in the organization's audit log as org.ai_enabled or org.ai_disabled, with the administrator as author.
204; 404 for an unknown organization.
In the web UI, the Administration page has an AI assistant switch per organization, applied at once. The assistant's own endpoints: AI assistant.