Skip to content

Creating an agent via API

Creating an agent registers it for a user and derives the Agent Wallet associated with that agent. Creation alone does not necessarily fund or deploy the wallet.

POST /v1/users/{userId}/agents
Content-Type: application/json
Authorization: Signature <signature-token>

The request includes the agent name, chain, base asset, agent type, and optional type-specific configuration. Use the generated API reference for the authoritative schema and required fields.

The type field selects the agent runtime. The current value is the Vault Agent; future types may add different fields and lifecycle operations.

Do not hard-code Vault Agent assumptions into a generic client. Treat unknown types as unsupported until the client has the type’s documented contract.

The response identifies the new agent. Call getAgentWallet to retrieve its deterministic wallet address; that address is available before deployment.

Creation is followed by the type-specific funding and activation flow:

Validate the chain, asset, type, user identity, and name before sending. Handle unsupported assets/types, missing users, authentication failures, and duplicate or conflicting agent state as explicit errors rather than retrying blindly.