API keys

Who am I

The credential this request was made with: the person holding it, the account and role it acts with, the workspace it is confined to (null for an account-wide key), and the key itself.

The role is the holder’s role now, not when the key was minted. A suspended account may still call this, and account.status says so.

A workspace-scoped key is not told its holder’s email address or name, nor the account’s name, because such a key may be in an end customer’s hands: each is null. Its account.plan is null too; GET /account reports the plan and its ceilings.

Requires the viewer role or higher.

get/whoami

Request

  • Base URL: https://app.mandala.computer/api/v1
  • URL: https://app.mandala.computer/api/v1/whoami
  • Auth: HTTP bearer

Response

The credential and its holder.

rolestring required

owner, member or viewer: the holder’s role on the account now, which is what the key acts with.

Changes

No recorded changes to this operation across all 1 revision of this API.