← Developers

Call Intelligence API

Voice intelligence for telephony and contact centers. One contract: media in → captions + bilingual agent assist or spoken IVR reply. Base URL https://api.lugemi.com.

Modes

1 · Create session

curl -sS -X POST "$LUGEMI_API_URL/v1/call-intelligence/sessions" \
  -H "Authorization: Bearer $LUGEMI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"agent_assist","consentAttested":true,"agentLanguage":"en"}'

2 · Turn

SESSION=cis_…
curl -sS -X POST "$LUGEMI_API_URL/v1/call-intelligence/sessions/$SESSION/turn" \
  -H "Authorization: Bearer $LUGEMI_API_KEY" \
  -F "file=@caller.wav" \
  -F "speakToCaller=false"

3 · TypeScript SDK

import { Lugemi } from '@lugemi/sdk';

const client = new Lugemi({ apiKey: process.env.LUGEMI_API_KEY! });
const { session } = await client.callIntelligence.createSession({
  mode: 'ivr_bot',
  consentAttested: true,
});
const turn = await client.callIntelligence.turn({
  sessionId: session.id as string,
  text: 'Hello, I need help in Twi.',
  speakToCaller: true,
});

Package: @lugemi/sdk · Mobile: @lugemi/sdk-react-native · iOS packages/sdk-ios · Android packages/sdk-android

4 · React Native

import { Lugemi, appendMobileAudio, recordingFileFromUri } from '@lugemi/sdk-react-native';
// Record with expo-av / react-native-audio-api, then:
const form = new FormData();
appendMobileAudio(form, recordingFileFromUri({ uri }));
await fetch(`${API}/v1/call-intelligence/sessions/${id}/turn`, {
  method: 'POST',
  headers: { Authorization: `Bearer ${KEY}` },
  body: form,
});

Bridges

Catalog (no auth): GET /v1/call-intelligence/engine

Open consoleChatbot & voice agentsopenapi.json
Call Intelligence API for builders · Lugemi