SMSLY uses a dual-key system for enhanced security. Both keys are required for all API requests.
Primary authentication key that identifies your account.
X-Smsly-Key-Id: sk_live_xxxSecondary validation key for SDK integrity verification.
X-SMSLY-SDK-KEY: sdk_live_xxxNavigate to Console → Settings → API Keys
Click "Generate New Key Pair" to create both API + SDK keys together
Setup keys expire in 24 hours. They activate on first API call.
Store as SMSLY_API_KEY and SMSLY_SDK_KEY
setup_api_xxx + setup_sdk_xxx keyssk_live_xxx + sdk_live_xxxSecurity benefit: Even if setup keys are intercepted, they're useless after first use.
# Dual-key authentication
curl -X POST https://api.smsly.cloud/v1/sms/otp \
-H "X-Smsly-Key-Id: sk_live_abc123xxx" \
-H "X-SMSLY-SDK-KEY: sdk_live_xyz789xxx" \
-H "Content-Type: application/json" \
-d '{"to": "+1234567890", "code": "123456"}'