Account settings
Get the account
Have a token? Manage tokens in the console
GET
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.
bearerheader
AuthorizationBearer <JWT>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.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*stringpreferences?iohr.accounts.v1.AccountPreferences
stub*booleansubject*stringteams*array<>user_id*stringSDK
HTTP
import { 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})`); process.exitCode = 1;}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.
Example Response
{ "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", "preferences": { "default_account_id": "string", "last_account_id": "string", "open_account_id": "string", "open_reason": "string", "updated_at": "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"}