# Surge

```json
{
  "name": "Surge",
  "slug": "surge",
  "url": "https://composio.dev/toolkits/surge",
  "markdown_url": "https://composio.dev/toolkits/surge.md",
  "logo_url": "https://logos.composio.dev/api/surge",
  "categories": [
    "collaboration & communication"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-12-01T05:39:25.819Z"
}
```

![Surge logo](https://logos.composio.dev/api/surge)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Surge MCP or direct API to send text messages, manage contacts, organize phone numbers, and run campaigns through natural language.

## Summary

Surge is a communications API for text messages, contacts, phone numbers, and campaigns.
It helps businesses manage messaging workflows and customer communications programmatically.

## Categories

- collaboration & communication

## Toolkit Details

- Tools: 49

## Images

- Logo: https://logos.composio.dev/api/surge

## Authentication

- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for Surge.
  - Setup:
    - Configure Api Key credentials for Surge.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Send personalized texts to campaign contacts
- List phone numbers linked to campaigns
- Create a Surge contact from details

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `SURGE_ADD_CONTACT_TO_AUDIENCE` | Add Contact to Audience | Add an existing same-account contact to a manual audience. This changes audience membership, may affect future targeting, and cannot be reversed through the documented Surge API because no membership-removal operation exists. |
| `SURGE_ARCHIVE_ACCOUNT` | Archive Account | Irreversibly archive a Surge account. This releases every associated phone number, deactivates every campaign, and makes the account unusable for sending messages; future messaging requires new numbers and campaigns. |
| `SURGE_BLOCK_CONTACT` | Block Contact | Block incoming Surge-handled calls and SMS/MMS from a number across an account. This changes inbound handling; direct SIP-trunk and AI-agent SIP calls are not filtered, blocked messages still count toward inbound usage, and STOP/START consent handling still applies. Use Unblock Contact to remove the block. Repeating an existing block returns it without changing its reason or creation time. |
| `SURGE_CHECK_ACCOUNT_STATUS` | Check Account Status | Check a Surge account's readiness for local or toll-free messaging and return any errors or missing fields. |
| `SURGE_CHECK_VERIFICATION` | Check Verification | Check a recipient-provided six-digit OTP against an existing Surge verification. A correct code marks it verified; an incorrect code increments the attempt count and can exhaust it. Expired, exhausted, and already-verified outcomes are returned as results. This action does not send another code. |
| `SURGE_CREATE_ACCOUNT` | Create Account | Create a persistent Surge account. Surge documents no non-destructive cleanup: the only account cleanup is irreversible archive, which can release numbers. Supplying organization.mobile_number for a sole proprietor may send an external verification SMS that cannot be recalled. |
| `SURGE_CREATE_AUDIENCE` | Create Audience | Create a persistent manual audience in a Surge account. Surge documents no audience delete or archive operation, so this action cannot clean up the created audience. |
| `SURGE_CREATE_CAMPAIGN` | Create Campaign | Create and submit a Surge messaging campaign for carrier registration, or import one using its TCR ID. Standard low- and high-volume registration incurs the corresponding paid carrier setup fee when Surge receives the request; high-volume phone numbers are also charged at the high-volume rate. |
| `SURGE_CREATE_CONTACT` | Create Contact | Create a persistent Surge contact. Creating a contact does not prove recipient consent, and outbound_disabled changes whether the new contact may receive outbound messages. Surge documents no non-destructive contact deletion operation; this action does not itself send a message. |
| `SURGE_CREATE_TOLL_FREE_CAMPAIGN` | Create Toll-Free Campaign | Create a registration for an already purchased toll-free number and submit it for carrier review. This paid workflow creates a persistent campaign; review can reject the submitted registration, and HTTP 409 means the phone number already has a toll-free campaign. |
| `SURGE_CREATE_USER` | Create User | Create a persistent embedded-component user in a Surge account. The user can later receive signed embed credentials. Use Delete User for permanent cleanup; deletion also revokes access to embedded components. |
| `SURGE_CREATE_USER_TOKEN` | Create User Token | Issue a signed bearer token for a Surge embedded user. By default the credential is write-capable and permits sends, read-state changes, contact edits, and calls; set read_only=true to disable those operations. The token uses a 900-second lifetime when duration_seconds is omitted, cannot be revoked through the documented API, and remains valid until expiry. Never log, store, or expose it beyond the intended embed client. |
| `SURGE_CREATE_VERIFICATION` | Create Verification | Create a phone-number verification and immediately send an external SMS containing a one-time verification code. The send cannot be recalled, repeated requests are rate limited, and Surge documents billing for successful verifications. Use only with the recipient's consent to receive the code. |
| `SURGE_DELETE_RECORDING` | Delete Recording | Irreversibly delete a Surge call recording. Surge removes the recording file from storage asynchronously, so file deletion may not be immediate. |
| `SURGE_DELETE_USER` | Delete User | Irreversibly delete a Surge user and revoke their access to all embedded components. Subsequent access attempts for the deleted user return 404 Not Found. |
| `SURGE_DOWNLOAD_ATTACHMENT_FILE` | Download Attachment File | Download a Surge message attachment up to 25 MB and return a downloadable file reference. |
| `SURGE_DOWNLOAD_RECORDING_FILE` | Download Recording File | Download a Surge recording audio file up to 25 MB and return a downloadable file reference. |
| `SURGE_GET_ACCOUNT` | Get Account | Retrieve one Surge account by ID with its internal name, public brand name, time zone, and organization details. |
| `SURGE_GET_CAMPAIGN` | Get Campaign | Retrieve one Surge messaging campaign and its registration details. |
| `SURGE_GET_CONTACT` | Get Contact | Retrieve one Surge contact by ID with phone number, profile fields, outbound messaging status, and metadata. |
| `SURGE_GET_MESSAGE` | Get Message | Retrieve one Surge message by ID with its current delivery status, body, conversation, attachments, metadata, and failure details. |
| `SURGE_GET_PHONE_NUMBER` | Get Phone Number | Retrieve one phone number assigned to Surge by ID with its number, type, display name, metadata, and campaign attachment details. |
| `SURGE_GET_RECORDING` | Get Recording | Retrieve one Surge call recording by ID with its duration and originating call. |
| `SURGE_GET_TOLL_FREE_CAMPAIGN` | Get Toll-Free Campaign | Retrieve one Surge toll-free campaign by ID with registration and consent details. |
| `SURGE_GET_USER` | Get User | Retrieve one Surge user by ID, including profile fields and metadata. |
| `SURGE_LIST_ACCOUNTS` | List Accounts | Return one page of Surge accounts available to the connected project, including the account IDs needed by account-scoped tools. |
| `SURGE_LIST_AUDIENCE_CONTACTS` | List Audience Contacts | Return one cursor-paginated page of contacts in a Surge audience. |
| `SURGE_LIST_AVAILABLE_PHONE_NUMBERS` | List Available Phone Numbers | Return one page of phone numbers available for purchase from Surge inventory. This action only browses inventory and does not purchase a number. |
| `SURGE_LIST_BLOCKED_CONTACTS` | List Blocked Contacts | Return one page of an account's blocked contacts, newest first. |
| `SURGE_LIST_CAMPAIGNS` | List Campaigns | Return one page of messaging campaigns registered for a Surge account. |
| `SURGE_LIST_CONTACTS` | List Contacts | Return one page of contacts for a Surge account, including IDs, phone numbers, names, messaging status, and metadata. |
| `SURGE_LIST_MESSAGES` | List Messages | Return one page of sent and received messages for a Surge account with status, body, conversation, attachment, failure, and metadata details. |
| `SURGE_LIST_PHONE_NUMBERS` | List Phone Numbers | Return one page of phone numbers already assigned to a Surge account, including type, display name, metadata, and campaign attachment details. |
| `SURGE_LIST_RECORDINGS` | List Recordings | Return one cursor-paginated page of call recordings for a Surge account. |
| `SURGE_LIST_TOLL_FREE_CAMPAIGNS` | List Toll-Free Campaigns | Return one cursor-paginated page of toll-free campaigns for a Surge account. |
| `SURGE_LIST_USERS` | List Users | Return one cursor-paginated page of users belonging to a Surge account. |
| `SURGE_PURCHASE_PHONE_NUMBER` | Purchase Phone Number | Purchase a Surge phone number for an account. This is a paid purchase that requires an active paid plan and starts recurring monthly number charges. Providing phone_number selects that exact inventory number and causes Surge to ignore the other search parameters. |
| `SURGE_RELEASE_PHONE_NUMBER` | Release Phone Number | Irreversibly release a phone number from the Surge account so it can no longer be used there. The released number remains billable for the current month. |
| `SURGE_RESEND_BRAND_VERIFICATION_OTP` | Resend Brand Verification OTP | Enqueue an external SMS containing a brand-verification one-time password for a sole-proprietor Surge account awaiting identity verification. This asynchronous send cannot be recalled; repeated calls can send another OTP and may consume messaging usage. |
| `SURGE_RETRIEVE_ACCOUNT_USAGE` | Retrieve Account Usage | Return priced Surge usage for an account over an inclusive-start, exclusive-end UTC window of at most 90 days. |
| `SURGE_SEND_BLAST` | Send Blast | Create a Surge blast that performs an irreversible bulk external SMS/MMS send, immediately or at send_at. A successful blast cannot be recalled, can consume billed messaging usage, and may expand audience IDs to many recipients. Use only when every recipient has consented and the sender is authorized. Surge downloads supplied attachment URLs. |
| `SURGE_SEND_MESSAGE` | Send Message | Create and enqueue an external SMS or MMS through Surge, immediately or up to 60 days in the future. A valid send cannot be recalled, can consume trial or paid messaging usage, and remains asynchronous. Conversation details may create contact/conversation state, and Surge downloads supplied attachment URLs. Use only with confirmed recipient consent and sender authorization. |
| `SURGE_UNBLOCK_CONTACT` | Unblock Contact | Remove an account-level phone-number block. This changes the block relation only: it does not delete the contact, message history, or messaging consent, and the number can be blocked again. |
| `SURGE_UPDATE_ACCOUNT` | Update Account | Update an account's internal name, public-facing brand name, legal organization details, or headquarters time zone. Omitted fields are preserved; set time_zone to null to clear it. Supplying organization.mobile_number for a sole proprietor may send an external verification SMS. |
| `SURGE_UPDATE_CAMPAIGN` | Update Campaign | Update supplied campaign registration fields and resubmit the campaign for carrier review. Omitted fields keep their stored values; arrays replace stored arrays, includes=[] clears all inclusion flags, and an empty update still resubmits the existing registration. Re-read and compare the campaign immediately before this call and abort on drift. Changing the volume tier may affect paid carrier setup and ongoing number charges. |
| `SURGE_UPDATE_CONTACT` | Update Contact | Update a Surge contact's phone number, email, name, metadata, or outbound messaging setting. Surge requires phone_number on every update; omitted optional fields remain unchanged, but supplied metadata replaces the complete metadata map. Include every existing metadata key that should remain. This action does not send a message. |
| `SURGE_UPDATE_PHONE_NUMBER` | Update Phone Number | Update any supplied phone-number fields and resubmit an empty body when no fields are supplied. name changes the display name, metadata is a complete replacement metadata map, and campaign_id attaches a campaign through a paid carrier-registration workflow that may change ongoing number charges. Retrieve the number, re-read and compare its name and metadata immediately before this call, and abort on drift. |
| `SURGE_UPDATE_TOLL_FREE_CAMPAIGN` | Update Toll-Free Campaign | Update a toll-free campaign awaiting customer fixes and resubmit the paid registration for carrier review. Re-read and compare the campaign immediately before this call and abort on drift. HTTP 409 means the campaign is not in an updatable status. |
| `SURGE_UPDATE_USER` | Update User | Update a Surge user's documented profile fields. For a reversible change, retrieve the user, re-read and compare the complete snapshot immediately before this call, and abort on drift. Omitted optional fields are preserved. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to Surge
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["surge"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["surge"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run Surge tools with your agent

Send a request, execute the Surge tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "Send a text message to +1-202-555-0147 saying the appointment is confirmed for tomorrow at 10 AM."}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Send a text message to +1-202-555-0147 saying the appointment is confirmed for tomorrow at 10 AM." }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to Surge and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["surge"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["surge"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a Surge request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to Surge tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("Send a text message to +1-202-555-0147 saying the appointment is confirmed for tomorrow at 10 AM.")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Send a text message to +1-202-555-0147 saying the appointment is confirmed for tomorrow at 10 AM.",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native Surge Integration

- Supports both Surge MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for reading, writing, and querying your Surge data

### 2. Managed Auth

- Built-in OAuth handling with automatic token refresh and rotation
- Central place to manage, scope, and revoke Surge access
- Per user and per environment credentials instead of hard-coded keys

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access Surge
- Scoped, least privilege access to Surge resources
- Full audit trail of agent actions to support review and compliance

## Use Surge with any AI Agent Framework

Choose a framework you want to connect Surge with:

- [ChatGPT](https://composio.dev/toolkits/surge/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/surge/framework/claude-cowork)

## Related Toolkits

- [Gmail](https://composio.dev/toolkits/gmail) - Gmail is Google's email service with powerful spam protection, search, and G Suite integration. It keeps your inbox organized and makes communication fast and reliable.
- [Outlook](https://composio.dev/toolkits/outlook) - Outlook is Microsoft's email and calendaring platform for unified communications and scheduling. It helps users stay organized with powerful email, contacts, and calendar management.
- [Slack](https://composio.dev/toolkits/slack) - Slack is a channel-based messaging platform for teams and organizations. It helps people collaborate in real time, share files, and connect all their tools in one place.
- [Gong](https://composio.dev/toolkits/gong) - Gong is a platform for video meetings, call recording, and team collaboration. It helps teams capture conversations, analyze calls, and turn insights into action.
- [Microsoft teams](https://composio.dev/toolkits/microsoft_teams) - Microsoft Teams is a collaboration platform that combines chat, meetings, and file sharing within Microsoft 365. It keeps distributed teams connected and productive through seamless virtual communication.
- [Slackbot](https://composio.dev/toolkits/slackbot) - Slackbot is a conversational automation tool for Slack that handles reminders, notifications, and automated responses. It boosts team productivity by streamlining onboarding, answering FAQs, and managing timely alerts—all right inside Slack.
- [2chat](https://composio.dev/toolkits/_2chat) - 2chat is an API platform for WhatsApp and multichannel text messaging. It streamlines chat automation, group management, and real-time messaging for developers.
- [2Chat MCP](https://composio.dev/toolkits/_2chat_mcp) - 2Chat MCP is a hosted messaging service for WhatsApp, SMS, voice numbers, contacts, tags, and conversations. It provides one managed interface for connecting business communications to AI workflows.
- [Agent mail](https://composio.dev/toolkits/agent_mail) - Agent mail provides AI agents with dedicated email inboxes for sending, receiving, and managing emails. It empowers agents to communicate autonomously with people, services, and other agents—no human intervention needed.
- [AgentMail MCP](https://composio.dev/toolkits/agent_mail_mcp) - AgentMail MCP is a hosted email and calendar service for AI agents. It gives agents managed access to inboxes, threads, drafts, files, and events.
- [AgentPhone](https://composio.dev/toolkits/agentphone) - AgentPhone is a communications platform for AI-powered phone numbers, voice calls, messaging, and WhatsApp. It helps you manage agent conversations, contacts, webhooks, and usage from one place.
- [Aircall](https://composio.dev/toolkits/aircall) - Aircall is a cloud-based phone and call-center platform for business communications. It centralizes calls, contacts, teams, numbers, and tags in one place.
- [Android Texter](https://composio.dev/toolkits/android_texter) - Android Texter is an API service that connects Android phones to SMS, MMS, contacts, and device data. Use it to automate mobile messaging without building your own phone-to-API bridge.
- [Basecamp](https://composio.dev/toolkits/basecamp) - Basecamp is a project management and team collaboration tool by 37signals. It helps teams organize tasks, share files, and communicate efficiently in one place.
- [Blooio](https://composio.dev/toolkits/blooio) - Blooio is a stable v2 API platform for messaging, chats, contacts, groups, phone numbers, and account analytics. It gives teams a clean way to build reliable communication workflows without stitching together fragile custom APIs.
- [Callback24](https://composio.dev/toolkits/callback24) - Callback24 is a telephony API for managing phone calls, users, services, and routing groups. It centralizes call control and routing to automate voice workflows and operations.
- [CallOnTheGo](https://composio.dev/toolkits/callonthego) - CallOnTheGo is a telephony API for managing phone numbers, caller IDs, suppression lists, audio assets, contact lists, and Voice AI campaigns. It provides programmatic control over calling infrastructure and campaign automation for scalable voice outreach.
- [Carbon Voice MCP](https://composio.dev/toolkits/carbon_voice_mcp) - Carbon Voice MCP is a voice-first collaboration platform for messages, conversations, and workflows. Use it to centralize voice communications and streamline team collaboration.
- [CardClan](https://composio.dev/toolkits/cardclan) - CardClan is a digital card platform for creating and sending personalized team cards. Use it to celebrate moments, share card links, and manage card workflows without extra coordination.
- [Chatwork](https://composio.dev/toolkits/chatwork) - Chatwork is a team communication platform with group chats, file sharing, and task management. It helps businesses boost collaboration and streamline productivity.

## Frequently Asked Questions

### Do I need my own developer credentials to use Surge with Composio?

Yes, Surge requires you to configure your own API key credentials. Once set up, Composio handles secure credential storage and API request handling.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
