Sorry, you need to enable JavaScript to visit this website.

You are here

MMSContent payload

4 posts / 0 new
Last post

Jose's picture
by Jose

MMSContent payload
Hi everyone, I have been trying to send a MMS using the API messaging for NodeJS but in the documentation, I can't see any description for the MMSContent payload property. Could I please get a sample for it. Thanks

Nicholas's picture
by Nicholas

MMSContent payload

Hi jsanchez,

In the payload provide a JSON similar to the example below.

Important to note that any non-text items (e.g. images) should be base64-encoded.

{
  "to": "+61412345678",
  "subject": "some subject",
  "replyRequest": false,
  "MMSContent": [
            {
            	"type": "text/plain",
                "filename": "hello",
                "payload": "Hello world!"
            },
            {
                "type": "image/jpeg",
                "filename": "image004.jpg",
                "payload": "/9j/4AAQSkZJRgABAQ..."
            }
        ]
}

Let me know if you need any more specifics.

Jose's picture
by Jose

Thanks a lot for the reply.
Thanks a lot for the reply. I have another quesrtion, I try toi get message status using the notifyURL property but it only works for SMS and not MMS. Did it happened to you?   Cheers J

DeveloperSteve's picture
by DeveloperSteve

Hi jsanchez

MMS notifyURL does work but only if the image coming back in is under 2 meg 

Log in or register to post comments