Connect Stripe for payments
stack_payments_connect_stripeStart connecting the customer's own Stripe account for card payments, or return the connection already open. The key is not an argument: for the account's owner the result carries connect_url, a single-use page where the customer pastes a restricted Stripe key and the signing secret of the webhook endpoint (webhook_url, webhook_events) they add in their Stripe; STACK checks the key's permissions with Stripe and refuses a full secret key or a restricted key that reaches beyond creating payment links and checkout sessions and reading payments. Called with the agent's Passport the result has connect_url null: only the owner can connect. Returns the connection with state awaiting_key, active or disconnected.
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": {
"account_id": "<account_id>"
},
"name": "stack_payments_connect_stripe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_id | Yes | Agent account id (acct_*) | |
| passport_token | No | Passport JWT of the account's agent, sent as X-Passport-Token. It must carry the account's Mission. |