The account the call counts against, with its plan; for a key, also the key's name and when it was last used.
Needs scope account:read.
bearerAuthorizationBearer <token>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (docs.inorbit.hr). The gateway verifies it; the audience is iohr-api.
iohr.accounts.v1.GetMeResponse
application/json- response
iohr.accounts.v1.GetMeResponse
account?iohr.accounts.v1.Account
email*stringemail_verified*booleankey?iohr.accounts.v1.Key
name*stringstub*booleansubject*stringteams*array<>user_id*stringimport { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { const { value } = await api.accounts.getMe(); console.log(value);} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`);}npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.
{ "account": { "created_at": "string", "erase_after": "string", "id": "string", "kind": "string", "name": "string", "plan": "string", "probe": true, "role": "string", "slug": "string", "status": "string" }, "email": "string", "email_verified": true, "key": { "client_id": "string", "created_at": "string", "created_by": "string", "expires_at": "string", "id": "string", "kind": "string", "last_used_at": "string", "name": "string", "revoked_at": "string", "scopes": [ "string" ], "secret_hint": "string" }, "name": "string", "stub": true, "subject": "string", "teams": [ { "created_at": "string", "erase_after": "string", "id": "string", "kind": "string", "name": "string", "plan": "string", "probe": true, "role": "string", "slug": "string", "status": "string" } ], "user_id": "string"}Get the caller GET
Who the gateway verified for this call: the subject, its kind (`client` for a key, `person` for a person), the scopes, and under `org` the account the call counts against. The first call to make with a new key. Needs scope `identity:read`.
Get what the account may use GET
The account's plan and the features and extensions it includes, with the reason: the plan, or every feature for InOrbit's own accounts and platform admins. Members, the account's keys and tokens with `account:read` may read it; anyone else gets not found. Needs scope `account:read`.