Get Account
Get Account
GET
/api/portal/v1/admin/getAccount
Description
Return a single account by id.
Authentication
This endpoint requires a Bearer token in the Authorization header.
- Authorization:
Bearer <token>. A valid Portal API session token or API token belonging to an administrator.
Query Parameters
- id: The
idof the account to retrieve. Must be a positive integer.
Response Schema
The endpoint returns the account record. This is the same shape as an entry from List Accounts.
id: The unique identifier for the account.name: The human-readable account name.planInstance: The identifier of the chart instance the account is bound to, ornullif unassigned.metadata: An object of arbitrary key-value metadata associated with the account.createdAt: Timestamp when the account was created, in milliseconds since unix epoch.
Error Responses
- 400 Bad Request: The
idquery parameter is missing or is not a positive integer. - 401 Unauthorized: The
Authorizationheader is missing or the token is not valid. - 403 Forbidden: The authenticated user is not an administrator.
- 404 Not Found: No account exists with the given
id.
Example Request
GET https://<your-host>:9909/api/portal/v1/admin/getAccount?id=42
Authorization: Bearer <token>
Example Response
Status Code: 200 OK
Response Body:
{
"id": 42,
"name": "Zydro Marine",
"planInstance": "oem",
"metadata": {},
"createdAt": 1736942400000
}