Skip to main content
GET
Read the current session

Authorizations

Authorization
string
header
required

Session token as Authorization: Bearer (the CLI and scripts).

Query Parameters

orgSlug
string

Scope the answer to this organization (the one the Portal URL names). Omitted: the session's active organization

Minimum string length: 1
Example:

"acme-corp"

workspaceSlug
string

With orgSlug: also resolve this workspace and the caller's effective role in it

Minimum string length: 1
Example:

"eu-clients"

Response

object | null

The session, or null when anonymous

The session, or null when the caller is not signed in

user
object
required
session
object
required
organization
object | null
required

The organization named by orgSlug (null when no slug was given or the caller is not a member of it)

workspace
object | null
required

The workspace named by workspaceSlug inside that organization, or null when no slug was given or the caller cannot view it