Menu

Expand
Rate this page:

Supporting Documents Resource

The v2 Regulatory Compliance APIs are currently in Public Beta. No breaking changes in the API contract will occur when the API moves from Public Beta to GA.

The Supporting Documents resource of Twilio's Regulatory Compliance APIs allows you to create new Supporting Documents with metadata to fulfill Regulations. Each Supporting Document Type may need different information to be compliant, so be sure to pass all of the correct values when creating a new Supporting Document Type.

A collection of Supporting Documents Assigned as Items to a Regulatory Bundle along with an End-User satisfies a Regulation.

Supporting Documents Response Properties

The field of the Supporting Documents resource responds is in JSON. The type SID <RD> is a unique ID starting with letters RD that reference a unique Supporting Document instance. For more information about Twilio SIDs, please refer to Twilio's glossary on SIDs.

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

The unique string created by Twilio to identify the Supporting Document resource.

account_sid
sid<AC> Not PII

The SID of the Account that created the Document resource.

friendly_name
string Not PII

The string that you assigned to describe the resource.

mime_type
string Not PII

The image type uploaded in the Supporting Document container.

status
enum:status Not PII

The verification status of the Supporting Document resource.

failure_reason
string Not PII

The failure reason of the Supporting Document Resource.

type
string Not PII

The type of the Supporting Document.

attributes

The set of parameters that are the attributes of the Supporting Documents resource which are listed in the Supporting Document Types.

date_created
date_time<iso8601> Not PII

The date and time in GMT when the resource was created specified in ISO 8601 format.

date_updated
date_time<iso8601> Not PII

The date and time in GMT when the resource was last updated specified in ISO 8601 format.

url
url Not PII

The absolute URL of the Supporting Document resource.

Supporting Document Statuses

The following statuses encompass the Bundle lifecycle.

Status Description
draft The draft status of the Supporting Document allows users to edit the Supporting Document file and metadata.
pending-review When the user has finished the draft and submits the Supporting Document for review, the status moves from draft to pending-review, awaiting Twilio's.
rejected Twilio has reviewed the Supporting Document and has determined the Supporting Document does not comply with the regulations.
approved Twilio has reviewed the Supporting Document and has determined the Supporting Document does not comply with the regulations.
expired The document has expired and is no longer valid to provision phone numbers. An updated document must be created and added to a new or existing Bundle.

Create a Supporting Document

post
https://numbers.twilio.com/v2/RegulatoryCompliance/SupportingDocuments

To provision or port in a phone number to Twilio, you will need to create one or many Supporting Documents that also may need an image as proof.

A Supporting Document is a container that holds metadata of a legal document. Each Supporting Document Type requires a different value during the create operation.

The Regulation may need the End-User to upload an image as proof for the Supporting Document. Formats accepted are JPEG, PNG, and PDF, with a file size limit of 5 MB.

Parameters
Parameters in REST API format
friendly_name
Required
post string Not PII

The string that you assigned to describe the resource.

type
Required
post string Not PII

The type of the Supporting Document.

attributes
Optional
post object PII MTL: 30 DAYS

The set of parameters that are the attributes of the Supporting Documents resource which are derived Supporting Document Types.

Example 1
Loading Code Sample...
        
        

        Create a Supporting Document

        Example 2
        Loading Code Sample...
              
              

              Create a Supporting Document and upload a file

              Fetch a Supporting Document instance

              get
              https://numbers.twilio.com/v2/RegulatoryCompliance/SupportingDocuments/{Sid}
              Parameters
              Parameters in REST API format
              sid
              Path
              get sid<RD> Not PII

              The unique string created by Twilio to identify the Supporting Document resource.

              Example 1
              Loading Code Sample...
                    
                    

                    Fetch a Supporting Document instance

                    Retrieve a list of Supporting Documents

                    get
                    https://numbers.twilio.com/v2/RegulatoryCompliance/SupportingDocuments
                    Example 1
                    Loading Code Sample...
                          
                          

                          Retrieve a list of Supporting Documents

                          Update a Supporting Document Instance

                          post
                          https://numbers.twilio.com/v2/RegulatoryCompliance/SupportingDocuments/{Sid}
                          Parameters
                          Parameters in REST API format
                          sid
                          Path
                          post sid<RD> Not PII

                          The unique string created by Twilio to identify the Supporting Document resource.

                          friendly_name
                          Optional
                          post string Not PII

                          The string that you assigned to describe the resource.

                          attributes
                          Optional
                          post object PII MTL: 30 DAYS

                          The set of parameters that are the attributes of the Supporting Document resource which are derived Supporting Document Types.

                          Example 1
                          Loading Code Sample...
                                
                                

                                Update a Supporting Document instance

                                Delete a Supporting Document instance

                                delete
                                https://numbers.twilio.com/v2/RegulatoryCompliance/SupportingDocuments/{Sid}

                                The DELETE operation is allowed for Supporting Documents with status of DRAFT, APPROVED, or REJECTED and have no active Long Code phone number assignments.

                                Parameters
                                Parameters in REST API format
                                sid
                                Path
                                delete sid<RD> Not PII

                                The unique string created by Twilio to identify the Supporting Document resource.

                                Example 1
                                Loading Code Sample...
                                      
                                      

                                      Delete a Supporting Document instance

                                      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