Cloud Internal

Get organization portal token

Get a subject token for the organization to access OpenMeter usage.

get/api/v1/organization/portal

Request

  • Base URL
    https://openmeter.cloud (the document declares no server; this is the origin it was published from)
  • Auth
    • HTTP bearer
    • or API key in cookie __session

Response

The request has succeeded.

allowedMeterSlugsstring[]

Optional, if defined only the specified meters will be allowed.

createdAtstring date-time

RFC3339 formatted date-time string in UTC.

expiredboolean
expiresAtstring date-time

RFC3339 formatted date-time string in UTC.

idstring

ULID (Universally Unique Lexicographically Sortable Identifier).

subjectstring required
tokenstring

The token is only returned at creation.

Example response

{
  "allowedMeterSlugs": [
    "tokens_total"
  ],
  "createdAt": "2023-01-01T01:01:01.001Z",
  "expiresAt": "2023-01-01T01:01:01.001Z",
  "id": "01G65Z755AFWAKHE12NY0CQ9FH",
  "subject": "customer-1",
  "token": "om_portal_IAnD3PpWW2A2Wr8m9jfzeHlGX8xmCXwG.y5q4S-AWqFu6qjfaFz0zQq4Ez28RsnyVwJffX5qxMvo"
}

Changes

No recorded changes to this operation across all 2 revisions of this API.