メニュー

Expand
ページを評価:

メディアで利用可能なContent Type

To send a media message, you must include the MediaUrl parameter when making a request to the Twilio Programmable SMS API. Twilio checks the content-type header at the provided MediaUrl to validate the content type of the media file. If the content-type header does not match that of the media file, Twilio will reject the request.

Media size limits

When you send an outbound message, the total message size must be under the maximum size limit for the channel. An API request with media or a collection of media larger than the size limit will fail with an error.

For a media message, the maximum size limit is 5MB.

Supported MIME types

TwilioはMediaとして下記のコンテンツタイプをサポートします。コンテンツは最終的に届けられるデバイス向けに形式が合わされます。

  • image/jpeg
  • image/jpg
  • image/gif
  • image/png

Accepted MIME types

Twilioは下記のコンテンツタイプ受け入れます。リクエストは拒否されませんが、コンテンツはデバイス互換性のため変更されます。

Audio

  • audio/basic
  • audio/L24
  • audio/mp4
  • audio/mpeg
  • audio/ogg
  • audio/vnd.rn-realaudio
  • audio/vnd.wave
  • audio/3gpp
  • audio/3gpp2
  • audio/ac3
  • audio/vnd.wave
  • audio/webm
  • audio/amr-nb
  • audio/amr

Video

  • video/mpeg
  • video/mp4
  • video/quicktime
  • video/webm
  • video/3gpp
  • video/3gpp2
  • video/3gpp-tt
  • video/H261
  • video/H263
  • video/H263-1998
  • video/H263-2000
  • video/H264

Image

  • image/bmp
  • image/tiff

テキスト

  • text/vcard
  • text/x-vcard
  • text/csv
  • text/rtf
  • text/richtext
  • text/calendar
  • text/directory

アプリケーション

  • application/pdf
  • application/vcard
ページを評価:

ヘルプが必要ですか?

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. How could this documentation serve you better?

        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