Manage pricing plans for a published API
manage_api_plansList, add, update, replace (1–10 tiers), or deactivate hard-capped pricing plans on any API owned by your IndieAPIs account.
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": {
"slug": "<slug>",
"action": "<action>"
},
"name": "manage_api_plans"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | Single plan payload (for action='add' or 'update') | |
| slug | Yes | Slug of your published API | |
| plans | No | Full replacement array of 1–10 plans (for action='replace') | |
| action | Yes | Operation to perform on pricing plans | |
| plan_slug | No | Target plan slug (required for action='update' or 'deactivate') |