Skip to main content
POST
Create hosted session

Authorizations

X-API-Key
string
header
required

Your LemonSlice API token.

Body

application/json

The LemonSlice agent to use in the session.

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"

session_id
string<string>
required

A unique identifier for the room's session.

Example:

"3f7c2b91-9e1f-4a6a-8e9d-2c7c3e7d9b5a"