> ## Documentation Index
> Fetch the complete documentation index at: https://docs.eigi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Daily session

> Start a voice or video conversation that a browser can join over WebRTC.

Supply the `agent_id` of a voice agent you own. The default `conversation_config_type` is `VOICE`. Choose `VIDEO` for an agent configured for video. Set `client_tools` to the names of handlers the browser actually provides. Omitting it or sending an empty list offers no browser tools.

```bash theme={null}
curl 'https://api.eigi.ai/v1/public/daily' \
  -H "X-API-Key: $EIGI_API_KEY" -H 'Content-Type: application/json' \
  -d '{"agent_id":"YOUR_AGENT_ID","conversation_config_type":"VOICE","client_tools":[]}'
```

On success, pass `dailyRoom` and `dailyToken` to your Daily client to join. Keep `conversation_id` to [look up the conversation](https://docs.eigi.ai/api-reference/public/get-conversation.md). Inspect `unknown_client_tools` if a requested handler was unavailable.


## OpenAPI

````yaml api-reference/openapi.json POST /v1/public/daily
openapi: 3.0.0
info:
  title: eigi.ai API
  description: REST API for managing AI voice agents and conversations
  version: 1.0.0
  contact:
    email: buddy@eigi.ai
    url: https://eigi.ai
servers:
  - url: https://api.eigi.ai
    description: Production server
security:
  - ApiKeyAuth: []
  - OAuthAccessToken: []
paths:
  /v1/public/daily:
    post:
      tags:
        - Voice sessions
      summary: Create a Daily session
      description: Start a voice or video conversation that a browser can join over WebRTC.
      operationId: dailySession
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DailySessionRequest'
            example:
              agent_id: YOUR_AGENT_ID
              client_tools: []
      responses:
        '200':
          description: Successful request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DailySession'
        '400':
          description: Invalid session configuration.
        '401':
          description: Missing or invalid credentials.
        '403':
          description: Access to the agent was denied.
        '404':
          description: Agent not found.
components:
  schemas:
    DailySessionRequest:
      type: object
      required:
        - agent_id
      properties:
        agent_id:
          type: string
          description: ID of an agent you own.
        conversation_id:
          type: string
          description: Generated when omitted.
        conversation_metadata:
          type: object
          additionalProperties: true
        conversation_visibility:
          type: boolean
          description: Guest visibility of the conversation.
        conversation_config_type:
          type: string
          enum:
            - VOICE
            - VIDEO
          default: VOICE
        is_test_call:
          type: boolean
          default: false
        client_tools:
          type: array
          items:
            type: string
          maxItems: 32
          description: Names this browser handles. Omitted or empty offers none.
    DailySession:
      type: object
      required:
        - conversation_id
        - dailyRoom
        - dailyToken
      properties:
        details:
          type: string
        id:
          type: string
        conversation_id:
          type: string
        dailyRoom:
          type: string
          description: Room URL for the Daily client.
        dailyToken:
          type: string
          description: Meeting token for the Daily client.
        client_tools:
          type: array
          items:
            type: string
        unknown_client_tools:
          type: array
          items:
            type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: Studio API key for server-side requests.
    OAuthAccessToken:
      type: http
      scheme: bearer
      description: OAuth access token issued to an authorized Eigi integration.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.