GET
Who is acting, in which organization, with which role

Authorizations

Authorization
string
header
required

Authorization: Bearer twk_<prefix>_<secret>.

The prefix is public and safe to log: it is what identifies which credential leaked. The secret is never logged, never returned after creation, and stored only as a SHA-256 hash.

Response

The caller's session context.

permissions
string[]
required

What this session may do in the organization: the role's permissions, narrowed by a custom role when one is assigned. The same answer the server's checks give.

user
object
required
organization
object
required
role
enum<string>
required
Available options:
owner,
admin,
member,
viewer
features
object
required
brand
object

The organization's runtime brand, present only when one applies (Enterprise custom_branding). NHI Security's console renders it. Presentation only.