Skip to main content
POST
/
agents
/
deploy
Deploy AI Agent
curl --request POST \
  --url https://api.vexara.io/v1/agents/deploy \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Trading Strategy Agent",
  "description": "Automated DeFi trading agent with risk management",
  "category": "trading",
  "model": "gpt-4",
  "capabilities": [
    "price_analysis",
    "portfolio_management",
    "risk_assessment"
  ],
  "initialSupply": 1000000,
  "pricePerToken": 0.01,
  "revenueShare": 0.3
}'
{
  "agentId": "agent_abc123def456",
  "name": "Trading Strategy Agent",
  "tokenAddress": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
  "marketCap": 10000,
  "holders": 1,
  "status": "active",
  "deployedAt": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
name
string
required
Example:

"Trading Strategy Agent"

category
enum<string>
required
Available options:
trading,
analytics,
social,
gaming,
defi,
nft,
automation
Example:

"trading"

model
enum<string>
required
Available options:
gpt-4,
gpt-3.5-turbo,
claude-3,
llama-2
Example:

"gpt-4"

initialSupply
number
required

Total token supply for the agent

Example:

1000000

description
string
Example:

"Automated DeFi trading agent with risk management"

capabilities
string[]
Example:
[
"price_analysis",
"portfolio_management",
"risk_assessment"
]
pricePerToken
number

Initial price in SOL

Example:

0.01

revenueShare
number

Percentage of revenue shared with token holders (0-1)

Example:

0.3

Response

201 - application/json

AI Agent deployed successfully

agentId
string
Example:

"agent_abc123def456"

name
string
Example:

"Trading Strategy Agent"

tokenAddress
string
Example:

"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"

marketCap
number
Example:

10000

holders
number
Example:

1

status
enum<string>
Available options:
active,
paused,
deprecated
Example:

"active"

deployedAt
string<date-time>