Skip to main content

Twilio

The Twilio agent connector is a Python package that equips AI agents to interact with Twilio through strongly typed, well-documented tools. It's ready to use directly in your Python app, in an agent framework, or exposed through an MCP.

Connector for the Twilio REST API. Provides read access to core Twilio resources including accounts, calls, messages, recordings, conferences, incoming phone numbers, usage records, addresses, queues, transcriptions, and outgoing caller IDs. Uses HTTP Basic authentication with Account SID and Auth Token.

Example questions

The Twilio connector is optimized to handle prompts like these.

  • List all calls from the last 7 days
  • Show me recent inbound SMS messages
  • List all active phone numbers on my account
  • Show me details for a specific call
  • List all recordings
  • Show me conference calls
  • List usage records for my account
  • Show me all queues
  • List outgoing caller IDs
  • Show me addresses on my account
  • List transcriptions
  • What are my top 10 most expensive calls this month?
  • How many SMS messages did I send vs receive in the last 30 days?
  • Summarize my usage costs by category
  • Which phone numbers have the most incoming calls?
  • Show me all failed messages and their error codes
  • What is the average call duration for outbound calls?

Unsupported questions

The Twilio connector isn't currently able to handle prompts like these.

  • Send a new SMS message
  • Make a phone call
  • Purchase a new phone number
  • Delete a recording
  • Create a new queue

Installation

uv pip install airbyte-agent-twilio

Usage

Connectors can run in open source or hosted mode.

Open source

In open source mode, you provide API credentials directly to the connector.

from airbyte_agent_twilio import TwilioConnector
from airbyte_agent_twilio.models import TwilioAuthConfig

connector = TwilioConnector(
    auth_config=TwilioAuthConfig(
        account_sid="<Your Twilio Account SID (starts with AC)>",
        auth_token="<Your Twilio Auth Token>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@TwilioConnector.tool_utils
async def twilio_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Hosted

In hosted mode, API credentials are stored securely in Airbyte Cloud. You provide your Airbyte credentials instead. If your Airbyte client can access multiple organizations, also set organization_id.

This example assumes you've already authenticated your connector with Airbyte. See Authentication to learn more about authenticating. If you need a step-by-step guide, see the hosted execution tutorial.

from airbyte_agent_twilio import TwilioConnector, AirbyteAuthConfig

connector = TwilioConnector(
    auth_config=AirbyteAuthConfig(
        customer_name="<your_customer_name>",
        organization_id="<your_organization_id>",  # Optional for multi-org clients
        airbyte_client_id="<your-client-id>",
        airbyte_client_secret="<your-client-secret>"
    )
)

@agent.tool_plain # assumes you're using Pydantic AI
@TwilioConnector.tool_utils
async def twilio_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Full documentation

Entities and actions

This connector supports the following entities and actions. For more details, see this connector's full reference documentation.

Entity Actions
Accounts List, Get, Context Store Search
Calls List, Get, Context Store Search
Messages List, Get, Context Store Search
Incoming Phone Numbers List, Get, Context Store Search
Recordings List, Get, Context Store Search
Conferences List, Get, Context Store Search
Usage Records List, Context Store Search
Addresses List, Get, Context Store Search
Queues List, Get, Context Store Search
Transcriptions List, Get, Context Store Search
Outgoing Caller Ids List, Get, Context Store Search

Authentication

For all authentication options, see the connector's authentication documentation.

Twilio API docs

See the official Twilio API reference.

Version information

  • Package version: 0.1.18
  • Connector version: 1.0.4
  • Generated with Connector SDK commit SHA: c5258debd165ab701252c1436d4acfb475bf92b9
  • Changelog: View changelog

Metadata

Release files for airbyte-agent-twilio 0.1.18

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for airbyte-agent-twilio 0.1.18
File Size Uploaded
airbyte_agent_twilio-0.1.18.tar.gz 174.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for airbyte-agent-twilio 0.1.18
File Interpreter ABI Platform
airbyte_agent_twilio-0.1.18-py3-none-any.whl Python 3 none any Details

Total release size: 374.0 kB

Release files / airbyte_agent_twilio-0.1.18.tar.gz

Download URL airbyte_agent_twilio-0.1.18.tar.gz
Size 174.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f4057873a28c219620271b160d0b4043f949b073e182b803b9bc200ddbeae683
BLAKE2b-256 checksum
How to use checksums
508c506ce0cf459207a60c9cb64f058f2d5dbbe9d7311792035dc8a9183590af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release files / airbyte_agent_twilio-0.1.18-py3-none-any.whl

Download URL airbyte_agent_twilio-0.1.18-py3-none-any.whl
Size 199.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
096efde344326aeed2ddf8b2b37a3eac8acbb90fc3276e6b1b027e6b7cf430e3
BLAKE2b-256 checksum
How to use checksums
c0fb31e53e4200f64299c6d3c533124c70fe11c1dad34ef58ea57573454399d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

0.1.18 This release

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page