HigherData

HigherData / Tool

account.whoami

Returns the tenant, space, and principal for this request.

Scopes: None. Any authenticated caller can use this tool.

This tool reads. It does not write.

REST: POST /api/v1/tools/account.whoami?execute=false. The same call is POST /api/v1/account/whoami?execute=false.

MCP tool name: account_whoami. It is in the default MCP catalog when your scopes allow it.

Input

No fields.

Output

account.whoami output
FieldTypeRequiredDescription
tenantobjectyes
tenant.idstringyesUUID.
tenant.slugstringyes
spaceobjectyes
space.idstringyesUUID.
space.slugstringyes
principalobjectyes
principal.typestringyesOne of: user, api_key.
principal.idstringyesUUID.
scopesarrayyes
aiModestringnoCurrent AI key source; no key values or metadata are exposed. One of: byok, platform, none.

Request

curl -sS -X POST "https://higherdata.io/api/v1/tools/account.whoami?execute=false" \
  -H "Authorization: Bearer hd_example_replace_me" \
  -H "Content-Type: application/json" \
  -d '{}'

SDK

import { HigherData } from "higherdata-sdk";

const higherdata = new HigherData({
  apiKey: "hd_example_replace_me",
  apiUrl: "https://higherdata.io",
});

const result = await higherdata.call("account.whoami", {}, { execute: false });

Example

{
  "input": {},
  "output": {
    "tenant": {
      "id": "22222222-2222-4222-8222-222222222222",
      "slug": "acme"
    },
    "space": {
      "id": "33333333-3333-4333-8333-333333333333",
      "slug": "demo"
    },
    "principal": {
      "type": "api_key",
      "id": "44444444-4444-4444-8444-444444444444"
    },
    "scopes": [
      "data:read",
      "data:write"
    ]
  }
}