POST
/
public
/
v1
/
query
/
whoami
curl --request POST \
  --url https://api.turnkey.com/public/v1/query/whoami \
  --header 'Content-Type: application/json' \
  --header 'X-Stamp: <api-key>' \
  --data '{
  "organizationId": "<string>"
}'
{
  "organizationId": "<string>",
  "organizationName": "<string>",
  "userId": "<string>",
  "username": "<string>"
}

Authorizations

X-Stamp
string
header
required

Body

application/json
organizationId
string
required

Unique identifier for a given Organization. If the request is being made by a WebAuthN user and their Sub-Organization ID is unknown, this can be the Parent Organization ID; using the Sub-Organization ID when possible is preferred due to performance reasons.

Response

200 - application/json
A successful response.
organizationId
string
required

Unique identifier for a given Organization.

organizationName
string
required

Human-readable name for an Organization.

userId
string
required

Unique identifier for a given User.

username
string
required

Human-readable name for a User.