Create Agent
Create a new agent and fund its wallet
Multi-step Process: This endpoint creates a new agent, generates a blockchain wallet, and can fund the wallet from your user account or via a testnet faucet.
Request Headers
Your API key for authentication
Request Body
ID of the user creating the agent
Userโs wallet address for funding (optional)
Name of the agent
Purpose and functionality of the agent
Initial balance to fund the agent (in smallest units)
Maximum amount that can be spent per day
Maximum amount for a single transaction
Currency type to use (defaults to USDC)
Whether all transactions require approval
Transactions above this amount require approval
Categories or labels to assign to the agent
Response
Unique agent identifier
The API key for the agent
Name of the agent
Purpose and functionality of the agent
Current status of the agent (active, inactive, paused)
Current balance of the agent
Currency type used
Categories or labels assigned to the agent
Timestamp when the agent was created
Status Codes
Status Code | Description |
---|---|
200 | Agent created and funded successfully |
201 | Agent created, but funding transfer failed |
400 | Bad Request - Invalid or missing parameters |
404 | Not Found - User ID not found |
500 | Internal Server Error |
Important: Store the returned API key securely as it will be needed for all future operations with this agent.