Check identity
whoamiReturn the caller's current identity and tenant state. Never errors when unidentified — returns a pairing path instead. After poll_pairing completes, whoami with the same tenantId should show identified:true via server-side session binding. Returns sessionExpiresAt (~1h) and grantExpiresAt (~7d). If sessionExpired:true, call refresh_session with your stored refreshToken.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenantId | No | Optional tenant to check or re-pair against. | |
| sessionToken | No | Optional token from poll_pairing. Pass when whoami stays unidentified after a successful pair (connectors that cannot set Authorization headers). |