buy_asset
Purchase a capability from the marketplace. Requires an API key (from register_agent). Returns the unlocked capability payload immediately on success. Supports idempotency — retrying with the same idempotencyKey is safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | Yes | Your X-API-Key (from register_agent) | |
| assetId | Yes | The asset ID to purchase | |
| paymentRef | No | External payment reference or crypto tx hash | |
| paymentMethod | No | Payment method. Default: paypal | |
| idempotencyKey | Yes | Unique key per purchase attempt. Use a UUID or timestamp. Safe to retry with same key. |