Exchange WHOOP OAuth Code
whoop_exchange_codeExchange a WHOOP OAuth authorization code for tokens stored locally with 0600 permissions. Tokens are never returned, and explicit user intent is required.
Instructions
Exchange a WHOOP OAuth authorization code for local tokens. Tokens are stored locally with 0600 permissions and are never returned by this tool. Gated: requires explicit user intent — agents must not call this autonomously.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | OAuth authorization code, or a full redirect URL containing ?code=... | |
| state | No | Optional OAuth state from the redirect URL. Recommended for PKCE verification. | |
| response_format | No | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| note | Yes | ||
| scope | No | ||
| expires_at | No | ||
| token_path | Yes |