Back to Docs

Feedback & Survey API

NPS, CSAT surveys with real-time analytics

NPS Surveys

Net Promoter Score

CSAT

Customer satisfaction

Analytics

Real-time insights

Multi-channel

SMS, WhatsApp, Email

Dual-Key Authentication

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

Quick Start

Python
from smsly import SMSly

# === DUAL KEY SECURITY ===
client = SMSly(
    api_key="sk_live_xxx",
    sdk_key="sdk_live_xxx"
)

# Send NPS survey via SMS
response = client.feedback.survey_send(
    to="+1234567890",
    template="nps",
    channel="sms"
)
print(f"Survey ID: {response.survey_id}")

# Get NPS score
nps = client.feedback.nps_score()
print(f"NPS Score: {nps.score}")
print(f"Promoters: {nps.promoters}%")
print(f"Detractors: {nps.detractors}%")

# Get survey report
report = client.feedback.report_get(survey_id=response.survey_id)

API Endpoints

POST/v1/feedback/surveySend survey
POST/v1/feedback/collectCollect response
GET/v1/feedback/report/:idGet survey report
GET/v1/feedback/npsGet NPS score
GET/v1/feedback/surveysList all surveys

Ready to collect feedback?