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
Authorizations:
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-streamcollapse all -
string <binary>
Responses
200
OK
400
Bad request
401
Unauthorized
403
Forbidden
500
Internal Server Error
Request samples
- Payload
Content type
application/octet-stream
Example
Upload jpeg image using curl
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
- 200
- 400
- 401
- 403
- 500
Content type
application/json
Copy
Collapse all {- "uploadedContentId": "B44419205B27012D82F3BAD7B7EB37BAC884DBC91685390C3232D2191DC9D5EAF32F119D3530679F9B251AB689B4A60D7C2EB5A5EBB75C305367140D512E6B5D04200E7FFA5E84EAF37590C33F22B973514126755981CB170D86A7506CB38265280478A5B4EF2A7D11E9F24F286E7E315DFB1FF9BFEE08E036584074A1B76F097D9EC77E3FDD0FCC08362243E306F99F"
}
Need assistance
Encountering issues
What's new? Check out
Unsure about a term? See