Twilio
The Twilio book enables users to interact with and manage their communications via the Twilio API.
Last updated
Was this helpful?
The Twilio book enables users to interact with and manage their communications via the Twilio API.
Last updated
Was this helpful?
Twilio provides a comprehensive communication platform, offering features such as SMS, voice calls, video, and chat. Ideal for businesses and developers seeking reliable and scalable communication solutions. The Twilio book ensures secure and seamless access to these services.
This Book supports the connectivity methods described in this section. Here, you will find information about what information is required to employ each method.
Establishes a connection to the Twilio API using the provided account SID and auth token.
Account SID
The Account SID from your Twilio account.
text
Auth Token
The Auth Token from your Twilio account.
text
Typically between mobile phones.
sid
The unique, Twilio-provided string that identifies the Message resource.
text?
body
The text content of the message
text?
num_segments
text?
sender_number
text?
recipient_number
text?
price
number?
account_sid
text
num_media
The number of media files associated with the Message resource.
number
status
text?
messaging_service_sid
text
date_sent
datetime?
date_created
datetime?
date_updated
datetime?
price_unit
text
error_code
number?
error_message
The description of the error_code
if the Message status
is failed
or undelivered
. If no error was encountered, the value is null
.
text?
The number of segments that make up the complete message. SMS message bodies that exceed the are segmented and charged as multiple messages. Note: For messages sent via a Messaging Service, num_segments
is initially 0
, since a sender hasn't yet been assigned
The sender's phone number (in format), , , , or (e.g., whatsapp:+15554449999
). For incoming messages, this is the number or channel address of the sender. For outgoing messages, this value is a Twilio phone number, alphanumeric sender ID, short code, or channel address from which the message is sent
The recipient's phone number (in format) or (e.g. whatsapp:+15552229999
)
The amount billed for the message in the currency specified by price_unit
. The price
is populated after the message has been sent/received, and may not be immediately availalble. View the for more details.
The SID of the associated with the Message resource
The status of the message, for more information about possible statuses see
The SID of the associated with the Message resource. A unique default value is assigned if a Messaging Service is not used.
The timestamp (in GMT) of when the Message was sent. For an outgoing message, this is when Twilio sent the message. For an incoming message, this is when Twilio sent the HTTP request to your incoming message webhook URL.
The timestamp (in GMT) of when the Message resource was created
The timestamp (in GMT) of when the Message resource was last updated
The currency in which price
is measured, in format (e.g. usd
, eur
, jpy
).
The returned if the Message status
is failed
or undelivered
. If no error was encountered, the value is null
.