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
| Field | Type | Required | Description |
|---|---|---|---|
| tenant | object | yes | |
| tenant. | string | yes | UUID. |
| tenant. | string | yes | |
| space | object | yes | |
| space. | string | yes | UUID. |
| space. | string | yes | |
| principal | object | yes | |
| principal. | string | yes | One of: user, api_key. |
| principal. | string | yes | UUID. |
| scopes | array | yes | |
| aiMode | string | no | Current 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"
]
}
}