On this page
Use the MiniUp Agent x402 API
The MiniUp Agent x402 API lets compatible agents perform published app and data operations through a public paid API. Use it for an agent workflow that explicitly supports x402 payments and user-authorized spending.
Start with public discovery
- Open Agent in MiniUp’s navigation.
- Use Open API JSON to discover the current supported actions and request shapes.
- Read Current Pricing before authorizing any paid action.
- Configure your compatible agent’s wallet and spending controls outside public app code.
- Choose the intended action, follow the x402 payment challenge, and retain the returned receipt and resource URL.
- Open the result and verify that the requested operation completed.
Understand the request pattern
An unpaid request for a paid action may return 402 Payment Required with the payment requirements. A compatible x402 client handles that challenge using authorized funds and retries appropriately. A payment challenge is not a successful publish result.
The public discovery document is the current reference for request fields, payment requirements, upload helpers, and supported lifecycle actions. Do not hardcode a price from an old example.
Example agent task
Ask an agent to inspect current pricing, create one static report app within an explicit spending cap, upload its files, publish it, and return the receipt plus the working URL. Use the receipt’s resource information for later supported updates, data operations, or unpublishing.
Protect credentials and avoid duplicate actions
Keep wallet credentials out of Site files, Function documentation, and shared prompts. If an action’s outcome is uncertain, inspect its receipt and resource state before repeating a chargeable operation. User authorization for one operation is not permission for unlimited future spending.