Documentation

Developer Docs

Everything you need to integrate SMSLY APIs into your application.

Platform API — All endpoints use the /v1/ prefix (e.g., https://api.smsly.cloud/v1/messages)

Required: Message Type — All send endpoints require a type parameter: otp, marketing, transactional, etc.

Quick Example

Send your first SMS in seconds

send_sms.py
from smsly import SMSly

client = SMSly(
    api_key="sk_live_xxx",
    sdk_key="sdk_live_xxx"
)

# Send OTP (type-specific method)
response = client.sms.otp(
    to="+1234567890",
    code="123456"
)

# Send marketing SMS
client.sms.marketing(
    to="+1234567890",
    message="50% off today!"
)

print(f"Message sent: {response.message_id}")