Table of Contents



Sends an MMS defined in the XML containing slides of embedded with video, audio, images and/or text to a single mobile number in international number format. SendMMS is a minor extension of the saveMMS function. This API function is only available on Dedicated Shortcodes.

When MMS is sent as SMS, the fallback SMS text and link are sent.

  • The fallback SMS text is the text used in place of the MMS subject and is required if the subject is not passed in the request.
  • The fallback SMS link is the link that hosts the MMS content. The fallback SMS link may be disabled by passing ‘yes’ to the DISABLEFALLBACKSMSLINK node. In this case only the MMS subject or the fallback SMS Text is sent. By default, we always send the fallback SMS link along with the fallback SMS text or the MMS subject.
  • MMS Link Expiration Date is used to expire the link. Depending on this expiration date, the content is disabled on this link. By default it expires 365 days from the date the original MMS was created.

If “Enforce Campaign Check” is turned ON, then this function will require the campaign reference ID of the messaging campaign that the recipient’s phone number is subscribed into to be passed inside the campaignref node.

Line breaks are supported in the slide texts of the MMS.

Request: XML

    <TO>Recipient phone number</TO>
    <NAME>Internal Name</NAME>
        <TEXT>Plain Text</TEXT>
        <DURATION>Duration in seconds</DURATION>
    <FALLBACKSMSTEXT>This text replaces the MMS subject when MMS is sent as SMS link</FALLBACKSMSTEXT>

*ShortcodeMask (Alphanumeric sender) is allowed only in few countries. Not supported in United States.
**Any parameters passed in the URL are not supported and will be stripped out. To pass unique IDs, you must do so in the filename or in the file path.

Request: GET

&api_key=API key
&to=recipient phone number
&from_mask=shortcode mask
&operatorid=operator ID
&campaignref=campaign reference ID
&subject=MMS subject
&name=internal name
&slide_image_url_#=image URL            (replace '#' with slide number)
&slide_audio_url_#=audio URL            (replace '#' with slide number)
&slide_video_url_#=video URL            (replace '#' with slide number)
&slide_vcard_url_#=vCard URL            (replace '#' with slide number)
&slide_ical_url_#=iCal URL              (replace '#' with slide number)
&slide_pdf_url_#=PDF URL                (replace '#' with slide number)
&slide_passbook_url_#=passbook URL      (replace '#' with slide number)
&slide_duration_#=duration in seconds   (replace '#' with slide number)
&slide_text_value_#=plain text          (replace '#' with slide number)
&fallbacksmstext=this text replaces the MMS subject when MMS is sent as SMS link
&disablefallbacksmslink='yes' to disable fallback SMS link
&mmslink_expiration_date=date in ISO8601 format

Request Parameters:

Mandatory: action, api_key, to, from, name, slide, campaignRef (if "Enforce Campaign Check" is enabled), fallbackSmsText (if subject is not passed)
Optional: operatorid, campaignRef, subject, image, audio, video, url, text, duration, vcard, ical, pdf, passbook, disableFallbackSmsLink

Response Parameters:

status, to, mmsId, trackingId, errorCode, errorInfo

Request Example: XML

    <SUBJECT>Free coupon!</SUBJECT>
    <NAME>Membership coupon</NAME>
        <TEXT>Hi! Thank you for joining us!</TEXT>
        <TEXT>As a new member, here's a free coupon from us!\nPlease enjoy!</TEXT>

Request Example: GET
&subject=Free coupon!
&name=Membership coupon
&slide_text_value_0=Hi! Thank you for joining us!
&slide_text_value_1=As a new member, here's a free coupon from us!\nPlease enjoy!

Response Example: Success

    <STATUSDETAILS>MMS request accepted and queued for delivery</STATUSDETAILS>

Response Example: Failure

    <ERRORINFO>Invalid shortcode</ERRORINFO>

General Error Codes:

E100Invalid request. Make a valid request via GET/POST/XML with all the required variables.
E104User Authentication Failed.
E105This account has no API rights.
E106You can call API every X seconds.
E107This account has no rights to use this action.
E108XML Parse error: $error.
E109API not activated.
E112IP was not whitelisted. API call rejected.
E113Set throughput exceeded for this API action. API call rejected.
E114Phone number is blacklisted. API call rejected.
E120Account has reached the API request limit.
E503Internal error.

All saveMMS Error Codes plus E110, E111, E241, E617, E618, E619, E627, E628, E629, E650

E110Invalid receiver number.
E111Invalid shortcode.
E223More than one object is not allowed in the same slide.
E224MMS audio/video/image are not allowed with object in the same slide.
E225Too many Slides.
E226Audio and Video not allowed in same slide.
E227Video and Image not allowed in same slide.
E228Text more than X characters.
E229Content not allowed.
E230Bad X slide duration.
E241This content does not exist.
E311The ‘name’ is required.
E312No slides.
E313Slide X is empty.
E331Image in slide X is too big.
E332Audio in slide X is too big.
E333Video in slide X is too big.
E334Text in slide X is too long.
E335vCard in slide X is too big.
E336iCal in slide X is too big.
E337PDF in slide X is too big.
E338Passbook file in slide X is too big.
E341Image file in slide X is corrupted.
E351Could not copy Image in slide X.
E352Could not copy Audio in slide X.
E353Could not copy Video in slide X.
E355Could not copy vCard in slide X.
E356Could not copy iCal in slide X.
E357Could not copy PDF in slide X.
E358Could not copy Passbook file in slide X.
E617mmslink_expiration_date is invalid.
E618Carrier lookup failed. Please retry.
E619Carrier not provisioned.
E622The ‘fallbacksmstext’ is required.
E627Invalid serviceid / serviceid is required
E628Operator Not supported.
E629Unrecognized content type.
E650The ‘operator id’ is required.
E715Number is not subscribed in this campaign
E718The ‘campaignref’ is required
E721Invalid campaignref

Key Term Definitions:

ACTIONThis is the name of the function you want to execute with the API.
API_KEYRandom key that is assigned to an account that can be used for authorization instead of USER/PASS. You can find and regenerate this key on the ‘API Settings’ page.
CAMPAIGNREFDepending on your API settings, you may be required to subscribe users into a campaign first before sending them messages. If you are required to subscribe a user first, then a valid Campaign Reference is required. This would be the campaign reference ID (string) to which the user is subscribed.
DURATIONThe duration of a slide displayed in seconds (integer).
FROMA valid shortcode or longcode for the sender address(string). When sending to a list of many numbers using the ‘sendSavedContent’ function and if the ‘FROM’ value cannot be used for a certain country, then the system will re-write the sender address to use a valid shortcode for those numbers.
MMSIDThe ID(integer) of a saved MMS.
SLIDEThis represents a single slide within the MMS sequence the could include IMAGE/URL/TEXT/PIC etc. (There are special rules for slides within the ‘saveMMS’ special consideration section).
TEXTThe SMS message limit is 160 characters(string).
TOThis is the message recipient’s phone number in an international format.
TRACKINGIDOn success, the API returns with the tracking ID to identify sent messages. Upon API call failure, no tracking ID is returned. Once the message sending is processed you shall receive a postback containing TRACKINGID and the message status.