Skip to main content
POST
/
v2
/
sms-templates
/
validate
Validate an SMS Template
curl --request POST \
  --url https://api.example.com/v2/sms-templates/validate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "<string>"
}
'
{
  "valid": true,
  "errors": [
    "<string>"
  ],
  "warnings": [
    "<string>"
  ],
  "estimated_characters": 123,
  "estimated_segments": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body for validating a template.

body
string
required
Maximum string length: 1600

Response

Successful Response

Response from template validation.

valid
boolean
required
errors
string[]
required
warnings
string[]
required
estimated_characters
integer
required
estimated_segments
integer
required