cURL
curl --request POST \ --url https://api.vexara.io/v1/marketplace/buy \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "agentId": "agent_abc123", "amount": 100, "maxPrice": 123 }'
{ "transactionId": "<string>", "signature": "<string>", "amount": 123, "totalCost": 123, "pricePerToken": 123 }
Purchase tokens of an AI Agent
JWT Bearer token authentication. Include the token in the Authorization header
"agent_abc123"
Number of tokens to buy
100
Maximum price per token (slippage protection)
Purchase successful