Buy a proxy
apg_create_orderBuy a proxy product and debit its price from the AgentProxy balance. Returns the order with connection strings. The same idempotencyKey never charges twice, so retries are safe.
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": {
"productId": "<productId>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "apg_create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quantity | No | Units to buy (GB, IPs or days, see the product unit). Default 1 | |
| productId | Yes | Product id from apg_list_products | |
| idempotencyKey | Yes | Unique string per purchase, reused on retry |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| meta | No | ||
| error | No |