connect_account
Computes a five-minute browser authorization URL bound to the authenticated profile without connecting or changing an account. The provider is authorized when the user opens the returned URL in their own browser; the account is connected once that flow finishes. Depending on platform, the browser uses provider OAuth or a PostOnce-hosted credential or signer flow, so provider credentials are entered only on that page. Partner accounts may send external_user_id and an allowed redirect_url; after consent the end user is redirected to redirect_url with status, account_id, platform and external_user_id (or error).
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": {
"platform": "<platform>"
},
"name": "connect_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| platform | Yes | ||
| redirect_url | No | Partner accounts only. Must exactly match one of your allowed redirect URLs. | |
| idempotency_key | No | ||
| external_user_id | No | Partner accounts only. Your own id for the end user connecting the account. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Upstream error details, when available. | |
| code | No | Error code when the tool result has isError=true. | |
| data | No | Present on successful results; omitted on tool errors. | |
| meta | No | ||
| status | No | ||
| message | No |