onboard_payout_account
Create (or reuse) a Stripe Express connected account for an end user and return an onboarding URL for them to complete. The resulting stripe_account_id (acct_…) is stored on the user; pass it as destination to redeem_credits. return_url and refresh_url must be https on a Cred host or a domain listed under Dashboard → Payments → Allowed redirect domains, else 400 REDIRECT_NOT_ALLOWED. Costs 1 CRD (platform credit) per call, charged even when the call is then rejected (a 429 RATE_LIMITED costs nothing). Error results include request_id; quote it to support.
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": {
"return_url": "<return_url>",
"refresh_url": "<refresh_url>"
},
"name": "onboard_payout_account"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Cred API key (optional if set via the x-api-key header) | |
| country | No | ISO country code for the account (default US) | |
| user_id | No | External user ID | |
| project_id | No | Cred project ID (optional; the API key already identifies the project. Signed in with 1Profile and owning several projects, it picks one) | |
| return_url | Yes | Where Stripe sends the user after onboarding | |
| user_email | No | User email (alternative) | |
| refresh_url | Yes | Where Stripe sends the user if the link expired | |
| x402_payment | No | Base64 x402 PaymentPayload, only when a previous call failed with an x402 PaymentRequired because the account is out of CRD |