cURL
curl --request POST \ --url https://lemonslice.com/api/liveai/rooms \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <api-key>' \ --data ' { "agent_id": "agent_abc123" } '
{ "room_url": "https://lemonslice.daily.co/abc123", "token": "eyJhbGciOiJIUzI1NiIsInR5...", "image_url": "https://cdn.lemonslice.com/agents/agent_abc123.png" }
Creates a Daily room configured with the given Lemon Slice agent.
Your LemonSlice API token.
The Lemon Slice agent to use in the room.
The ID of the LemonSlice agent.
"agent_abc123"
Room created successfully.
The Daily room URL.
"https://your-subdomain.daily.co/abc123"
The Daily user token.
The placeholder agent image.
"https://cdn.lemonslice.com/agents/agent_abc123.png"