Twilio
API actions for the Twilio integration.
Twilio
Send SMS messages, retrieve delivery details, and review recent logs using Twilio REST APIs.
Get message details
Retrieve delivery status and metadata for a specific Twilio message SID.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
message_sid | string | Yes | The Twilio message SID to look up. |
Response
{
"body": {},
"from": {},
"message_status": {},
"sid": {},
"status": "mock_value",
"to": {}
}List recent messages
List recent Twilio messages with optional filtering by recipient or sender.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
to_number | string | No | Only include messages sent to this phone number (optional). |
from_number | string | No | Only include messages sent from this Twilio number or messaging service (optional). |
limit | number | No | Maximum number of messages to return (default 20, max 100). |
Response
{
"messages": [
{
"body": {},
"from": {},
"message_status": {},
"sid": {},
"to": {}
}
],
"status": "mock_value"
}Send an SMS message
Send a text message to a single phone number using a Twilio messaging service or phone number.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
to_number | string | Yes | The destination phone number, in E.164 format (e.g., +15551234567). |
from_number | string | Yes | The Twilio phone number or messaging service SID to send the SMS from. |
body | string | Yes | The text content of the SMS message. |
Response
{
"from": {},
"sid": {},
"status": "mock_value",
"to": {}
}