Send MMS Using Template

POST https://mmsc.tsgglobal.world/mms/templates/:id/send

Uses an existing template and sends the MMS.

Request body

Name
Type
Description

data.type

string

Must be "mms-template-send-req"

data.attributes.from

string

Required. Sender number (E.164)

data.attributes.to

array of strings

Required. Recipient numbers (E.164)

data.attributes.params

object

Required. Key-value map of placeholder values. Must match all placeholders defined in the template

data.attributes.transaction_id

string

Optional. Client-provided transaction identifier

data.attributes.request_delivery_reports

boolean

Optional. Requesting DLR for the message to be sent to you. Defaults to false. Default: false

data.attributes.metadata

object

Optional. Additional metadata (default: {})

Example

Example request

{
  "data": {
    "type": "mms-template-send-req",
    "attributes": {
      "from": "18003004001",
      "to": ["17818434375"],
      "params": {
        "name": "Jane",
        "company": "TSG"
      }
    }
  }
}

Example response

Example without placeholders

Example request

Example response

Last updated

Was this helpful?