Simli Auto
Face ID Creation
WebRTC API
Create Agent
Create a new agent
POST
/
agent
curl --request POST \
--url https://api.simli.ai/agent \
--header 'Content-Type: application/json' \
--header 'x-simli-api-key: <api-key>' \
--data '{
"face_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Untitled Agent",
"first_message": "<string>",
"prompt": "<string>",
"voice_provider": "elevenlabs",
"voice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"voice_model": "sonic-english",
"owner_id": "<string>",
"language": "<string>",
"llm_model": "gpt-4o-mini",
"llm_endpoint": "https://api.example.com/v1/chat/completions",
"max_idle_time": 300,
"max_session_length": 3600,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"face_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Untitled Agent",
"first_message": "<string>",
"prompt": "<string>",
"voice_provider": "elevenlabs",
"voice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"voice_model": "sonic-english",
"language": "<string>",
"llm_model": "gpt-4o-mini",
"llm_endpoint": "https://api.example.com/v1/chat/completions",
"max_idle_time": 300,
"max_session_length": 3600,
"owner_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
Authorizations
API key for authentication
Body
application/json
Response
201
application/json
Agent created successfully
The response is of type object
.
curl --request POST \
--url https://api.simli.ai/agent \
--header 'Content-Type: application/json' \
--header 'x-simli-api-key: <api-key>' \
--data '{
"face_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Untitled Agent",
"first_message": "<string>",
"prompt": "<string>",
"voice_provider": "elevenlabs",
"voice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"voice_model": "sonic-english",
"owner_id": "<string>",
"language": "<string>",
"llm_model": "gpt-4o-mini",
"llm_endpoint": "https://api.example.com/v1/chat/completions",
"max_idle_time": 300,
"max_session_length": 3600,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"face_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Untitled Agent",
"first_message": "<string>",
"prompt": "<string>",
"voice_provider": "elevenlabs",
"voice_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"voice_model": "sonic-english",
"language": "<string>",
"llm_model": "gpt-4o-mini",
"llm_endpoint": "https://api.example.com/v1/chat/completions",
"max_idle_time": 300,
"max_session_length": 3600,
"owner_id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}