save_referral_settings
Create or update a referral program: credits awarded to the referrer and to the referred user. With credit_type_id this writes THAT credit type's program (creating it if needed); without it, the project's default program. Only fields you pass change. 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
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "save_referral_settings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | No | Cred API key (optional if set via the x-api-key header) | |
| is_active | No | Enable/disable the program | |
| is_default | No | true makes this program the default — the one requests without credit_type_id use (only true is accepted) | |
| 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) | |
| x402_payment | No | Base64 x402 PaymentPayload, only when a previous call failed with an x402 PaymentRequired because the account is out of CRD | |
| credit_type_id | No | Credit type whose program to write (and award) | |
| referee_credits | No | Credits for the referred user | |
| referrer_credits | No | Credits for the referrer |