Skip to main content
POST
/
liveai
/
rooms
Create room
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"
}

Authorizations

X-API-Key
string
header
required

Your LemonSlice API token.

Body

application/json

The Lemon Slice agent to use in the room.

agent_id
string
required

The ID of the LemonSlice agent.

Example:

"agent_abc123"

Response

Room created successfully.

room_url
string<uri>
required

The Daily room URL.

Example:

"https://your-subdomain.daily.co/abc123"

token
string
required

The Daily user token.

image_url
string<uri>
required

The placeholder agent image.

Example:

"https://cdn.lemonslice.com/agents/agent_abc123.png"