freshbooks_auth_exchange
Complete FreshBooks OAuth by exchanging the full redirect URL for tokens; state must match a consent URL, and the code is single-use.
Instructions
Complete FreshBooks authorization. Local sessions save the credentials privately and return only status; hosted sessions return the refresh token to the host's credential-capture flow. Pass the whole redirect URL: its state must match a consent URL freshbooks_auth_url issued, so a bare code is refused. The code is SINGLE-USE — if this fails, authorize again rather than retrying it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "freshbooks_auth_exchange"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | The entire redirect URL you were sent to after approving, including its state parameter. A bare ?code= value is refused. |