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 id of 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, or null if 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 id query parameter is missing or is not a positive integer.
  • 401 Unauthorized: The Authorization header 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
}
VectorCharts.com © 2024, Zydro Marine Technologies, Inc. · vectorcharts.com