S
Samva
S
Samva
DashboardAPISamva DocumentationQuickstart GuideAuthentication

Api referenceSms

Send SMS

POST
/sms/send

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)

Length1 <= length <= 1600
templateId?string

Template ID to use for this SMS

Formatuuid
templateData?

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"
}
curl -X POST "https://samva.app/api/v1/sms/send" \
  -H "Content-Type: application/json" \
  -d '{
    "to": "string"
  }'