Resolve the caller's accounts
whoamiWorks with an OAuth2 bearer token (user principal). Plain API keys are account-scoped and get 403 here; then use the account id from Account settings in the Docuflex app and pass it as account_id or x-docuflex-account.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "whoami"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Docuflex API key (dfx_live_...). Optional if sent as the x-docuflex-api-key header. | |
| account_id | No | Docuflex account id. Optional if sent as x-docuflex-account or if the key belongs to exactly one account. |