Developer Documentation

API reference and integration guides for the Fern AI Developer API.

Quick Start

Get started with the Fern AI Developer API in minutes. We use livekit under the hood for WebRTC, and simply provide you with a livekit URL and token for your client and bot to join the room and start streaming video/audio.

1. Get your API Key

Navigate to the API Keys page and create a new key. Store it securely - you won't be able to see it again!

2. Create a Session

Create a new session to get a LiveKit room URL and client token:

curl -X POST https://cloud.ishikilabs.ai/api/developer/v1/sessions \
  -H "X-API-Key: isk_live_your_api_key" \
  -H "Content-Type: application/json"

3. Connect Your Client

Use the LiveKit client SDK to connect your user to the room:

import { Room } from 'livekit-client';

const room = new Room();
await room.connect(response.room_url, response.client_token);

4. Start the AI Bot

When ready, have the Fern AI bot join the session:

curl -X POST https://cloud.ishikilabs.ai/api/developer/v1/sessions/{session_id}/join \
  -H "X-API-Key: isk_live_your_api_key" \
  -H "Content-Type: application/json"

5. End the Session

When finished, end the session to stop billing:

curl -X DELETE https://cloud.ishikilabs.ai/api/developer/v1/sessions/{session_id} \
  -H "X-API-Key: isk_live_your_api_key"