twilio_list_messages

Pack: twilio · Endpoint: https://gateway.pipeworx.io/twilio/mcp

List recent SMS/MMS messages from your Twilio account. Supports filtering by to/from number and pagination.

Parameters

NameTypeRequiredDescription
_accountSidstringyesTwilio Account SID
_authTokenstringyesTwilio Auth Token
limitnumbernoMax messages to return (default 20, max 100)
tostringnoFilter by destination phone number
fromstringnoFilter by sender phone number

Example call

Arguments

{
  "_accountSid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "_authToken": "your-twilio-auth-token",
  "limit": 20
}

curl

curl -X POST https://gateway.pipeworx.io/twilio/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"twilio_list_messages","arguments":{"_accountSid":"ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx","_authToken":"your-twilio-auth-token","limit":20}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('twilio_list_messages', {
  "_accountSid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "_authToken": "your-twilio-auth-token",
  "limit": 20
});

More examples

{
  "_accountSid": "ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
  "_authToken": "your-twilio-auth-token",
  "limit": 50,
  "to": "+15551234567",
  "from": "+15559876543"
}

Response shape

FieldTypeDescription
messagesarrayArray of message objects
pageintegerCurrent page number
page_sizeintegerPage size
totalintegerTotal number of messages
startintegerStart index
endintegerEnd index
uristringAPI URI for this resource
first_page_uristringURI for first page
previous_page_uristring | nullURI for previous page
next_page_uristring | nullURI for next page
Full JSON Schema
{
  "type": "object",
  "properties": {
    "messages": {
      "type": "array",
      "description": "Array of message objects",
      "items": {
        "type": "object",
        "properties": {
          "sid": {
            "type": "string",
            "description": "Message SID"
          },
          "account_sid": {
            "type": "string",
            "description": "Account SID"
          },
          "to": {
            "type": "string",
            "description": "Destination phone number"
          },
          "from": {
            "type": "string",
            "description": "Sender phone number"
          },
          "body": {
            "type": "string",
            "description": "Message body text"
          },
          "status": {
            "type": "string",
            "description": "Message status"
          },
          "date_created": {
            "type": "string",
            "description": "ISO 8601 creation timestamp"
          },
          "date_updated": {
            "type": "string",
            "description": "ISO 8601 update timestamp"
          },
          "date_sent": {
            "type": "string",
            "description": "ISO 8601 sent timestamp"
          },
          "price": {
            "type": [
              "string",
              "null"
            ],
            "description": "Message cost"
          },
          "price_unit": {
            "type": "string",
            "description": "Currency unit"
          }
        }
      }
    },
    "page": {
      "type": "integer",
      "description": "Current page number"
    },
    "page_size": {
      "type": "integer",
      "description": "Page size"
    },
    "total": {
      "type": "integer",
      "description": "Total number of messages"
    },
    "start": {
      "type": "integer",
      "description": "Start index"
    },
    "end": {
      "type": "integer",
      "description": "End index"
    },
    "uri": {
      "type": "string",
      "description": "API URI for this resource"
    },
    "first_page_uri": {
      "type": "string",
      "description": "URI for first page"
    },
    "previous_page_uri": {
      "type": [
        "string",
        "null"
      ],
      "description": "URI for previous page"
    },
    "next_page_uri": {
      "type": [
        "string",
        "null"
      ],
      "description": "URI for next page"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "twilio": {
      "url": "https://gateway.pipeworx.io/twilio/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build May 9, 2026