🤖 Otto AI API Documentation

Complete API reference for the Otto AI Platform

← Back to Home

🔐 Authentication

All API requests require authentication using JWT tokens.

POST /api/auth/login
Authenticate user and receive JWT token
{ "email": "john.anderson@otto.ai", "password": "admin123" }
POST /api/auth/register
Register new user account

👥 Customer Management

GET /api/customers
Retrieve all customers with pagination
GET /api/customers/:id
Get specific customer details
POST /api/customers
Create new customer

🚗 Vehicle Inventory

GET /api/vehicles
Get vehicle inventory with filters
GET /api/vehicles/search
Search vehicles by make, model, year, etc.

🤖 Otto AI Agent

POST /api/twilio/otto/incoming
Handle incoming calls with Otto agent
# Twilio webhook for incoming calls # Agent ID: agent_3701k70bz4gcfd6vq1bkh57d15bw
POST /api/twilio/otto/response
Process Otto conversation responses
GET /api/twilio/otto/test
Test Otto functionality with scenarios

📞 Call Management

GET /api/calls
Get call records with analytics
POST /api/ai/calls/transcribe
Transcribe call recordings using AI

📅 Appointment Scheduling

GET /api/appointments
Get scheduled appointments
POST /api/appointments
Schedule new appointment