Docs
Have a token? Manage tokens in the console
GET
/v1/me

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.

Authorization

bearer
headerAuthorizationBearer <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.

Response Body

The principal the gateway verified

application/json
  1. response

GET /v1/me body.

client_id?|

The OAuth client the call came through, if any.

email?|

E-mail address, when the token carries one (a person's ID token does).

key?|null
kind*string

person, client or service.

name?|

Display name, when the token carries one.

org?|

Organisation, when minted.

role?|

Role, when the consent step stamped one.

scopes*array<string>

Granted scopes.

subject*string

The sub claim.

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.me();  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.

{  "client_id": "string",  "email": "string",  "key": {    "id": "string",    "parent": "string"  },  "kind": "string",  "name": "string",  "org": "string",  "role": "string",  "scopes": [    "string"  ],  "subject": "string"}