Administration
The Administration endpoints manage the users, accounts, and API tokens of an entire OEM deployment. The rest of the Portal API operates within the caller’s own account; these endpoints operate across every account on the instance.
Admin-Only
All Administration endpoints are mounted under the /api/portal/v1/admin/ path prefix. A personal access token (PAT) is required. A portal session token is also accepted. Tile API tokens (api_tokens) are rejected.
Every request is also checked for administrator privileges. A PAT or session that belongs to a non-administrator is rejected with 403 Forbidden.
The default admin user provisioned at first startup is an administrator. See Authentication for session tokens and personal access tokens.
Accounts and Users
An OEM deployment is organized into accounts. Each account owns one or more users and a set of API tokens, and is bound to a chart instance through its planInstance. Most administrative tasks follow the same shape: create an account, add users to it, and mint API tokens for those users so their applications can call the Core API.
Deletion is Asynchronous
Deleting a user or an account is asynchronous. The Portal API returns a jobId and enqueues a background job on the chart instance; that job removes the associated data and the record itself. Use the Jobs endpoints to follow the cleanup job to completion.