MMS
Everything about MMS
Request
Send MMS
You can post up to 1000 messages with each API call. You can send to a mix of contacts and contact lists, as long as the total number of recipients is up to 1000. The response contains a status and details for each recipient.
Refer to Application Status Codes for the possible response message status strings.
How many characters can I send in a message?
Standard MMS Message
1500 characters
Unicode MMS Message
500 characters
If a message is longer the allowed number of characters it will be truncated. If a message contains any characters that aren't in the GSM 03.38 character set, the message type will be treated as unicode. (https://en.wikipedia.org/wiki/GSM_03.38)
Maximum File Size
You can send a single attachment with a size of up to 250 kB. Some older devices can only accept attachments with up to 30 kB.
Supported File Types
- Supported file types are listed below. If you need to convert a file to a supported format, it can be first passed to our uploads endpoint: 
/uploads?convert=mms - This will return a URL to the converted image file that can be used in the /mms/send endpoint.
 - Contact us to add support for any other file type.
 
Images
| File type | Required to be passed to uploads endpoint first? | 
|---|---|
jpg | No | 
gif | No | 
jpeg | Yes | 
png | Yes | 
bmp | Yes | 
Properties
| Name | Type | Required | Restrictions | Description | 
|---|---|---|---|---|
| media_file | string | true | none | Media file you want to send | 
| to | string | true | none | Recipient phone number in E.164 format | 
| body | string | true | none | Your message | 
| subject | string | true | none | Subject line (max 20 characters) | 
| from | string | true | yes | Your sender id | 
Refer to Status Codes for definitions of HTTP status code responses.
https://rest.clicksend.com/v3/mms/send
- curl
 - JavaScript
 - Node.js
 - Python
 - Java
 - C#
 - PHP
 - Go
 - Ruby
 - R
 - Payload
 
curl --include \
     --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
     --request POST \
     --header "Content-Type: application/json" \
     --data-binary "    {
        \"media_file\":\"http://yourdomain.com/tpLaX6A.gif\",
        \"messages\":[
           {
             \"source\" : \"php\",
             \"subject\": \"This is a subject\",
             \"from\" : \"test\",
             \"body\" : \"This is a test body with special character: 英\",
             \"to\": \"+61437111222\",
             \"country\": \"AU\"
           }
        ]
    }" \
'https://rest.clicksend.com/v3/mms/send'{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Messages queued for delivery.", "data": { "total_price": 13.2, "total_count": 1, "queued_count": 1, "messages": [ … ] } }
Request
Get Price for MMS sent
Properties
| Name | Type | Required | Restrictions | Description | 
|---|---|---|---|---|
| media_file | string | true | none | Media file you want to send | 
| to | string | true | none | Recipient phone number in E.164 format | 
| body | string | true | none | Your message | 
| subject | string | true | none | Subject line (max 20 characters) | 
| from | string | true | yes | Your sender id | 
Refer to Status Codes for definitions of HTTP status code responses.
https://rest.clicksend.com/v3/mms/price
- curl
 - JavaScript
 - Node.js
 - Python
 - Java
 - C#
 - PHP
 - Go
 - Ruby
 - R
 - Payload
 
curl --include \
     --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
     --request POST \
     --header "Content-Type: application/json" \
     --data-binary "    {
        \"media_file\":\"http://yourdomain.com/tpLaX6A.gif\",
        \"messages\":[
           {
             \"source\" : \"php\",
             \"subject\": \"This is a subject\",
             \"from\" : \"test\",
             \"body\" : \"This is a test body with special character: 英\",
             \"to\": \"+61437111222\",
             \"country\": \"AU\"
           }
        ]
    }" \
'https://rest.clicksend.com/v3/mms/price'{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Messages queued for delivery.", "data": { "total_price": 19.36, "total_count": 1, "queued_count": 1, "messages": [ … ] } }
Request
Get all mms history
Parameters
| Parameter | In | Type | Required | Description | 
|---|---|---|---|---|
| date_from | query | integer(int32) | false | Start date (Unix Timestamp e.g. 1436849372) | 
| date_to | query | integer(int32) | false | End date (Unix Timestamp e.g. 1436879372) | 
| page | query | integer(int32) | false | Page number | 
| limit | query | integer(int32) | false | Number of records per page | 
Refer to Status Codes for definitions of HTTP status code responses.
https://rest.clicksend.com/v3/mms/history
- curl
 - JavaScript
 - Node.js
 - Python
 - Java
 - C#
 - PHP
 - Go
 - Ruby
 - R
 - Payload
 
curl --include \
     --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
'https://rest.clicksend.com/v3/mms/history?date_from=&date_to='{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Here are your data.", "data": { "total": 2, "per_page": 15, "current_page": 1, "last_page": 1, "next_page_url": null, "prev_page_url": null, "from": 1, "to": 2, "data": [ … ] } }
Request
Export all mms history
Parameters
| Parameter | In | Type | Required | Description | 
|---|---|---|---|---|
| filename | query | string | true | Filename to download history as | 
Refer to Status Codes for definitions of HTTP status code responses.
https://rest.clicksend.com/v3/mms/history/export
- curl
 - JavaScript
 - Node.js
 - Python
 - Java
 - C#
 - PHP
 - Go
 - Ruby
 - R
 - Payload
 
curl --include \
     --header "Authorization: Basic YXBpLXVzZXJuYW1lOmFwaS1wYXNzd29yZA=="  \
'https://rest.clicksend.com/v3/mms/history/export?filename={filename}'{ "http_code": 200, "response_code": "SUCCESS", "response_msg": "Download your file here.", "data": { "url": "https://rest.clicksend.com/files/22D55AF9-6CF0-476D-A8B3-82A998FD2738?filename=export.csv" } }