Submit SMS request
POST {{baseUrl}}/mra/v1/outbound/sms
Submitting a request to send SMS requires use of pure JSON request body wherein the SMS metadata (recipient SMS address and user-specified options) and text to be sent in SMS are part of the same JSON construct.
Request Body
{"destinations"=>[{"sms"=>"1234567891", "ref"=>"ref001", "inserts"=>[{"id"=>1, "value"=>"destination_insert_value"}, {"id"=>1, "value"=>"destination_insert_value"}]}, {"sms"=>"1234567891", "ref"=>"ref001", "inserts"=>[{"id"=>1, "value"=>"destination_insert_value"}, {"id"=>1, "value"=>"destination_insert_value"}]}], "sms_text"=>"This is sample SMS text data", "options"=>{"message_id"=>"temp_message_id", "billing_code"=>"temp_billing_code", "customer_reference"=>"temp_customer_reference"}, "reports"=>{"report_template"=>"do elit amet adipisicing", "delivery_report"=>{"type"=>"exception", "report_destinations"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}, "final_report"=>{"type"=>"detail", "report_destinations"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}, "progress_report"=>{"type"=>"summary", "intervals"=>"59\\s10\\s10\\s4\\s60\\s9\\s4\\s60\\s10", "report_destinations"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}]}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
X-MRA-SubmitId | string | A client-supplied string to identify request. | |
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"job_id":"xsi-1234567"}