get_current_user
Get the signed-in user's account details, plan and settings. Needs a login session: call start_login, then wait_for_login until it reports success.
Instructions
Get the signed-in user's account details, plan and settings. Needs a login session: call start_login, then wait_for_login until it reports success. An API key alone cannot read this — for the key's own account use get_self_api_key or get_settings.
ACCESS: needs a Proof account, signed in: call start_login, show the user its challenge, then wait_for_login, then call this tool again. An API key alone does NOT open this tool.
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": "get_current_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | MongoDB ObjectId | |
| tenant | Yes | ||
| deletion | Yes | Where the account stands with deletion; the dashboard routes a locked session to the lock page from it. | |
| avatar_url | Yes | The primary sub-account's avatar, else any sub-account's; null when none has one. | |
| created_at | Yes | ||
| login_email | No | The email this session signed in with; absent for a phone sign-in. | |
| login_phone | No | The phone this session signed in with, else the account's login phone; absent for an account with neither. | |
| display_name | No | ||
| phone_number | No | The account's login phone, when it has one. | |
| last_login_at | No | ||
| login_channel | Yes | ||
| verification_count | Yes |