Upload binary content

This method allows you to upload binary content that you can reference when sending MMS messages.

Please log in to see full path URL. Learn why.
post
/mms/1/content
Scopes:
header Parameters
X-Content-Id
required
string
Example: image_1_jpg

ContentId that uniquely identifies the binary content.

X-Media-Type
required
string
Example: image/jpeg

Content mime type. Should be populated by standard MIME types (IANA media types).

X-Validity-Period-Minutes
integer <int64>
Default: 69120
Example: 70000

Validity period in minutes after which the content will be deleted. (default: 69120 minutes).

Request Body schema:
application/octet-stream
collapse all -
string <binary>

Responses

200

OK

400

Bad request

401

Unauthorized

403

Forbidden

500

Internal Server Error

Request samples

Content type
application/octet-stream
Example

cURL

Copy
curl -L -X POST 'https://{baseUrl}/mms/1/content' \
-H 'Authorization: {authorization}' \
-H 'Content-Type: application/octet-stream' \
-H 'Accept: application/json' \
-H 'X-Media-Type: image/jpeg' \
-H 'X-Content-Id: image_1_jpg' \
--data-binary "@/path/to/image1.jpg"

Response samples

Content type
application/json
Copy
Collapse all
{
  • "uploadedContentId": "B44419205B27012D82F3BAD7B7EB37BAC884DBC91685390C3232D2191DC9D5EAF32F119D3530679F9B251AB689B4A60D7C2EB5A5EBB75C305367140D512E6B5D04200E7FFA5E84EAF37590C33F22B973514126755981CB170D86A7506CB38265280478A5B4EF2A7D11E9F24F286E7E315DFB1FF9BFEE08E036584074A1B76F097D9EC77E3FDD0FCC08362243E306F99F"
}

Encountering issues

Contact our support

What's new? Check out

Release Notes

Unsure about a term? See

Glossary

Research panel

Help shape the future of our products
Learn more
Service status

Copyright @ 2006-2025 Infobip ltd.