cURL
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 }
Validate an sms template body for syntax and length.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request body for validating a template.
1600
Successful Response
Response from template validation.