Templates
Verify Templates are in Public beta!
Pre-approved and custom templates are currently in the Public beta maturity stage, which means that:
We're actively looking for early-adopter customers to try it out and give us feedback. That could be you!
Please note that pre-approved and custom templates are only supported with the SMS and Voice channels.
Templates are predefined and approved messages used to send Verifications that allow you to customize the Verification message. An account can have multiple templates associated with it to accommodate various scenarios.
Verify offers three different types of templates to support your use cases: Verify Default, pre-approved, and custom. Read more about the features and differences of these template types here.
Template translations and supported languages
Verify will automatically resolve a template message body's locale based on phone number country code or fallback to English or a custom template’s default language. Using this automatic resolution is highly recommended. If you still must override locale, use the locale
parameter. Learn more about supported languages here.
Template properties
Resource Properties in REST API format | |
---|---|
sid
|
A 34 character string that uniquely identifies a Verification Template. |
account_sid
|
The unique SID identifier of the Account. |
friendly_name
|
A descriptive string that you create to describe a Template. It can be up to 32 characters long. |
channels
|
A list of channels that support the Template. Can include: sms, voice. |
translations
|
An object that contains the different translations of the template. Every translation is identified by the language short name and contains its respective information as the approval status, text and created/modified date. |
Get a list of available templates
https://verify.twilio.com/v2/Templates
Parameters
Parameters in REST API format | |
---|---|
friendly_name
Optional
|
String filter used to query templates with a given friendly name. |
Example 1
Start a Verification with a specific template
To send a verification with a specified template, include the TemplateSid (starts with HJ) as a parameter.
Example 2
Need some help?
We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.