API Reference

Complete API documentation with examples, parameters, and response formats for TWWIM voice AI integration.

API Sections

Authentication

Secure your API calls with authentication tokens

POST/api/auth/key

API Key Auth

Authenticate using API key

Example
// Initialize TWWIM with API key
const twwim = new TWWIM({
  apiKey: 'your-api-key-here',
  environment: 'production' // or 'sandbox'
});

// Verify authentication
const isAuthenticated = await twwim.authenticate();
console.log('Authenticated:', isAuthenticated);

SDK Examples

Quick start examples for popular programming languages

JavaScript / TypeScript

npm install @twwim/voice-ai

import { TWWIM } from '@twwim/voice-ai';

const client = new TWWIM('your-api-key');
const result = await client.processVoice(audioData);

Python

pip install twwim-python

from twwim import TWWIM

client = TWWIM(api_key='your-api-key')
result = client.process_voice(audio_data)