Skip to main content

Connect Twilio

Twilio is a cloud communications platform providing APIs for SMS, voice, video, and authentication. The Twilio integration imports your daily usage and cost data into DoiT Cloud Intelligence so you can analyze Twilio spending in Cloud Analytics.

Prerequisitesโ€‹

  • A Twilio account with Administrator or Developer role.
  • A DoiT account with the Billing Profiles Admin permission.

Required credentialsโ€‹

FieldDescriptionWhere to find it
Account SIDYour Twilio account identifier (starts with AC)Twilio console โ†’ Account Dashboard โ†’ Account Info
Account NameA display name for this account in reportsYou choose this name (recommended: use your Twilio account name)
API CredentialsAPI key SID and secret in api_key_sid:api_secret formatCreate at Twilio console โ†’ Admin โ†’ Account management โ†’ API keys & tokens

Create a Standard API keyโ€‹

  1. Sign in to the Twilio console.

  2. Navigate to Admin โ†’ Account management โ†’ API keys & tokens.

  3. Select Create API key.

  4. For Key type, select Standard.

  5. Enter a friendly name (e.g. doit-integration).

  6. Select Create.

  7. Copy the SID and Secret, and combine them as api_key_sid:api_secret.

    Caution

    The secret is only shown once. Make sure to copy it before closing the page.

Connect your Twilio accountโ€‹

  1. Sign in to DoiT Cloud Intelligence, navigate to Data ingestion and integrations โ†’ Assets.

  2. Select Twilio from the left-hand menu, and then select Connect new account.

  3. Enter your Account SID, Account Name, and API Credentials (in api_key_sid:api_secret format).

  4. Select Test connection to verify DoiT can access your Twilio data.

  5. If the test is successful, select Save to complete the setup.

    If the test fails or you need further assistance, please open an expert inquiry.

Note

Upon initial connection, DoiT ingests your historical usage data. The import process can take a few hours. You'll receive an email when the data is available in Cloud Analytics.

Data refreshโ€‹

DoiT refreshes your Twilio data daily. Data typically becomes available within 48 hours of being generated by Twilio.

Reporting dimensionsโ€‹

Once connected, Twilio data maps to the following standard Cloud Analytics dimensions:

Cloud Analytics dimensionTwilio valueExample
ProviderTwilioTwilio
Billing AccountAccount SIDACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Project/Account IDAccount SIDACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ServiceUsage categorysms, calls, phonenumbers
SKUUsage descriptionSMS - Outbound, Calls - Inbound

In addition to standard dimensions, the following Twilio-specific labels are available:

LabelDescription
CategoryTwilio usage category (e.g. sms, calls, recordings)
Billing AccountThe display name you provided for this account
ServiceHigh-level usage group (Messaging, Voice, Phone Numbers, etc.)

Delete your Twilio connectionโ€‹

  1. Sign in to DoiT Cloud Intelligence, navigate to Data ingestion and integrations โ†’ Assets.

  2. Select Twilio from the left-hand menu.

  3. Select the three dots menu (โ‹ฎ) at the rightmost end of the account you want to remove and select Delete.

  4. Select Delete to confirm.