Menu

Expand
Rate this page:

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.

See special restrictions for sending SMS to Singapore or Canada.

Template properties

Resource Properties in REST API format
sid
sid<HJ> Not PII

A 34 character string that uniquely identifies a Verification Template.

account_sid
sid<AC> Not PII

The unique SID identifier of the Account.

friendly_name
string Not PII

A descriptive string that you create to describe a Template. It can be up to 32 characters long.

channels
string[] Not PII

A list of channels that support the Template. Can include: sms, voice.

translations
object Not PII

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

get
https://verify.twilio.com/v2/Templates
Parameters
Parameters in REST API format
friendly_name
Optional
get string Not PII

String filter used to query templates with a given friendly name.

Example 1
Loading Code Sample...
        
        
        Returns pre-approved and custom templates for your account

        Get a list of available templates

        Returns pre-approved and custom templates for your account

        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
        Loading Code Sample...
              
              

              Create a Verification using a template

              Rate this page:

              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.

              Loading Code Sample...
                    
                    
                    

                    Thank you for your feedback!

                    Please select the reason(s) for your feedback. The additional information you provide helps us improve our documentation:

                    Sending your feedback...
                    🎉 Thank you for your feedback!
                    Something went wrong. Please try again.

                    Thanks for your feedback!

                    thanks-feedback-gif