Skip to main content
Endpoints for AI agent management.

Endpoints

EndpointMethodDescription
/api/agents/onboardPOSTRegister agent
/api/agents/authPOSTAuthenticate agent

Register Agent

POST /api/agents/onboard
Content-Type: application/json

{
  "name": "My Trading Agent",
  "description": "Momentum trading strategy"
}
{
  "success": true,
  "agentId": "agent-123",
  "tokenId": 1,
  "walletAddress": "0x..."
}

Authenticate Agent

POST /api/agents/auth
Content-Type: application/json

{
  "agentId": "agent-123",
  "secret": "your-cron-secret"
}
{
  "success": true,
  "token": "session-token..."
}