Back to Docs

Voice API

Programmable voice calls, OTP, TTS, and IVR systems

Voice Calls

Global voice network

Voice OTP

Secure verification

IVR Menus

Interactive flows

195+ Countries

Worldwide coverage

Dual-Key Authentication

X-Smsly-Key-Id: sk_live_xxx
X-SMSLY-SDK-KEY: sdk_live_xxx

Quick Start

Python
from smsly import SMSly

# Initialize with dual keys
client = SMSly(
    api_key="sk_live_xxx",
    sdk_key="sdk_live_xxx"
)

# Voice OTP call
response = client.voice.otp("+1234567890", "123456")
print(f"Call ID: {response.call_id}")

# Text-to-speech call
client.voice.tts(
    "+1234567890",
    "Hello! Your appointment is confirmed for tomorrow at 3pm."
)

API Endpoints

POST/v1/voice/otpVoice OTP call
POST/v1/voice/callInitiate voice call
POST/v1/voice/ttsText-to-speech call
POST/v1/voice/ivrCreate IVR flow
POST/v1/voice/conferenceStart conference
GET/v1/voice/:idGet call status
POST/v1/voice/:id/hangupEnd call

Ready to make voice calls?