Lesson 3

Integrating Twilio Accounts

This lesson explains how to integrate and manage custom Twilio accounts in Bland AI.

Learning Objectives:

  • Create encrypted keys for Twilio accounts using POST operations

  • Delete encrypted keys and upload inbound phone numbers using POST operations

  • Manage inbound phone numbers and other Twilio settings

Enterprise customers can connect their Twilio account to Bland to easily transfer existing phone numbers, integrations, and more.

TABLE OF CONTENTS

    Step 1:  Get Twilio Credentials

    Enterprise customers can connect their Twilio account to Bland to easily transfer existing phone numbers, integrations, and more.

    Step 2: 
    Using the Encrypted Key in Outbound Calls

    Include encrypted_key in the headers (in addition to the “Authorization” header) of your API requests. This will ensure  that the account’s credentials are used to make the call.

    {

        "Authorization": "BLAND_API_KEY",

        "encrypted_key": "YOUR_ENCRYPTED_KEY"

    }

    Please note:

    • You can set your “from” number in the API request. This will need to be a number owned by that Twilio account (and not one purchased through Bland).

    • If a “from” is not specified a number listed in the specified Twilio account will be randomly selected..

    Step 3: Uploading Inbound Numbers

    First, goo to your Twilio Console and select the phone number(s) you would like to use).Then upload those numbers through the API.

    Step 4:
    Configuring Inbound Numbers/Webhooks

    Once you update an inbound number through the Dev Portal or API, that number will automatically be configured to run on Bland’s infrastructure. No additional steps are required.

    Table of contents
      Scroll to top