Skip to main content
POST
/
marketplace
/
buy
Buy Agent Tokens
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
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication. Include the token in the Authorization header

Body

application/json
agentId
string
required
Example:

"agent_abc123"

amount
number
required

Number of tokens to buy

Example:

100

maxPrice
number

Maximum price per token (slippage protection)

Response

200 - application/json

Purchase successful

transactionId
string
signature
string
amount
number
totalCost
number
pricePerToken
number