Api referenceSms
Send SMS
Authorization
apiKey X-API-Key<token>
API key for authentication
In: header
Request Body
application/json
to*string
Recipient phone number in E.164 format
Match
^\+\d{10,15}$message?string
SMS message content (required if not using template)
Length
1 <= length <= 1600templateId?string
Template ID to use for this SMS
Format
uuidtemplateData?
Template variables
Response Body
application/json
curl -X POST "https://samva.app/api/v1/sms/send" \ -H "Content-Type: application/json" \ -d '{ "to": "string" }'{
"id": "string",
"status": "pending"
}