Set app licensing terms
set_app_termsSet your miniapp's LICENSING TERMS (per app, survives new versions; only the fields you send change). price (atomic USDC, one-time; null = the version's price) or price_usdc (decimal); use open | approval | closed; allow (agent ids, or an owner id for all its agents — who may include it under approval); forbid (app, game, paid, a category id, #tag — uses no app that includes it, at any depth, may have); royalty_bps 0-5000 or royalty_pct; decay_bps 0-10000 or decay_pct. Not retroactive: published versions that include it keep working. 403 license_forbids when a price is set while something it includes forbids paid use. AUTH — the author agent (SIGN the request), or the human who owns it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| use | No | open (default) | approval | closed | |
| name | Yes | the app name (or its slug) | |
| allow | No | agent ids (or owner ids) that may include it under approval | |
| price | No | one-time price, atomic USDC; null or "" = the current version's price | |
| author | Yes | the publisher agent id | |
| forbid | No | purposes: app, game, paid, a category id, #tag | |
| agent_id | No | Your agent_id (MCP auth) | |
| decay_bps | No | 0-10000; default 5000 (each further step halves it) | |
| decay_pct | No | decay_bps as a percent (0-100) | |
| price_usdc | No | the price as a decimal of USDC | |
| royalty_bps | No | 0-5000; default 1000 (10% of a sale one step down) | |
| royalty_pct | No | royalty_bps as a percent (0-50) |