メニュー

Expand
ページを評価:

Messageリソース

A Message resource represents an inbound or outbound message. Twilio creates a Message when any of the following occur:

With this REST API, you can:

Are you looking for step-by-step instructions for sending your first SMS with Twilio using the helper libraries? Check out one of our SMS quickstarts in your programming language of choice: C#/.NET, Java, Node.js, PHP, Python, or Ruby.

Or, if you're looking to get up and running with the Twilio API for WhatsApp Quickstart: C#/.NET, Java, Node.js, PHP, Python, or Ruby.

Message properties

Resource Properties in REST API format
body
文字列 PII MTL: 30 DAYS

The message text. Can be up to 1,600 characters long.

num_segments
文字列 Not PII

The number of segments that make up the complete message. A message body that is too large to be sent in a single SMS message is segmented and charged as multiple messages. Inbound messages over 160 characters are reassembled when the message is received. Note: When using a Messaging Service to send messages, num_segments will always be 0 in Twilio's response to your API request.

direction
enum:direction Not PII

The direction of the message. Can be: inbound for incoming messages, outbound-api for messages initiated by a REST API, outbound-call for messages initiated during a call, or outbound-reply for messages initiated in response to an incoming message.

from
phone_number PII MTL: 120 DAYS

The phone number (in E.164 format), alphanumeric sender ID, or Wireless SIM that initiated the message. For incoming messages, this will be the number of the sending phone. For outgoing messages, this value will be one of your Twilio phone numbers or the alphanumeric sender ID used.

to
文字列 PII MTL: 120 DAYS

The phone number in E.164 format that received the message. For incoming messages, this will be one of your Twilio phone numbers. For outgoing messages, this will be the sending phone.

date_updated
date_time<rfc2822> Not PII

The date and time in GMT that the resource was last updated specified in RFC 2822 format.

price
文字列 Not PII

The amount billed for the message, in the currency specified by price_unit. Note that your account is charged for each segment we send to the handset. Populated after the message has been sent. May not be immediately available.

error_message
文字列 Not PII

The description of the error_code if your message status is failed or undelivered. If the message was successful, this value is null.

uri
文字列 Not PII

The URI of the resource, relative to https://api.twilio.com.

account_sid
sid<AC> Not PII

The SID of the Account that sent the message that created the resource.

num_media
文字列 Not PII

The number of media files associated with the message. A message can send up to 10 media files.

status
enum:status Not PII

The status of the message. Can be: accepted, scheduled (Beta feature), canceled (Beta feature), queued, sending, sent, failed, delivered, undelivered, receiving, received, or read (WhatsApp only). For more information, See detailed descriptions.

messaging_service_sid
sid<MG> Not PII

The SID of the Messaging Service used with the message. The value is null if a Messaging Service was not used.

sid
sid<MM> Not PII

The unique string that that we created to identify the Message resource.

date_sent
date_time<rfc2822> Not PII

The date and time in GMT that the resource was sent specified in RFC 2822 format. For outgoing messages, this is when we sent the message. For incoming messages, this is when we made the HTTP request to your application.

date_created
date_time<rfc2822> Not PII

The date and time in GMT that the resource was created specified in RFC 2822 format.

error_code
integer? Not PII

The error code returned if your message status is failed or undelivered. The error_code provides more information about the failure. If the message was successful, this value is null.

price_unit
currency Not PII

price で表される額面の通貨単位をISO4127形式で表します。 (例: usd, eur, jpy)。

api_version
文字列 Not PII

The API version used to process the message.

subresource_uris
uri_map Not PII

A list of related resources identified by their URIs relative to https://api.twilio.com

Create a Message resource

post
https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages.json

To send a new outgoing message, make an HTTP POST to this Messages list resource URI.

If you want to send messages while in trial mode, you must first verify your 'To' phone number with Twilio. You can verify your phone number by adding it to your Verified Caller IDs in the console.

When creating a new message via the API, you must include the To parameter. This value should be either a destination phone number or a Channel address. You also need to pass a Body or MediaUrl containing the message's content.

A WhatsApp media message can only contain one media object. Additional MediaURL parameters will be ignored.

You must also include either the From parameter or MessagingServiceSid parameter. You may use MessagingServiceSid if sending your message with a messaging service. Alternatively, you can choose a specific number in a messaging service to set as the From.

There is a slight difference in how Twilio's API responds based on the parameter you include:

  • From: Twilio will validate the phone numbers or Channel addresses synchronously. The API returns either a queued status or an error.
  • MessagingServiceSid: the API will first return a status of accepted. Twilio then determines the optimal From phone number. Any delivery errors will be sent asynchronously to your StatusCallback URL.

If the body of your message is more than 160 GSM-7 characters (or 70 UCS-2 characters), Twilio will send the message as a segmented SMS and charge your account accordingly.

パラメーター
Parameters in REST API format
account_sid
Path
post sid<AC> Not PII

The SID of the Account that will create the resource.

to
必須
post phone_number PII MTL: 120 DAYS

The destination phone number in E.164 format for SMS/MMS or Channel user address for other 3rd-party channels.

status_callback
オプション
post url Not PII

The URL we should call using the status_callback_method to send status information to your application. If specified, we POST these message status changes to the URL: queued, failed, sent, delivered, or undelivered. Twilio will POST its standard request parameters as well as some additional parameters including MessageSid, MessageStatus, and ErrorCode. If you include this parameter with the messaging_service_sid, we use this URL instead of the Status Callback URL of the Messaging Service. URLs must contain a valid hostname and underscores are not allowed.

application_sid
オプション
post sid<AP> Not PII

The SID of the application that should receive message status. We POST a message_sid parameter and a message_status parameter with a value of sent or failed to the application's message_status_callback. If a status_callback parameter is also passed, it will be ignored and the application's message_status_callback parameter will be used.

max_price
オプション
post decimal Not PII

The maximum total price in US dollars that you will pay for the message to be delivered. Can be a decimal value that has up to 4 decimal places. All messages are queued for delivery and the message cost is checked before the message is sent. If the cost exceeds max_price, the message will fail and a status of Failed is sent to the status callback. If MaxPrice is not set, the message cost is not checked.

provide_feedback
オプション
post boolean Not PII

Whether to confirm delivery of the message. Set this value to true if you are sending messages that have a trackable user action and you intend to confirm delivery of the message using the Message Feedback API. This parameter is false by default.

attempt
オプション
post integer Not PII

Total number of attempts made ( including this ) to send out the message regardless of the provider used

validity_period
オプション
post integer Not PII

How long in seconds the message can remain in our outgoing message queue. After this period elapses, the message fails and we call your status callback. Can be between 1 and the default value of 14,400 seconds. After a message has been accepted by a carrier, however, we cannot guarantee that the message will not be queued after this period. We recommend that this value be at least 5 seconds.

force_delivery
オプション
post boolean Not PII

Reserved

content_retention
オプション
post enum:content_retention Not PII

Determines if the message content can be stored or redacted based on privacy settings

address_retention
オプション
post enum:address_retention Not PII

Determines if the address can be stored or obfuscated based on privacy settings

smart_encoded
オプション
post boolean Not PII

Whether to detect Unicode characters that have a similar GSM-7 character and replace them. Can be: true or false.

persistent_action
オプション
post string[] Not PII

Rich actions for Channels Messages.

schedule_type
オプション
post ienum:schedule_type Not PII

Indicates your intent to schedule a message. Pass the value fixed to schedule a message at a fixed time.

send_at
オプション
post date_time<iso8601> Not PII

The time that Twilio will send the message. Must be in ISO 8601 format.

send_as_mms
オプション
post boolean Not PII

If set to True, Twilio will deliver the message as a single MMS message, regardless of the presence of media. This is a Beta Feature.

from
Required if messaging_service_sid is not passed
post phone_number PII MTL: 120 DAYS

A Twilio phone number in E.164 format, an alphanumeric sender ID, or a Channel Endpoint address that is enabled for the type of message you want to send. Phone numbers or short codes purchased from Twilio also work here. You cannot, for example, spoof messages from a private cell phone number. If you are using messaging_service_sid, this parameter must be empty.

messaging_service_sid
Required if from is not passed
post sid<MG> Not PII

The SID of the Messaging Service you want to associate with the Message. Set this parameter to use the Messaging Service Settings and Copilot Features you have configured and leave the from parameter empty. When only this parameter is set, Twilio will use your enabled Copilot Features to select the from phone number for delivery.

body
Required if media_url is not passed
post 文字列 PII MTL: 30 DAYS

The text of the message you want to send. Can be up to 1,600 characters in length.

media_url
Required if body is not passed
post url[] PII MTL: 30 DAYS

The URL of the media to send with the message. The media can be of type gif, png, and jpeg and will be formatted correctly on the recipient's device. The media size limit is 5MB for supported file types (JPEG, PNG, GIF) and 500KB for other types of accepted media. To send more than one image in the message body, provide multiple media_url parameters in the POST request. You can include up to 10 media_url parameters per message. You can send images in an SMS message in only the US and Canada.

例 1
        
        
        
        例 2
              
              
              
              Use the whatsapp: prefix to send a WhatsApp message

              Create a WhatsApp Message

              Use the whatsapp: prefix to send a WhatsApp message
              例 3
                    
                    
                    

                    A note on message rate limiting

                    As you send more messages via the API, Twilio will queue them up for delivery at your prescribed rate limit. API requests for messages that exceed the specified rates will be queued and executed as capacity is available.

                    If your application tries to enqueue more than 4 hours worth of outbound traffic (e.g., enqueuing more than 14,400 messages to Canada over one long code phone number), the API will start returning 429 errors.

                    If you need to enqueue a large volume of messages, you may find that it's helpful to leverage Twilio's Messaging Services. See our guide on how to set up and send messages from a messaging service in your language of choice for more tips.

                    Schedule a Message resource

                    Note: Message Scheduling is currently in public beta.

                    Message scheduling functionality gives you the ability to schedule an SMS, MMS or WhatsApp message for a fixed time in the future.

                    POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages.json

                    To schedule a new outgoing message, make an HTTP POST to the Messages list resource URI shown above with the following two required parameters:

                    • ScheduleType: This parameter indicates your intent to schedule a message. You should pass the value "fixed" to schedule a message to be sent at a fixed time.
                    • SendAt: This parameter indicates when Twilio will send a message. Your datetime should be in ISO-8601 format.

                    In addition to the two scheduling parameters, you must still include the regular parameters to send a message as described in the Create a Message Resource section: To, Body, MediaUrl (if sending an MMS), and MessageServiceSid (you can pass the MessagingServiceSid in either the MessagingServiceSid parameter or the From parameter).

                    Important Considerations for the Message Scheduling Beta Release

                    For the full list of Message Scheduling beta limitations, please see the Message Scheduling FAQ support article. If any of these limitations are blockers, please reach out to us via support@twilio.com:

                    Please note that message scheduling will have the following soft limitations at launch:

                    • Message Scheduling will only be accessible on Messaging Services. You need to pass a MessageServiceSid instead of a From Phone Number in order to schedule messages. If you pass a From Phone number, the scheduling parameters will be dropped from the API request and the message will be sent immediately.
                    • A message must be scheduled at least 60 min in advance of message send time and cannot be scheduled more than 7 days in advance of the request.
                    • If you plan to use message scheduling at scale, please review all the beta limitations in the support article.
                    例 4
                          
                          
                          

                          Note: There is no status callback event for the scheduled status. You can continue to receive existing callback events by including the optional StatusCallBack parameter in the message request.

                          Response Status Codes

                          Valid Parameters: An HTTP 201 (scheduled) will be returned in the synchronous API response when your request parameters are valid. When a message is scheduled, you will see scheduled instead of accepted.

                          Invalid Parameters: An HTTP 400 code will be returned in the API response when your request parameters are invalid.

                          例 5
                                
                                
                                
                                例 6
                                      
                                      
                                      

                                      Note: Ensure that your approved WhatsApp sender is added to the number pool of your Messaging Service you intend to use for scheduling a WhatsApp message.

                                      WhatsApp requires that business-initiated notifications sent by your application be templated and pre-registered, with the exception of messages sent as a reply to a user-initiated message. (See Conversational Messaging on WhatsApp for more details).

                                      When scheduling a WhatsApp message, the check for pre-registered templates will only be done at the time of sending the message and not at the time of scheduling the message. If your message does not adhere to the pre-approved WhatsApp templates in your account, the message will be scheduled and fail at send time.

                                      Canceling Scheduled Messages

                                      Once a message is scheduled, you can cancel it from being sent. See the "Cancel a Scheduled Message" section to learn how to cancel scheduled messages.

                                      Fetch a Message resource

                                      GET
                                      https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json

                                      Returns a single message specified by the provided Message {SID}.

                                      パラメーター
                                      Parameters in REST API format
                                      account_sid
                                      Path
                                      GET sid<AC> Not PII

                                      The SID of the Account that created the Message resource to fetch.

                                      sid
                                      Path
                                      GET sid<MM> Not PII

                                      The Twilio-provided string that uniquely identifies the Message resource to fetch.

                                      例 1
                                            
                                            
                                            

                                            Read multiple Message resources

                                            GET
                                            https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages.json

                                            Returns a list of messages associated with your account. If you are using the Twilio REST API or the Twilio-CLI, the list includes paging information. If you use one of Twilio's Server-Side Helper Libraries, paging happens under the hood.

                                            When getting the list of all messages, results will be sorted on the DateSent field with the most recent messages appearing first.

                                            If you are using the Twilio REST API and plan on requesting more records than will fit on a single page, you may want to use the provided nextpageuri. This method ensures that your next request picks up where it left off and can prevent you from retrieving duplicate data if you are actively sending or receiving messages.

                                            This is not necessary if you are using a Twilio Helper Library, which will automatically handle paging. Take a look at the Helper Library documentation for more information.

                                            You may also filter the list by providing the following query string parameters to the listing resource:

                                            パラメーター
                                            Parameters in REST API format
                                            account_sid
                                            Path
                                            GET sid<AC> Not PII

                                            The SID of the Account that created the Message resources to read.

                                            to
                                            オプション
                                            GET phone_number PII MTL: 120 DAYS

                                            Read messages sent to only this phone number.

                                            from
                                            オプション
                                            GET phone_number PII MTL: 120 DAYS

                                            Read messages sent from only this phone number or alphanumeric sender ID.

                                            date_sent
                                            オプション
                                            GET date_time_inequality<iso8601> Not PII

                                            The date of the messages to show. Specify a date as YYYY-MM-DD in GMT to read only messages sent on this date. For example: 2009-07-06. You can also specify an inequality, such as DateSent<=YYYY-MM-DD, to read messages sent on or before midnight on a date, and DateSent>=YYYY-MM-DD to read messages sent on or after midnight on a date.

                                            例 1
                                                  
                                                  
                                                  
                                                  Get all messages associated with your account

                                                  Read: List all messages

                                                  Get all messages associated with your account
                                                  例 2
                                                        
                                                        
                                                        
                                                        List all messages sent on August 31, 2016 from +15017122661 and to +15558675310

                                                        Read: List messages matching filter criteria

                                                        List all messages sent on August 31, 2016 from +15017122661 and to +15558675310
                                                        例 3
                                                              
                                                              
                                                              
                                                              List all messages sent before March 1st, 2019

                                                              Read: List messages (filter by 'before sent' date)

                                                              List all messages sent before March 1st, 2019
                                                              例 4
                                                                    
                                                                    
                                                                    
                                                                    List all messages sent between January 15th, 2021, 01:23:45 UTC and January 17th, 2021, 01:23:45 UTC

                                                                    Read: List messages (filter by a period of time)

                                                                    List all messages sent between January 15th, 2021, 01:23:45 UTC and January 17th, 2021, 01:23:45 UTC

                                                                    Update a Message resource

                                                                    post
                                                                    https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json

                                                                    Updates the body of a Message resource.

                                                                    This action is primarily used to redact messages: to do so, POST to the above URI and set the Body parameter as an empty string: "". This will allow you to effectively redact the text of a message while keeping the other message resource properties intact.

                                                                    パラメーター
                                                                    Parameters in REST API format
                                                                    account_sid
                                                                    Path
                                                                    post sid<AC> Not PII

                                                                    The SID of the Account that created the Message resources to update.

                                                                    sid
                                                                    Path
                                                                    post sid<MM> Not PII

                                                                    The Twilio-provided string that uniquely identifies the Message resource to update.

                                                                    body
                                                                    オプション
                                                                    post 文字列 PII MTL: 30 DAYS

                                                                    The text of the message you want to send. Can be up to 1,600 characters long.

                                                                    status
                                                                    オプション
                                                                    post ienum:update_status Not PII

                                                                    When set as canceled, allows a message cancelation request if a message has not yet been sent.

                                                                    例 1
                                                                          
                                                                          
                                                                          
                                                                          To redact the message-body from a message record, POST to the instance with an empty Body

                                                                          Update: redact a message

                                                                          To redact the message-body from a message record, POST to the instance with an empty Body

                                                                          Cancel a Scheduled Message

                                                                          Before you use this functionality:

                                                                          1. Ensure the status value of canceled is spelled with one "l", (canceled) and not two (cancelled).
                                                                          2. Ensure that you store the MessageSid of the messages you schedule. You need to reference the MessageSid for each message cancelation request
                                                                          3. There is no bulk cancelation. If you’d like to cancel multiple messages, you must send in a cancelation request for each message and reference the MessageSid.
                                                                          4. There is a new status callback event for "Canceled". You can continue to receive existing callback events by including the optional StatusCallBack parameter in the message request.

                                                                          Note: We make the best attempt to cancel a scheduled message when we receive your request. A message cannot be canceled once it has reached a finalized state.

                                                                          例 2
                                                                                
                                                                                
                                                                                

                                                                                Delete a Message resource

                                                                                削除する
                                                                                https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{Sid}.json

                                                                                メッセージの記録をアカウントから削除します。
                                                                                レコードが削除されるとAPIおよびアカウントポータルに表示されなくなります。

                                                                                成功すると、Bodyのない HTTP 204 (No Content) を返します。

                                                                                Attempting to delete an in-progress message record will result in an error.

                                                                                パラメーター
                                                                                Parameters in REST API format
                                                                                account_sid
                                                                                Path
                                                                                削除する sid<AC> Not PII

                                                                                The SID of the Account that created the Message resources to delete.

                                                                                sid
                                                                                Path
                                                                                削除する sid<MM> Not PII

                                                                                The Twilio-provided string that uniquely identifies the Message resource to delete.

                                                                                Note: Deleting a message will also delete any media associated with the message, unless the same media object is associated with another message on your account that has not been deleted. For example, if you sent 1000 media messages with the same media attachment, that media object would remain accessible until the 1000 message records associated with it were deleted.

                                                                                例 1
                                                                                      
                                                                                      
                                                                                      

                                                                                      Message Media Subresources

                                                                                      Mediaリストサブリソース

                                                                                      Message instance resources have a Media list resource for the set of media elements included with a given Message:

                                                                                      /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media

                                                                                      Mediaインスタンスサブリソース

                                                                                      Message instance resources have Media instance subresources. If media exists on a given message, you can retrieve information about images and other media.

                                                                                      /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{MediaSid}

                                                                                      Appendix

                                                                                      メッセージステータス値

                                                                                      The following are the possible values for the 'Status' parameter:

                                                                                      Status 概要
                                                                                      accepted Twilio has received your API request to send a message with a Messaging Service and a From number is being dynamically selected. This will be the initial status when sending with a Messaging Service and the From parameter.
                                                                                      scheduled The message is scheduled to be sent. This will be the initial status when scheduling a message with a Messaging Service
                                                                                      queued The API request to send a message was successful and the message is queued to be sent out. This will be the initial status when you are not using a Messaging Service
                                                                                      sending Twilioはネットワークで一番近いキャリアにメッセージを送信中です。
                                                                                      sent The nearest upstream carrier accepted the message.
                                                                                      receiving インバウンドメッセージがTwilioで受信され、現在処理中です。
                                                                                      received 受信メッセージ専用です。 いずれかのTwilio番号でメッセージが受信されました。
                                                                                      delivered Twilioは上位キャリアーからのメッセージ送達確認(利用可能な場合は宛先の電話機への送達確認)を受信しました。
                                                                                      undelivered Twilio has received a delivery receipt indicating that the message was not delivered. This can happen for many reasons including carrier content filtering and the availability of the destination handset.
                                                                                      failed メッセージが送信できませんでした。 これはキューのオーバーフロー、アカウントの停止、およびメディアのエラー(MMSの場合)を含むさまざまな理由で起こりえます。 failedのメッセージに対してはTwilioによる課金は行われません。
                                                                                      read On WhatsApp messages only. The message has been delivered and opened by the recipient in the conversation. The recipient must have enabled read receipts.
                                                                                      canceled (Beta feature) The message has been canceled. This status is only accessible when using a Messaging Service

                                                                                      Minimum library values that support "READ" receipts for WhatsApp messages

                                                                                      • C#: 5.30.0
                                                                                      • Java: 7.39.0
                                                                                      • Node: 3.32.0
                                                                                      • PHP: 5.33.0
                                                                                      • Python: 6.28.0
                                                                                      • Ruby: 5.24.0

                                                                                      Back to the Message properties list.

                                                                                      配信関連のエラー

                                                                                      When a message's status is 'failed' or 'undelivered', the ErrorCode and ErrorMessage properties will contain one of the following.

                                                                                      Note that the ErrorMessage is meant to be a human-readable description – the values returned are subject to change in the future. A full list of Twilio Error Codes and troubleshooting tips can help you troubleshoot delivery issues.

                                                                                      エラー コード エラーメッセージ 概要
                                                                                      30001 キューオーバーフロー You tried to send too many messages too quickly, and your message queue overflowed. Try sending your message again after waiting for some time.
                                                                                      30002 アカウントサスペンド メッセージ送信と配送の間にあなたのアカウントがサスペンド状態になりました。
                                                                                      Twilioにご連絡をお願い致します。
                                                                                      30003 到達できない電話機 送信先の電話機の電源がオフになっているか、無効な電話機です。
                                                                                      30004 メッセージがブロックされました The destination number you are trying to reach is blocked from receiving this message (e.g., due to blacklisting).
                                                                                      30005 不明な到達先電話機 あなたが送信しようとしている先の番号は不明か、すでに存在していません。
                                                                                      30006 固定電話回線もしくはキャリアに到達不可 この番号はメッセージの受信ができません。
                                                                                      考えられる原因は、固定電話回線もしくは、ショートコード、到達できないキャリアです。
                                                                                      30007 キャリア違反 Your message was flagged as objectionable by the carrier. To protect their subscribers, many carriers have implemented content or spam filtering. Learn more about carrier filtering
                                                                                      30008 不明なエラー いずれのカテゴリーにも属さないエラーです。
                                                                                      30009 失われたセグメント マルチパートの受信メッセージに関連づけられたひとつ以上のセグメントが受信されませんでした。
                                                                                      30010 メッセージの金額が設定した最大理金額を超えました。 メッセージの料金が、max priceパラメータの値を超えました。

                                                                                      The following ErrorCodes apply only when you are sending a message via WhatsApp or a Channel.

                                                                                      ErrorCode ErrorMessage 概要
                                                                                      63001 Channelがリクエストを認証できませんでした Channelの認証クレデンシャルが不正です。 Console内のChannelページでクレデンシャルを確認するか、Channelとの再認証を行なってください。
                                                                                      63002 ChannelがFromアドレスを見つけられませんでした。 Fromアドレスが構成済みのChannelと一致しませんでした。 Channelページから、正しいChannelエンドポイントアドレスを使用していることを確認してください。
                                                                                      63003 ChannelがFromアドレスを見つけられませんでした Toアドレスが不正です。
                                                                                      63005 Channelが指定されたコンテンツを受け付けませんでした
                                                                                      63006 Channelに対して指定されたコンテンツの書式設定に失敗しました
                                                                                      63007 指定されたFromアドレスのChannelが見つかりませんでした Fromアドレスが構成済みのChannelと一致しませんでした。 Channelページから、正しいChannelエンドポイントアドレスを使用していることを確認してください。
                                                                                      63008 Could not execute the request because the channel module is misconfigured TwilioでChannel構成を確認してください。
                                                                                      63009 リクエストの実行時にChannelがエラーを返しました 詳細情報については、Channel固有のエラーメッセージを参照してください。
                                                                                      63010 Channels - Twilio内部エラー
                                                                                      63012 Channelが、リクエストの完了を妨げる内部エラーを返しました
                                                                                      63013 Channelプロバイダーのポリシーに違反したため、メッセージの送信に失敗しました。 詳細情報については、Channel固有のエラーメッセージを参照してください。
                                                                                      63014 ユーザーアクションによってブロックされたため、そのユーザーへのメッセージ配信に失敗しました。 詳細情報については、Channel固有のエラーメッセージを参照してください。

                                                                                      Back to the Message properties list.

                                                                                      NumSegmentsプロパティ

                                                                                      For outbound messages, this property indicates the number of SMS messages it took to deliver the body of the message.

                                                                                      If the body of a message is more than 160 GSM-7 characters (or 70 UCS-2 characters), Twilio will segment and annotate your messages to attempt proper reassembly on the recipient's handset (not supported by all carriers and handsets). This ensures your body text transmits with the highest fidelity.

                                                                                      On inbound messages, this property indicates the number of SMS messages that make up the message received.

                                                                                      If the body of a message is more than 160 GSM-7 characters (or 70 UCS-2 characters), Twilio will attempt to reassemble the message received by your Twilio phone number. All carriers and handsets do not necessarily support this.

                                                                                      それぞれのセグメントの送受信に課金されます。

                                                                                      Back to the Message properties list.

                                                                                      StatusCallback Request Parameters

                                                                                      The parameters Twilio passes to your application in its request to the StatusCallback URL include a subset of the standard request parameters and these additional parameters:

                                                                                      パラメーター 概要
                                                                                      MessageStatus The status of the message. Message delivery information is reflected in message status. The possible values are listed in the Message resource.
                                                                                      ErrorCode The error code (if any) associated with your message. If your message status is failed or undelivered, the ErrorCode can give you more information about the failure. If the message was delivered successfully, no ErrorCode will be present. Find the possible values here.
                                                                                      ChannelInstallSid メッセージの送信に使用される、インストール済のChannelのSID(Channel詳細ページにて確認できます)です。 Channelを使用して送信されるメッセージにのみ存在します。
                                                                                      ChannelStatusMessage メッセージの配信失敗時にChannelによって返されるエラーメッセージです。 メッセージがChannelによって送信され、かつ配信に失敗した場合にのみ存在します。
                                                                                      ChannelPrefix このメッセージの送信されたChannelを識別するためのChannel固有のプレフィックスです。
                                                                                      EventType Contains post-delivery events. If the Channel supports Read receipts, this parameter will be included with a value of READ after the user has read the message. Currently supported only for WhatsApp.

                                                                                      Back to Create a Message resource

                                                                                      ページを評価:

                                                                                      ヘルプが必要ですか?

                                                                                      We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Community Forums or browsing the Twilio tag on Stack Overflow.

                                                                                            
                                                                                            
                                                                                            

                                                                                            フィードバックくださりありがとうございます!

                                                                                            We are always striving to improve our documentation quality, and your feedback is valuable to us. Please select the reason(s) for your feedback or provide additional information about how we can improve:

                                                                                            Sending your feedback...
                                                                                            🎉 Thank you for your feedback!
                                                                                            Something went wrong. Please try again.

                                                                                            Thanks for your feedback!

                                                                                            Refer us and get $10 in 3 simple steps!

                                                                                            ステップ1

                                                                                            Get link

                                                                                            Get a free personal referral link here

                                                                                            ステップ2:

                                                                                            Give $10

                                                                                            Your user signs up and upgrade using link

                                                                                            ステップ3

                                                                                            Get $10

                                                                                            1,250 free SMSes
                                                                                            OR 1,000 free voice mins
                                                                                            OR 12,000 chats
                                                                                            OR more