Menu

Expand
Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

Messaging Configuration

Phone Verification is a critical part of engaging with customers. You may want to customize that experience to use your existing shortcodes or phone numbers in specific regions.

Messaging Configuration with Verify can be used to extend and customize your phone verification deployment. Using Messaging Configuration you can select Messaging Services to be used by Verify when sending phone verifications over SMS.

Messaging Configuration makes it easy to use existing shortcodes, long codes or alpha sender IDs for phone verifications. With region level configuration you can mix and match existing resources with Verify's managed telephony.

Prerequisites:

  1. Create a Messaging Service
  2. Create a Verification Service

Messaging Configuration Properties

Names in PHP format
accountSid
sid<AC> Not PII

The SID of the Account that created the Service resource.

serviceSid
sid<VA> Not PII

The SID of the Service that the resource is associated with.

country
string Not PII

The ISO-3166-1 country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value all.

messagingServiceSid
sid<MG> Not PII

The SID of the Messaging Service to be used to send SMS to the country of this configuration.

dateCreated
date_time<iso8601> Not PII

The date and time in GMT when the resource was created specified in RFC 2822 format.

dateUpdated
date_time<iso8601> Not PII

The date and time in GMT when the resource was last updated specified in RFC 2822 format.

url
url Not PII

The URL of this resource.

Create a Messaging Configuration

post
https://verify.twilio.com/v2/Services/{ServiceSid}/MessagingConfigurations
Parameters
Names in None format
service_sid
Required
post sid<VA> Not PII

The SID of the Service that the resource is associated with.

country
Required
post string Not PII

The ISO-3166-1 country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value all.

messaging_service_sid
Required
post sid<MG> Not PII

The SID of the Messaging Service to be used to send SMS to the country of this configuration.

Example 1
        
        
        
        

        Fetch a Messaging Configuration

        get
        https://verify.twilio.com/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}
        Parameters
        Names in None format
        service_sid
        Required
        get sid<VA> Not PII

        The SID of the Service that the resource is associated with.

        country
        Required
        get string Not PII

        The ISO-3166-1 country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value all.

        Example 1
              
              
              
              

              List all Messaging Configurations

              get
              https://verify.twilio.com/v2/Services/{ServiceSid}/MessagingConfigurations
              Parameters
              Names in None format
              service_sid
              Required
              get sid<VA> Not PII

              The SID of the Service that the resource is associated with.

              Example 1
                    
                    
                    
                    

                    Update a Messaging Configuration

                    post
                    https://verify.twilio.com/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}
                    Parameters
                    Names in None format
                    service_sid
                    Required
                    post sid<VA> Not PII

                    The SID of the Service that the resource is associated with.

                    country
                    Required
                    post string Not PII

                    The ISO-3166-1 country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value all.

                    messaging_service_sid
                    Required
                    post sid<MG> Not PII

                    The SID of the Messaging Service to be used to send SMS to the country of this configuration.

                    Example 1
                          
                          
                          
                          

                          Delete a Messaging Configuration

                          delete
                          https://verify.twilio.com/v2/Services/{ServiceSid}/MessagingConfigurations/{Country}
                          Parameters
                          Names in None format
                          service_sid
                          Required
                          delete sid<VA> Not PII

                          The SID of the Service that the resource is associated with.

                          country
                          Required
                          delete string Not PII

                          The ISO-3166-1 country code of the country this configuration will be applied to. If this is a global configuration, Country will take the value all.

                          Example 1
                                
                                
                                
                                
                                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 browsing the Twilio tag on Stack Overflow.