I've been trying for a couple hours to figure out how to send an MMS message (text and PDF) and have found some JSON code examples: https://developers.sinch.com/docs/mms/api-reference/introduction/ and https://developers.sinch.com/docs/mms/api-reference/sendmms/ but neither indicate how the cURL command should be formatted from the command line. here's are the different options (used in different combinations) for cURL I've tried so far (anonomized): curl --user "application\myaccesskeyid:mykeysecret" curl -X POST curl -H "Authorization: Bearer myserviceplanid" curl -d @batch.json (this is a file that contains the JSON code below) the URL the documentation says to use is https://api.ci.mblox.com/ep/v2/ the JSON file contains the following minimum requirements per the documentation (again anonomized): { "action": "sendmms", "service-id": "myserviceplanid", "to": "mydestphonenumber", "from": "mypurchasedphonenumber", "message-subject": "This is a JSON test.", "fallback-sms-text": "This is a JSON test.", "slide": [ { "pdf": { "url": "{https://myimageurl.pdf}" }, "message-text": "{This is a JSON test.}" } ] } the error i'm getting in response is { "status": "failure", "error-code": "E100", "error-info": "Invalid request. Please make a valid JSON POST request with all the required variables." } anyone have any suggestions on what's missing or wrong with the above attempts? Thanks in advance 🙂
... View more