Files

File message examples shown for each supported platform

All examples below must be sent within the body field of a message as shown below

{
 "receiver": {
   "contacts": [
     {
       "identifierValue": "+31612345678"
     }
   ]
 },
 "body": {...}
}

Single file message

Body

{
  "type": "file",
  "file": {
    "files": [
      {
        "contentType": "video/mp4",
        "mediaUrl": "https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdnJZeZvhOMhDQA8SpjQM%2Fuploads%2FtXMQ4lIinia9ehf4EpC4%2Fvideo.mp4?alt=media"
      }
    ]
  }
} 

MMS

Only SMS channels that are MMS capable support file messages. See here

WhatsApp

Google RCS

Facebook

Instagram

Line

Single file message with text

Body

MMS

Only SMS channels that are MMS capable support file messages. See here

WhatsApp

Google RCS

Facebook

Line

Multiple file message

Multiple files message

Body

MMS

Only SMS channels that are MMS capable support file messages. See here

WhatsApp

Google RCS

Audio/mpeg not supported on Google RCS. Application/PDF used in this example

Facebook

Instagram

Audio/mpeg not supported on Instagram. Audio/wav used in this example

Line

Multiple files message with filename

Body

WhatsApp

Google RCS

Facebook

Line

Single file message with actions

Body

WhatsApp

Google RCS

Facebook

Instagram

Multiple file message with actions

Miltiple files mesage with 2 postback actions and 1 reply action

Body

WhatsApp

Google RCS

Facebook

Instagram

*PDF not supported. Example using audio/wav file

Multiple files message with 4 postback actions

Body

Google RCS

Facebook

Instagram

*PDF not supported. Example using audio/wav file

Last updated

Was this helpful?