Menu

Expand
Rate this page:

SHAKEN/STIR Onboarding with the Trust Hub REST API (Direct Customers using Subaccounts)

For general information on the Trust Hub API, go to the Trust Hub API Docs.

This page walks Direct Customers using subaccounts through creating a SHAKEN/STIR Trust Product with the Trust Hub REST API.

Not a Direct Customer using subaccounts? Find the appropriate onboarding instructions below:

Direct Customers using Subaccounts

SHAKEN STIR - Direct Customer using Subaccounts: Create a Primary Business Profile under your Parent Account. Add Phone Numbers from Subaccounts to the Primary Business Profile. Create Trust Product, add phone numbers from Primary Business Profile

1. Create a Primary Business Profile in your Parent Account in the Console's Trust Hub and submit for vetting.

2. Add Phone Number(s) from your Subaccount(s) to your Primary Business Profile

  • This is required before you can add a phone number to your SHAKEN/STIR Trust Product.
  • You'll need your Business Profile's SID
    • To find your Business Profile SID in the Console, navigate to Trust Hub --> Customer Profiles --> View Profile Details.
    • If you'd prefer to use the Trust Hub API to do this, see the Additional API Calls section.
    • Business Profile SIDs start with "BU".
  • You'll also need your Phone Number SID(s) from your subaccount(s).
    • To find your Phone Number SIDs in the Console, first navigate to your subaccount (Settings --> Subaccounts --> View Subaccount), then go to Phone Numbers, and click on the phone number.
    • To find your Phone Number SIDs via API (you'll need your Subaccount SID(s), which can be found in the Console or via API), see the Additional API Calls Section.
    • Phone Number SIDs begin with "PN".
  • In the API Call below, don't change the ChannelEndpointType. It needs to be phone-number to add a phone number to your Business Profile.
Loading Code Sample...
        
        

        Add Phone Number to Primary Business Profile

        3. Create a SHAKEN/STIR Trust Product

        • Note: Do not change the policy_sid from the example below.
        • The response will contain the SID for your Trust Product. You'll need this for the next step.
        Loading Code Sample...
              
              

              Create SHAKEN/STIR Trust Product

              4. Connect your SHAKEN/STIR Trust Product to your Business Profile

              • You'll need your Trust Product's SID. This was returned by the previous API call.
              • You'll need your Business Profile's SID.
              • To retrieve these SIDs via the API, see the Additional API Calls section below. You can also find them in the Console under Trust Hub.
              Loading Code Sample...
                    
                    

                    Connect your SHAKEN/STIR Trust Product to your Business Profile

                    5. Assign phone numbers to your SHAKEN/STIR Trust Product

                    • You'll need the Phone Number SID(s) you assigned to your Business Profile earlier. (Note: Only those phone numbers already assigned to your Primary Business Profile are eligible)
                    • You'll need your Trust Product SID used earlier.
                    • Don't change the ChannelEndpointType
                    • You can complete this step before or after submitting your SHAKEN/STIR Trust Product for vetting
                    • To check your Business Profile's phone numbers via API, see the Additional API Calls section below.
                    Loading Code Sample...
                          
                          

                          Assign Phone Numbers to SHAKEN/STIR Trust Product

                          6. Submit your SHAKEN/STIR Trust Product for vetting

                          • Once it reaches Twilio-Approved status, you will be able to sign outbound calls with “A” level attestation.
                          Loading Code Sample...
                                
                                

                                Submit SHAKEN/STIR Trust Product for Vetting

                                Additional API Calls

                                Loading Code Sample...
                                      
                                      

                                      Find Parent Account and Subaccount SIDs

                                      Loading Code Sample...
                                            
                                            

                                            Get Business Profile SID

                                            Loading Code Sample...
                                                  
                                                  
                                                  Replace $TWILIO_ACCOUNT_SID in the URL with your Subaccount SID

                                                  Get Phone Number SIDs from Subaccount

                                                  Replace $TWILIO_ACCOUNT_SID in the URL with your Subaccount SID
                                                  Loading Code Sample...
                                                        
                                                        

                                                        Get Trust Product SIDs

                                                        Loading Code Sample...
                                                              
                                                              

                                                              Check Business Profile Phone Number Assignments

                                                              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