NPS, CSAT surveys with real-time analytics
Net Promoter Score
Customer satisfaction
Real-time insights
SMS, WhatsApp, Email
X-Smsly-Key-Id: sk_live_xxxX-SMSLY-SDK-KEY: sdk_live_xxxfrom 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)/v1/feedback/surveySend survey/v1/feedback/collectCollect response/v1/feedback/report/:idGet survey report/v1/feedback/npsGet NPS score/v1/feedback/surveysList all surveys