Create Agent Definition — API
Create a new agent definition and its initial version. Accepts agent type, name, provider, API key, and system prompt. Returns the created agent object.
https://api.futureagi.com/simulate/agent-definitions/create/ Authentication
Request body
Values: voice, text.
Display name for the agent.
Commit message describing the initial version. Defaults to an auto-generated message if omitted.
External voice provider. Values: vapi, retell, eleven_labs, livekit, livekit_bridge, others. Required for voice agents.
API key for the external voice provider. Required for outbound agents or when observability_enabled is true.
Assistant identifier from the external provider. Required for outbound agents or when observability_enabled is true.
Provider authentication method. Values: api_key. Required for non-others voice agents that are outbound or have observability_enabled set.
Description for the initial agent version.
Primary language as an ISO 639-1 code (e.g. en, es).
List of supported ISO 639-1 language codes.
UUID of a knowledge base to link to the agent.
Full phone number with country code prefix (e.g. +14155551234). Number portion must be 10–12 digits. Not required for livekit / livekit_bridge providers, or when api_key and assistant_id are both provided (web bridge).
Whether the agent handles inbound calls. Defaults to false (outbound-only).
Enables observability with the external provider. Requires api_key and assistant_id.
AI model identifier (e.g. gpt-4o, claude-3-sonnet).
Provider-specific model settings (temperature, max tokens, etc.).
WebSocket URL for real-time providers. Must start with ws:// or wss://.
Custom headers for the WebSocket connection.
UUID of a replay session to initialize the agent from.
LiveKit server URL (e.g. wss://your-server.livekit.cloud). Required for livekit and livekit_bridge providers.
LiveKit API key.
LiveKit API secret. Write-only; not returned in responses.
Agent name registered on the LiveKit server.
LiveKit room configuration metadata.
Max concurrent LiveKit sessions. Min 1, capped by org limit. Defaults to 5.
Response
201 CreatedThe newly created agent definition.
voice or text. null for text agents. null. null for text agents. null. null. null. null. null. null. null. null. 5. Errors
Missing required fields, invalid provider configuration, or livekit_max_concurrency exceeds org limit.
Invalid or missing API credentials.
Replay session not found.
Unexpected server error.