Lodol Docs

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

ParameterTypeRequiredDescription
message_sidstringYesThe 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

ParameterTypeRequiredDescription
to_numberstringNoOnly include messages sent to this phone number (optional).
from_numberstringNoOnly include messages sent from this Twilio number or messaging service (optional).
limitnumberNoMaximum 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

ParameterTypeRequiredDescription
to_numberstringYesThe destination phone number, in E.164 format (e.g., +15551234567).
from_numberstringYesThe Twilio phone number or messaging service SID to send the SMS from.
bodystringYesThe text content of the SMS message.

Response

{
  "from": {},
  "sid": {},
  "status": "mock_value",
  "to": {}
}

On this page