{"info":{"_postman_id":"de800425-e035-4d38-8cd3-777b7abe8a2b","name":"Tango Networks Messaging Gateway API","description":"<html><head></head><body><p>The <strong>Tango Messaging Gateway</strong> allows the UC platform of a Tango Networks Extend partner to act as the PSTN messaging (next hop) peer for the sending and receiving of SMS and MMS messages to and from a Tango Networks Extend subscriber/SIM.</p>\n<ul>\n<li><p>The <strong>Messaging Gateway</strong> provides a simple, synchronous HTTPs POST-based API for sending and receiving methods, and also media handling methods for MMS messages.</p>\n</li>\n<li><p>The <strong>Messaging Gateway</strong> assumes that the partner has implemented appropriate interfaces to a PSTN carrier for the DIDs/numbers they intend to use with Tango Networks Extend SIMs and messaging.</p>\n<ul>\n<li><p>Partners wishing to use the <strong>Messaging Gateway</strong> must therefore implement a two-sided process for messaging:</p>\n</li>\n<li><p>Partner to PSTN carrier interface (typically SMPP or HTTP) for subscriber DID’s</p>\n</li>\n<li><p>Partner to <strong>Tango Messaging Gateway</strong> interface for sending/receiving messages to/from these DID’s to/from SIM’s.</p>\n</li>\n</ul>\n</li>\n</ul>\n<h1 id=\"smsmms-origination-message-flow\">📱⇒☁️ SMS/MMS Origination Message Flow</h1>\n<p>The following picture shows how an SMS/MMS message origination flows from the Tango Extend subscriber, through the Tango Networks Extend Platform and the UC Partner's UCaaS Platform, to route over the PSTN to the destination party.</p>\n<img src=\"https://content.pstmn.io/588b4d8b-7fce-4137-9ae8-c33246f21ccb/VE1HLW9yaWdpbmF0aW9uLnBuZw==\">\n\n<h1 id=\"smsmms-term-network-flow\">☁️⇒📱 SMS/MMS Term Network Flow</h1>\n<p>The following picture shows how an SMS/MMS message termination flows from the PSTN, through the UC Partner's UCaaS Platform and the Tango Networks Extend Platform, to deliver to the Tango Extend's mobile device.</p>\n<img src=\"https://content.pstmn.io/92cda6b2-aa4b-43c7-ad0b-d9133d9e7364/VE1HLXRlcm1pbmF0aW9uLnBuZw==\">\n\n<h1 id=\"tango-messaging-gateway-configuration\">Tango Messaging Gateway - Configuration</h1>\n<p>The <strong>Tango Messaging Gateway</strong> is configured as part of the Tango Networks Extend platform. The Partner must implement an interface to the <strong>Tango Provisioning API</strong> and manually configure the gateway using the <strong>Tango Networks Control Panel</strong>.</p>\n<p>The configuration items include the following items that must be configured per <strong>Tango Messaging Gateway</strong>.</p>\n<ul>\n<li><p><strong>Primary URL</strong> - <em>Required</em> - The <strong>Tango Messaging Gateway</strong> uses this URL to send the HTTPS requests to the UCaaS Server. This URL is always the first option used to deliver an HTTPS Message.</p>\n</li>\n<li><p><strong>Secondary URL</strong> - <em>Optional</em> - If the Primary Server returns an error. The <strong>Tango Messaging Gateway</strong> may try to deliver the message to the secondary server. See the section on Response Code Handling to understand when the secondary server is used.</p>\n</li>\n<li><p><strong>Client Secret</strong> - <em>Required</em> - Any Request delivered to the <strong>Tango Messaging Gateway</strong> must contain an Bearer Authorization Header containing this token.</p>\n</li>\n<li><p><strong>Security Token</strong> - <em>Required</em> - Any Request delivered to the UCaaS server must contain an Bearer Authorization Header containing this token.</p>\n</li>\n</ul>\n<h1 id=\"store-and-forward\">📦 Store And Forward</h1>\n<p>In the case where a message fails to deliver to the UCaaS Server. The Tango Networks Extend platform will perform store and forward where the request is stored and delivered at a later time.</p>\n<p>The Tango Networks Extend platform performs store and forward based on the error response received from the UCaaS server. Any response considered a temporary failure is processed by the store and forward service. Refer to the section on Error Responses for information on which responses are considered permanent or temporary.</p>\n<p>A message that has been stored is tried again roughly every 30 seconds and will persist for 7 days, after which the message is discarded. These durations are controlled by Tango Networks and cannot be changed by a customer.</p>\n<p>In order to maintain message order. After a subscriber’s message has been placed into the Store and Forward service. All future messages for this subscriber are automatically placed in the store. The messages are then delivered based on the re-try timer (no less than 30 seconds) and delivered based on the order placed in the store service.</p>\n<h1 id=\"group-messaging\">👨‍👦‍👦 Group Messaging</h1>\n<p>Group Messaging (also called Group MMS) is just an MMS message that contains more than one recipient. Group Messaging is supported by the <strong>Tango Messaging Gateway</strong>. Each recipient's E.164 number is contained in the list of <code>TO</code> users. Group messages use the message type <code>mms</code> in.</p>\n<h2 id=\"group-messaging-originations\">Group Messaging Originations</h2>\n<p>When a subscriber originates a group message, the <strong>Tango Messaging Gateway</strong> delivers a single message event, with <code>\"type\" = \"mms\"</code>, to the UCaaS Platform. The <code>To</code> field contains the E.164 number of each participant that needs to receive the message. The <code>From</code> and <code>Owner</code> fields contain the E.164 number of the subscriber that has originated this message.</p>\n<h2 id=\"group-messaging-terminations\">Group Messaging Terminations</h2>\n<p>When a 3rd party generates a group message, the UCaaS Server is expected to send a message to the <strong>Tango Messaging Gateway</strong> for each Tango Subscriber (SIM) that is part of the group. The <code>To</code> field contains the E.164 number of each participant that needs to receive the message. The <code>Owner</code> field contains the E.164 number of the subscriber that receives this message.</p>\n<h1 id=\"emojis\">😀 Emojis</h1>\n<p>Emojis and extended characters are supported. These will be encoded as UTF-8. There may be limitations on how these are rendered based on the handset.</p>\n<h1 id=\"sms-messages-with-binary-udh-data\">⚙️ SMS Messages with binary UDH data</h1>\n<p>User data header (UDH) is a binary structure that may be present at the start of a short message in an SMS. It does not contain text but defines how to process the message. Generally, the UDH is either used in combination with binary content known as smart messaging for ringtones, operator logos, WAP Push and vCards, or it is used for concatenated SMS.</p>\n<p>Binary UDH messages are not supported using the <strong>Tango Messaging Gateway</strong> interface.</p>\n<p>The Tango Networks Extend platform handles all SMS concatentation and fragmentation operations required for long message handling. As such, the UCaaS Server does not have to deal with handling message fragmentation/ordering/re-assembly operations for long SMS messages.</p>\n<h2 id=\"message-concatentation-during-sms-originations\">Message Concatentation during SMS Originations</h2>\n<p>When a mobile sends a message that exceeds the limit of a single SMS message (160 characters for traditional text only characters, or 70 characters if extended characters, like emoji, are used), the message is received by the Tango Networks Extend platform as a series of message fragments, with binary UDH information included that allows the platform to process the fragments in the correct order. Once all the fragments are received, the Tango Networks Extend platform combines them into a single message event. This single message event is then POST-ed by the <strong>Tango Messaging Gateway</strong> interface to the UCaaS server. No fragment identifcation information is included the POST-ed origination message.</p>\n<h2 id=\"message-fragmentation-during-sms-terminations\">Message Fragmentation during SMS Terminations</h2>\n<p>Like SMS originations, fragment identification information is not supported over the <strong>Tango Messaging Gateway</strong> interface during SMS terminations. A POST-ed message event from the UCaaS must contain the entire content for that message event. The <strong>Tango Messaging Gateway</strong> interface does not process fragment identification information, nor will it re-order fragments into sequential order during delivery, from the UCaaS server.</p>\n<p>The Tango Networks Extend platform will automatically fragment a \"long\" message event and send all pieces to the mobile. The mobile device will re-assemble the pieces in the proper order and present the \"long\" message to mobile as a single SMS event.</p>\n<h1 id=\"data-only-messaging-services\">Data-only Messaging Services</h1>\n<p>Some mobile messaging applications do not rely on SMS or MMS to transmit their messaging data. These are sometimes called data-only messaging services. A few examples of these types of data-only messaging services are:</p>\n<ul>\n<li><p>Apple's iMessage service</p>\n</li>\n<li><p>Android's RCS service</p>\n</li>\n<li><p>WhatsApp</p>\n</li>\n<li><p>Facebook Messenger</p>\n</li>\n</ul>\n<p>These types of client application messaging services are not seen by the Tango Networks Extend platform's messaging infrastructure, and as such, are not supported by the <strong>Tango Messaging Gateway</strong> interface.</p>\n<h1 id=\"security\">🔑 Security</h1>\n<p>All messages sent to/received by the <strong>Tango Messaging Gateway</strong> use HTTPS, which are transmitted using TLS encryption. HTTPS requires that the customer provide a proper valid public SSL certificate, issued by CA, to Tango Networks support so it can be loaded onto the Tango Networks Extend platform servers.</p>\n<p>The UC Partner must provide Tango Networks support with a complete list of IP addresses that UCaaS platform will use to communicate with <strong>Tango Messaging Gateway</strong> interface. Tango Networks support will add those IP addresses to the appropriate firewall ACL rules to enable successful network connectivity between the <strong>Tango Messaging Gateway</strong> and the UCaaS platform servers.</p>\n<h1 id=\"authentication\">🔐 Authentication</h1>\n<p>Bearer authentication is an HTTP authentication scheme that involves security tokens called bearer tokens. These tokens are to be included in every request as part of the Authentication Header. These tokens are data filled against the provisioning <strong>Tango Messaging Gateway</strong>. There is one token to be used when messages are sent to the UCaaS server and a separate token used when sent to the <strong>Tango Messaging Gateway</strong>.</p>\n<p>Any message that is received for a subscriber that does not have a valid token receives a <code>401 Unauthorized</code> response.</p>\n<ul>\n<li><p>Missing Authorization Header</p>\n</li>\n<li><p>Received token Does not match the provisioned token</p>\n</li>\n<li><p>Header is in the incorrect format.</p>\n</li>\n</ul>\n<h1 id=\"media-messages\">📷 Media Messages</h1>\n<p>Media images (an MMS message) are encoded as base64 and contained in the JSON message body with the following limitations.</p>\n<ul>\n<li><p>1 MB Limit</p>\n</li>\n<li><p>Images, videos, audio, docs, and vcard are all supported by the API.</p>\n<ul>\n<li><p><strong>Supported MMS file types</strong> are:</p>\n<ul>\n<li><p>Application: json, ogg, pdf, rtf, zip, x-tar, xml, gzip, x-bzip2, x-gzip, smil</p>\n</li>\n<li><p>Text: plain, javascript, css, csv, cal, html, vcard, x-vcard, vnd.wap.wml, rtf, xml</p>\n</li>\n<li><p>Audio: mp4, mpeg, ogg, flac, wav, amr, 3gpp</p>\n</li>\n<li><p>Image: bmp, gif, jpeg, png, svg+xml, tiff, webp, x-icon</p>\n</li>\n<li><p>Video: mp4, mpeg, ogg, quicktime, webm, x-ms-wmv, x-flv</p>\n<p>  <strong>NOTE</strong>: There may be limitations on how individual file types are rendered based on the handset.</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n<h1 id=\"transmission-rates\">🚦 Transmission Rates</h1>\n<p>The API is restricted to 1 message per second.</p>\n<h1 id=\"restrictions-and-limitations\">⛔️ Restrictions and Limitations</h1>\n<ul>\n<li><p>Tango Networks Extend platform system messages and other binary SMS messages are not supported over the <strong>Tango Messaging Gateway</strong> interface. This includes the following types of messages:</p>\n<ul>\n<li><p>Message Waiting Indication (MWI) messages,</p>\n</li>\n<li><p>Over-the-air SIM configuration messages</p>\n</li>\n<li><p>iMessage/FaceTime/iCloud activation messaging</p>\n</li>\n<li><p>other binary UDH messaging</p>\n</li>\n</ul>\n</li>\n<li><p>API is restricted to 1 message per second.</p>\n</li>\n<li><p>DLR reports are not provided.</p>\n</li>\n<li><p>1MB limit for base64 encoding data.</p>\n</li>\n<li><p>There may be limitations as to how Emojis and media attachments (images, pdf, etc.) are rendered on any particular handset.</p>\n</li>\n<li><p>For Message Originations:</p>\n<ul>\n<li><p>All numbers in the <code>From</code>, and <code>Owner</code> must be in the e.164 format.</p>\n</li>\n<li><p>The <code>To</code> field can be:</p>\n<ul>\n<li><p>e.164 format</p>\n</li>\n<li><p>SMS shortcode (5 or 6 digits)</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n<li><p>For Message Terminations:</p>\n<ul>\n<li><p>All numbers in the <code>To</code> and <code>Owner</code> must be in the e.164 formart</p>\n</li>\n<li><p>The <code>From</code> field can be:</p>\n<ul>\n<li><p>e.164 format</p>\n</li>\n<li><p>up to 11 alphanumeric characters (including the space character) and must start with an alpha character</p>\n</li>\n<li><p>SMS shortcode (5 or 6 digits)</p>\n</li>\n</ul>\n</li>\n</ul>\n</li>\n</ul>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"📱⇒☁️ SMS/MMS Origination Message Flow","slug":"smsmms-origination-message-flow"},{"content":"☁️⇒📱 SMS/MMS Term Network Flow","slug":"smsmms-term-network-flow"},{"content":"Tango Messaging Gateway - Configuration","slug":"tango-messaging-gateway-configuration"},{"content":"📦 Store And Forward","slug":"store-and-forward"},{"content":"👨‍👦‍👦 Group Messaging","slug":"group-messaging"},{"content":"😀 Emojis","slug":"emojis"},{"content":"⚙️ SMS Messages with binary UDH data","slug":"sms-messages-with-binary-udh-data"},{"content":"Data-only Messaging Services","slug":"data-only-messaging-services"},{"content":"🔑 Security","slug":"security"},{"content":"🔐 Authentication","slug":"authentication"},{"content":"📷 Media Messages","slug":"media-messages"},{"content":"🚦 Transmission Rates","slug":"transmission-rates"},{"content":"⛔️ Restrictions and Limitations","slug":"restrictions-and-limitations"}],"owner":"5460831","collectionId":"de800425-e035-4d38-8cd3-777b7abe8a2b","publishedId":"2s93RXrVQ8","public":true,"customColor":{"top-bar":"172A80","right-sidebar":"303030","highlight":"172A80"},"publishDate":"2024-04-17T18:46:55.000Z"},"item":[{"name":"Message Origination","id":"743685d8-8e2f-4b0b-b113-8fa03fae767d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 123456","description":"<p>Contains the provisioned Security Token</p>\n","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"User-Agent","value":"mobileuc/2.0","description":"<p>Tango Networks sends : mobileuc/v2.0</p>\n","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n  \"type\": \"object\",\n  \"properties\": {\n    \"type\": {\n      \"type\": \"string\"\n    },\n    \"domain\": {\n      \"type\": \"string\"\n    },\n    \"direction\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\"\n        },\n        \"text\": {\n          \"type\": \"string\"\n        },\n        \"subject\": {\n          \"type\": \"string\"\n        },\n        \"to\": {\n          \"type\": \"array\",\n          \"items\": [\n            {\n              \"type\": \"string\"\n            }\n          ]\n        },\n        \"from\": {\n          \"type\": \"string\"\n        },\n        \"owner\": {\n          \"type\": \"string\"\n        },\n        \"media\": {\n          \"type\": \"array\",\n          \"items\": [\n            {\n              \"type\": \"object\",\n              \"properties\": {\n                \"mimeType\": {\n                  \"type\": \"string\"\n                },\n                \"fileName\": {\n                  \"type\": \"string\"\n                },\n                \"encoding\": {\n                  \"type\": \"string\"\n                },\n                \"data\": {\n                  \"type\": \"string\"\n                }\n              },\n              \"required\": [\n                \"mimeType\",\n                \"fileName\",\n                \"data\"\n              ]\n            }\n          ]\n        }\n      },\n      \"required\": [\n        \"id\",\n        \"to\",\n        \"from\",\n        \"owner\"\n      ]\n    }\n  },\n  \"required\": [\n    \"type\",\n    \"direction\",\n    \"message\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"<your UCaaS message receive URL>","description":"<p>This command documents examples of messages sent to the receive URL of your UCass server from the <strong>Tango Messaging Gateway</strong> when a Tango Networks Extend subscriber originates a message from their device.</p>\n<p><strong>JSON Field Definitions</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Requirement</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td>required</td>\n<td>String</td>\n<td>Identifies the type of message:  <br />\"sms\" or \"mms\"</td>\n</tr>\n<tr>\n<td>domain</td>\n<td>optional</td>\n<td>String</td>\n<td>For an origination the value is always delivered and is based on the SIP domain assigned to the subscriber.</td>\n</tr>\n<tr>\n<td>direction</td>\n<td>required</td>\n<td>String</td>\n<td>\"orig\" - Identifies the message direction is an origination.</td>\n</tr>\n<tr>\n<td>message</td>\n<td>required</td>\n<td>Object</td>\n<td>Object defining the message</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Message JSON Object</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Requirement</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>required</td>\n<td>String</td>\n<td>UUID identifier that unique identities this message</td>\n</tr>\n<tr>\n<td>text</td>\n<td>optional</td>\n<td>String</td>\n<td>The text data of the SMS/MMS message.</td>\n</tr>\n<tr>\n<td>subject</td>\n<td>optional</td>\n<td>String</td>\n<td>For \"mms\" messages only. The subject text for the MMS.</td>\n</tr>\n<tr>\n<td>to</td>\n<td>required</td>\n<td>String Array Object</td>\n<td>The e.164 number (or numbers) the message is sent to.  <br />For SMS messages this list can only contain one e.164 number.  <br />For non group-MMS messages this list only contains a single e.164 number. For group MMS messages this list contains the e.164 numbers for all participants in the group.</td>\n</tr>\n<tr>\n<td>from</td>\n<td>required</td>\n<td>String</td>\n<td>The E164 number the message was sent from</td>\n</tr>\n<tr>\n<td>owner</td>\n<td>required</td>\n<td>String</td>\n<td>The E164 number assigned to the subscriber associated with this message.  <br />For origination messages this would always match the <em><strong>from</strong></em> field.</td>\n</tr>\n<tr>\n<td>media</td>\n<td>optional</td>\n<td>Object</td>\n<td>Object for MMS</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Media JSON Object</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Requirement</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>mimeType</td>\n<td>Required if data is included.</td>\n<td>String</td>\n<td>Defines the content of the data. Such as image/jpeg</td>\n</tr>\n<tr>\n<td>fileName</td>\n<td>Required if data is included.</td>\n<td>String</td>\n<td>Identifies the data object</td>\n</tr>\n<tr>\n<td>data</td>\n<td>Required</td>\n<td>String</td>\n<td>Data that is formatted as either text or base64</td>\n</tr>\n<tr>\n<td>encoding</td>\n<td>Required if a base64 image is included.</td>\n<td></td>\n<td>Defines the encoding format of the data</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"response-code-handling\">Response Code handling</h1>\n<p>The Tango Networks Messaging Gateway will handle response codes from the delivery of message originations to the UCass platform as follows:</p>\n<h2 id=\"handling-of-status-codes\">Handling of Status Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Field</strong></th>\n<th><strong>Status Codes</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Store and Forward</strong></th>\n<th><strong>Secondary URL(if provisioned)</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td></td>\n<td>200-299</td>\n<td>Successful Response</td>\n<td>No</td>\n<td>No</td>\n</tr>\n<tr>\n<td></td>\n<td>300-399</td>\n<td>Redirection Response</td>\n<td>No</td>\n<td>No</td>\n</tr>\n<tr>\n<td></td>\n<td>401 Unauthorized 407 Proxy Authentication Required</td>\n<td>Indicates the authorization token is invalid.</td>\n<td>Yes</td>\n<td>No</td>\n</tr>\n<tr>\n<td></td>\n<td>408</td>\n<td>Request TimeOut</td>\n<td>Yes</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td></td>\n<td>429</td>\n<td>To Many Requests</td>\n<td>Yes</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td></td>\n<td>480</td>\n<td>Temporarily Unavailable</td>\n<td>Yes</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td></td>\n<td>481</td>\n<td>Call or Transaction Does not Exist</td>\n<td>Yes</td>\n<td>Yes</td>\n</tr>\n<tr>\n<td></td>\n<td>4xx (All Other Responses)</td>\n<td>Permanent Failures</td>\n<td>No</td>\n<td>No</td>\n</tr>\n<tr>\n<td></td>\n<td>500 and Greater</td>\n<td>Server Internal Error</td>\n<td>Yes</td>\n<td>Yes</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"host":["<your UCaaS message receive URL>"],"query":[],"variable":[]}},"response":[{"id":"8d9c7657-6388-475b-8e3c-95dd66921c9a","name":"SMS Origination","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 123456","description":"Contains the provisioned Security Token","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"User-Agent","value":"mobileuc/2.0","description":"Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\" : \"sms\",\n    \"domain\" : \"domaintest.com\",\n    \"direction\" : \"orig\",\n    \"message\" : {\n        \"id\" : \"b26d628f-2f4a-401b-85da-23f8e86ac79c\",\n        \"text\" : \"A simple orig msg\",\n        \"to\" : [ \"+19728972222\" ],\n        \"from\" : \"+16822826124\",\n        \"owner\" : \"+16822826124\"\n      }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{UCassUrl}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"94d32838-8784-4fc9-b0f1-05b4b75582e3","name":"SMS Origination w/ Emoji","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 123456","description":"Contains the provisioned Security Token","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"User-Agent","value":"mobileuc/2.0","description":"Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\" : \"sms\",\n  \"domain\" : \"domaintest.com\",\n  \"direction\" : \"orig\",\n  \"message\" : {\n      \"id\" : \"e9fa72a5-d0f3-48f4-b1aa-4865a7aee02c\",\n      \"text\" : \"Orig msg with emoji 😀\",\n      \"to\" : [ \"+19728972222\" ],\n      \"from\" : \"+16822826124\",\n      \"owner\" : \"+16822826124\"\n  }\n}\n\n","options":{"raw":{"language":"json"}}},"url":"{{UCassUrl}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"8f61e2fd-f62e-4eae-a023-3757a867bb65","name":"MMS Origination w/ Subject and Text","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 123456","description":"Contains the provisioned Security Token","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"User-Agent","value":"mobileuc/2.0","description":"Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\" : \"mms\",\n  \"domain\" : \"domaintest.com\",\n  \"direction\" : \"orig\",\n  \"message\" : {\n      \"id\" : \"edff5d85-d2dd-4910-85a3-594886e0336e\",\n      \"text\" : \"An orig msg with subj\",\n      \"subject\" : \"This is a subject \",\n      \"to\" : [ \"+19728972222\" ],\n      \"from\" : \"+16822826124\",\n      \"owner\" : \"+16822826124\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{UCassUrl}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"c03b0823-ae56-4b91-b753-ca0d640c1d61","name":"MMS Origination w/ Image and Text","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 123456","description":"Contains the provisioned Security Token","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"User-Agent","value":"mobileuc/2.0","description":"Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\" : \"mms\",\n  \"domain\" : \"domaintest.com\",\n  \"direction\" : \"orig\",\n  \"message\" : {\n    \"id\" : \"77ab81eb-523a-431a-8ac6-52829e8e80ac\",\n    \"text\" : \"MMS Orig with an image attachment\",\n    \"to\" : [ \"+19728972222\" ],\n    \"from\" : \"+16822826124\",\n    \"owner\" : \"+16822826124\",\n    \"media\" : [ {\n        \"mimeType\" : \"image/jpeg\",\n        \"fileName\" : \"image000000.jpg\",\n        \"encoding\" : \"base64\",\n        \"data\" : \"/9j/4AAQSkZJRgABAQAAAQABAAD/4gIoSUNDX1BST0ZJTEUAAQEAAAIYAAAAAA\n\n...LONG CONTENT TRUNCATED \n\n  } ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{UCassUrl}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"bae0d537-7477-41d7-8fbc-ad64b23c9267","name":"MMS Origination w/ VCard","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 123456","description":"Contains the provisioned Security Token","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"User-Agent","value":"mobileuc/2.0","description":"Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n     \"type\" : \"mms\",\n     \"domain\" : \"domaintest.com\",\n     \"direction\" : \"orig\",\n     \"message\" : {\n         \"id\" : \"5ff0cdde-20f3-4d91-9d94-fd2a02330b9c\",\n         \"to\" : [ \"+19728972222\" ],\n         \"from\" : \"+16822826124\",\n         \"owner\" : \"+16822826124\",\n         \"media\" : [ {\n             \"mimeType\" : \"text/x-vCard\",\n             \"fileName\" : \"contact000000.vcf\",\n             \"encoding\" : \"text\",\n             \"data\" : \"BEGIN:VCARD\\r\\nVERSION:2.1\\r\\nN:User;Mark;;;\\r\\nFN:Mark User\\r\\nTEL;CELL;PREF:972-897-2222\\r\\nTEL;HOME:972-555-1234\\r\\nTEL;WORK:817-555-1288\\r\\nEMAIL;HOME:test@mail.com\\r\\nEMAIL;WORK:work@mail.com\\r\\nEND:VCARD\\r\\n\"\n    } ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{UCassUrl}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"51b4e3fb-ba58-44bc-9efb-00e0814e1dd9","name":"MMS Origination w/ Video and Text","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 123456","description":"Contains the provisioned Security Token","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"User-Agent","value":"mobileuc/2.0","description":"Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\" : \"mms\",\n  \"domain\" : \"domaintest.com\",\n  \"direction\" : \"orig\",\n  \"message\" : {\n    \"id\" : \"ec361c98-b625-40ce-9d15-129ccebbc5b9\",\n    \"text\" : \"This is a video\",\n    \"to\" : [ \"+19728972222\" ],\n    \"from\" : \"+16822826124\",\n    \"owner\" : \"+16822826124\",\n    \"media\" : [ {\n          \"mimeType\" : \"video/mp4\",\n          \"fileName\" : \"video000000.mp4\",\n           \"encoding\" : \"base64\",\n           \"data\" : \"AAAAGGZ0eXBtcDQyAAAAAGlzb21tcDQyAAAHsW1vb3YAAABsb\n\n         ...LONG CONTENT TRUNCATED \n\n    } ]\n  }\n}\n\n","options":{"raw":{"language":"json"}}},"url":"{{UCassUrl}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"2f57c721-3f49-44cc-ba75-6400c79e2ed7","name":"MMS Origination w/ PDF file","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 123456","description":"Contains the provisioned Security Token","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"User-Agent","value":"mobileuc/2.0","description":"Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\" : \"mms\",\n  \"domain\" : \"domaintest.com\",\n  \"direction\" : \"orig\",\n  \"message\" : {\n    \"id\" : \"ea7def9f-6dcd-4aff-82b4-e37d266327c2\",\n    \"text\" : \"This message also has a PDF file attachment\",\n    \"to\" : [ \"+19728972222\" ],\n    \"from\" : \"+16822826124\",\n    \"owner\" : \"+16822826124\",\n    \"media\" : [ {\n         \"mimeType\" : \"application/pdf\",\n          \"fileName\" : \"prospectus.pdf\",\n          \"encoding\" : \"base64\",\n          \"data\" : \"JVBERi0xLjcKJbe+raoKMSAwIG9iag\n\n          ...LONG CONTENT TRUNCATED\n          \n    } ]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{UCassUrl}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"23ce9d92-3103-4524-bbd7-be9c55cbd96e","name":"MMS Group Origination","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 123456","description":"Contains the provisioned Security Token","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"User-Agent","value":"mobileuc/2.0","description":"Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\" : \"mms\",\n    \"domain\" : \"domaintest.com\",\n    \"direction\" : \"orig\",\n    \"message\":{\n        \"id\" : \"52a412e3-8381-4ff3-a143-9a6271cce1ca\",\n        \"text\" : \"Group msg 2\",\n        \"to\" : [ \"+14696769248\",\"+19728972222\" ],\n        \"from\" : \"+16822826124\",\n        \"owner\" : \"+16822826124\"\n    }\n}\n\n","options":{"raw":{"language":"json"}}},"url":"{{UCassUrl}}"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"743685d8-8e2f-4b0b-b113-8fa03fae767d"},{"name":"Message Termination","id":"983459bd-2f8c-44a6-a5a4-dc1dcf2cc6cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer Auth-Schema Token","description":"<p>Contains the provisioned Security Token</p>\n","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"User-Agent","value":"<identity of the application>","description":"<p>Tango Networks sends : mobileuc/v2.0</p>\n","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"$schema\": \"http://json-schema.org/draft-04/schema#\",\n  \"type\": \"object\",\n  \"properties\": {\n    \"type\": {\n      \"type\": \"string\"\n    },\n    \"domain\": {\n      \"type\": \"string\"\n    },\n    \"direction\": {\n      \"type\": \"string\"\n    },\n    \"message\": {\n      \"type\": \"object\",\n      \"properties\": {\n        \"id\": {\n          \"type\": \"string\"\n        },\n        \"text\": {\n          \"type\": \"string\"\n        },\n        \"subject\": {\n          \"type\": \"string\"\n        },\n        \"to\": {\n          \"type\": \"array\",\n          \"items\": [\n            {\n              \"type\": \"string\"\n            }\n          ]\n        },\n        \"from\": {\n          \"type\": \"string\"\n        },\n        \"owner\": {\n          \"type\": \"string\"\n        },\n        \"media\": {\n          \"type\": \"array\",\n          \"items\": [\n            {\n              \"type\": \"object\",\n              \"properties\": {\n                \"mimeType\": {\n                  \"type\": \"string\"\n                },\n                \"fileName\": {\n                  \"type\": \"string\"\n                },\n                \"encoding\": {\n                  \"type\": \"string\"\n                },\n                \"data\": {\n                  \"type\": \"string\"\n                }\n              },\n              \"required\": [\n                \"mimeType\",\n                \"fileName\",\n                \"data\"\n              ]\n            }\n          ]\n        }\n      },\n      \"required\": [\n        \"id\",\n        \"to\",\n        \"from\",\n        \"owner\"\n      ]\n    }\n  },\n  \"required\": [\n    \"type\",\n    \"direction\",\n    \"message\"\n  ]\n}","options":{"raw":{"language":"json"}}},"url":"https://<url-of-tango-messaging-gateway>:<port>/tangoMsgGateway/v2/message","description":"<p>This command is used by a UCass server to send a request for message delivery to the <strong>Tango Messaging Gateway</strong> for delivery to the device of a Tango Networks Extend subscriber.</p>\n<p><strong>JSON Field Definitions</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Requirement</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>type</td>\n<td>required</td>\n<td>String</td>\n<td>Identifies the type of message:  <br />\"sms\" or \"mms\"</td>\n</tr>\n<tr>\n<td>domain</td>\n<td>optional</td>\n<td>String</td>\n<td>Identifies the subscriber's SIP domain. If the domain is not specific the owner information is used to derive the domain.</td>\n</tr>\n<tr>\n<td>direction</td>\n<td>required</td>\n<td>String</td>\n<td>\"term\" - Identifies the message direction as a termination.</td>\n</tr>\n<tr>\n<td>message</td>\n<td>required</td>\n<td>Object</td>\n<td>Object defining the message</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Message JSON Object</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Requirement</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>required</td>\n<td>String</td>\n<td>UUID identifier that unique identities this message</td>\n</tr>\n<tr>\n<td>text</td>\n<td>optional</td>\n<td>String</td>\n<td>The text data of the SMS/MMS message.</td>\n</tr>\n<tr>\n<td>subject</td>\n<td>optional</td>\n<td>String</td>\n<td>Used to display the subject of the SMS/MMS</td>\n</tr>\n<tr>\n<td>to</td>\n<td>required</td>\n<td>String Array Object</td>\n<td>The E164 number (or numbers) the message is sent to.  <br />For group MMS messages all participants are shown in this list.  <br />For non group messages this list only contains 1 number.  <br />All SMS messages are expected to only have 1 number.</td>\n</tr>\n<tr>\n<td>from</td>\n<td>required</td>\n<td>String</td>\n<td>The E164 number the message was sent from</td>\n</tr>\n<tr>\n<td>owner</td>\n<td>required</td>\n<td>String</td>\n<td>The E164 number assigned to the subscriber associated with this message.  <br />For termination messages this would always match one of the numbers in the <em><strong>to</strong></em> List.</td>\n</tr>\n<tr>\n<td>media</td>\n<td>optional</td>\n<td>Object</td>\n<td>Object for MMS</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Media JSON Object</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Requirement</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>mimeType</td>\n<td>Required if data is included.</td>\n<td>String</td>\n<td>Defines the content of the data. Such as image/jpeg</td>\n</tr>\n<tr>\n<td>fileName</td>\n<td>Required if data is included.</td>\n<td>String</td>\n<td>Identifies the data object</td>\n</tr>\n<tr>\n<td>data</td>\n<td>Required</td>\n<td>String</td>\n<td>Data that is formatted as either text or base64</td>\n</tr>\n<tr>\n<td>encoding</td>\n<td>Required if a base64 image is included.</td>\n<td></td>\n<td>Defines the encoding format of the data</td>\n</tr>\n</tbody>\n</table>\n</div><h1 id=\"smsmms-termination-processing\">SMS/MMS Termination Processing</h1>\n<p>The <strong>Tango Messaging Gateway</strong> determines if the received message is invalid. The following validation checks are provided and the error response generated.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Scenario</strong></th>\n<th><strong>Error Response</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>A message must have a subject, text or media</td>\n<td>Bad Request</td>\n</tr>\n<tr>\n<td>Type field missing or not set to sms or mms</td>\n<td>Bad Request</td>\n</tr>\n<tr>\n<td>Direction field missing or not set to orig or term</td>\n<td>Bad Request</td>\n</tr>\n<tr>\n<td>Missing Message Object</td>\n<td>Bad Request</td>\n</tr>\n<tr>\n<td>Message:Owner missing or does not match a number in the to list</td>\n<td>Bad Request</td>\n</tr>\n<tr>\n<td>When a base64 data is included and the mimeType or filename is empty</td>\n<td>Bad Request</td>\n</tr>\n<tr>\n<td>A subscriber cannot be identified based on the owner</td>\n<td>Not Found</td>\n</tr>\n<tr>\n<td>The identified subscriber cannot be associated with Tango Messaging Gateway.</td>\n<td>Method Not Allowed</td>\n</tr>\n<tr>\n<td>The identified subscriber does not messaging enabled on the SIM</td>\n<td>Method Not Allowed</td>\n</tr>\n<tr>\n<td>Missing Authorization Header</td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td>Authorization Header does not start with “Bearer “</td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td>Authorization token does not match the associated token defined in the Tango Messaging Gateway.</td>\n<td>Unauthorized</td>\n</tr>\n</tbody>\n</table>\n</div><p>If the incoming request is rejected due to invalid data or invalid json. A json body may be added to the response to include a description as to why the message was not processed. This response body is optional and only included for certain error conditions. The response body has the following format.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"status\"          : 404,\n    \"error\"           : \"error string\"           \n }\n\n</code></pre>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th><strong>Parameter</strong></th>\n<th><strong>Requirement</strong></th>\n<th><strong>Type</strong></th>\n<th><strong>Description</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>status</td>\n<td>required</td>\n<td>integer</td>\n<td>Http Response status code</td>\n</tr>\n<tr>\n<td>error</td>\n<td>required</td>\n<td>String</td>\n<td>Description of the error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","port":"<port>","path":["tangoMsgGateway","v2","message"],"host":["<url-of-tango-messaging-gateway>"],"query":[],"variable":[]}},"response":[{"id":"13f73323-3cb0-4b1e-af11-20c3f8fef51e","name":"SMS Termination","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 654321","description":"Contains the provisioned Security Token","type":"text"},{"key":"User-Agent","value":"messagesim/1.0","description":"Your User Agent value.  Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"type\" : \"sms\",\n   \"domain\" : \"domaintest.com\",\n   \"direction\" : \"term\",\n   \"message\" : {\n       \"id\" : \"b26d628f-2f4a-401b-85da-23f8e86ac80d\",\n       \"text\" : \"A simple term msg\",\n       \"to\" : [\"+16822826124\"],\n       \"from\" : \"+19728972222\",\n       \"owner\" : \"+16822826124\"\n   }\n}","options":{"raw":{"language":"json"}}},"url":"{{url}}/tangoMsgGateway/v2/message"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"92d26760-9a31-4a8d-b5c6-1a894afc3c79","name":"SMS Termination w/ Emoji","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 654321","description":"Contains the provisioned Security Token","type":"text"},{"key":"User-Agent","value":"messagesim/1.0","description":"Your User Agent value.  Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n   \"type\" : \"sms\",\n   \"domain\" : \"domaintest.com\",\n   \"direction\" : \"term\",\n   \"message\" : {\n       \"id\" : \"b26d628f-2f4a-401b-85da-23f8e86ac81d\",\n       \"text\" : \"Orig msg with emoji 😀\",\n       \"to\" : [ \"+16822826124\" ],\n       \"from\" : \"+19728972222\",\n       \"owner\" : \"+16822826124\"\n   }\n}","options":{"raw":{"language":"json"}}},"url":"{{tangoUrl}}/tangoMsgGateway/v2/message"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"7c9d1ca2-82aa-4ec0-b7b5-fe02eacd9dbe","name":"MMS Termination w/ Subject and Text","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 654321","description":"Contains the provisioned Security Token","type":"text"},{"key":"User-Agent","value":"messagesim/1.0","description":"Your User Agent value.  Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\" : \"mms\",\n    \"domain\" : \"domaintest.com\",\n    \"direction\" : \"term\",\n    \"message\" : {\n        \"id\" : \"edff5d85-d2dd-4910-85a3-594886e04499\",\n        \"text\" : \"A term msg with subj \\r\\n\", \n        \"subject\" : \"This is a subject\",\n        \"to\" : [ \"+16822826124\" ],\n        \"from\" : \"+19728972222\",\n        \"owner\" : \"+16822826124\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"{{tangoUrl}}/tangoMsgGateway/v2/message"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"44028c14-ea42-49ff-8f04-74e180ee9a3b","name":"MMS Termination w/ Image and Text","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 654321","description":"Contains the provisioned Security Token","type":"text"},{"key":"User-Agent","value":"messagesim/1.0","description":"Your User Agent value.  Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\":\"mms\",\n    \"domain\":\"domaintest.com\",\n    \"direction\":\"term\",\n    \"message\":{\n        \"id\" : \"c180a6af-95a8-4f28-94b3-4c77bcbd1411\",\n        \"text\" : \"Term with an image\",\n        \"to\" : [ \"+16822826124\" ],\n        \"from\" : \"+19728972222\",\n        \"owner\" : \"+16822826124\",\n        \"media\" : [{\n            \"mimeType\" : \"image/png\",\n            \"fileName\" : \"Image000000.png\",\n            \"encoding\" : \"base64\",\n            \"data\" : \"/9j/4AAQSkZJRgABAQAAAQABAAD/4gIoSUNDX1BST0ZJTEUAAQEAAAIYAAAAAA\n\n...LONG CONTENT TRUNCATED \n\n    } ]\n  }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{tangoUrl}}/tangoMsgGateway/v2/message"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"794b7104-1b9c-483e-bb07-f8486e80b685","name":"MMS Termination w/ VCard","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 654321","description":"Contains the provisioned Security Token","type":"text"},{"key":"User-Agent","value":"messagesim/1.0","description":"Your User Agent value.  Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n     \"type\" : \"mms\",\n     \"domain\" : \"domaintest.com\",\n     \"direction\" : \"term\",\n     \"message\":{\n         \"id\":\"5ff0cdde-20f3-4d91-9d94-fd2a81121b9c\",\n         \"to\":[\"+16822826124\"],\n         \"from\":\"+19728972222\", \n         \"owner\":\"+16822826124\",\n         \"media\":[{\n             \"mimeType\":\"text/x-vCard\",\n             \"fileName\":\"contact000000.vcf\",\n             \"Encoding\":\"text\",\n             \"Data\": \"BEGIN:VCARD\\r\\nVERSION:2.1\\r\\nN:User;Mark;;;\\r\\nFN:Mark User\\r\\nTEL;CELL;PREF:972-897-2222\\r\\nTEL;HOME:972-555-1234\\r\\nTEL;WORK:817-555-1288\\r\\nEMAIL;HOME:user@mail.com\\r\\nEMAIL;WORK:work@mail.com\\r\\nEND:VCARD\\r\\n\"\n    }]\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{tangoUrl}}/tangoMsgGateway/v2/message"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"849a9301-4efc-416d-990d-6d902b0f7e32","name":"MMS Termination w/ Video and Text","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 654321","description":"Contains the provisioned Security Token","type":"text"},{"key":"User-Agent","value":"messagesim/1.0","description":"Your User Agent value.  Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"Type\":\"mms\",\n    \"Domain\":\"domaintest.com\",\n    \"Direction\":\"term\",\n    \"Message\":{\"id\":\"94a347dd-de2e-4bab-b3c1-607ea7178859\",\n    \"text\":\"This is a video\\r\\n\",\n    \"To\":[\"+16822826124\"],\n    \"From\":\"+19728972222\",\n    \"Owner\":\"+16822826124\",\n    \"Media\":[{\n        \"mimeType\":\"video/mp4\",\n         \"fileName\":\"video000000.mp4\",\n         \"Encoding\":\"base64\",\n         \"data\":\"AAAAGGZ0eXBtcDQyAAAAAGlzb21\n\n...LONG CONTENT TRUNCATED \n\n    } ]\n  }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{tangoUrl}}/tangoMsgGateway/v2/message"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"99f89342-b9bf-4445-9752-68dd3e134aa4","name":"MMS Termination w/ PDF file","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 654321","description":"Contains the provisioned Security Token","type":"text"},{"key":"User-Agent","value":"messagesim/1.0","description":"Your User Agent value.  Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\":\"mms\",\n    \"Domain\":\"domaintest.com\",\n    \"Direction\":\"term\",\n    \"Message\":{\n        \"Id\":\"ea7def9f-6dcd-4aff-82b4-e37d266327c2\",\n        \"text\":\"This is a text file attachment \\r\\n\",\n        \"To\":[\"+16822826124\"],\n        \"From\":\"+19728972222\",\n        \"Owner\":\"+16822826124\",\n        \"Media\":[{\n         \"mimeType\" : \"application/pdf\",\n          \"fileName\" : \"prospectus.pdf\",\n          \"encoding\" : \"base64\",\n          \"data\" : \"JVBERi0xLjcKJbe+raoKMSAwIG9iag\n\n          ...LONG CONTENT TRUNCATED\n         }]\n      }\n}\n","options":{"raw":{"language":"json"}}},"url":"{{tangoUrl}}/tangoMsgGateway/v2/message"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"02584d1d-b044-43ef-b879-806c4c54ba25","name":"MMS Group Termination","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 654321","description":"Contains the provisioned Security Token","type":"text"},{"key":"User-Agent","value":"messagesim/1.0","description":"Your User Agent value.  Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"type\" : \"mms\",\n    \"domain\" : \"domaintest.com\",\n    \"direction\" : \"term\",\n    \"message\" : {\n        \"id\" : \"52a412e3-8381-4ff3-a143-9a6271cce1ca\",\n        \"text\" : \"Group msg\",\n        \"to\" : [ \"+14696769248\",\"+16822826124\" ],\n        \"from\" : \"+19728972222\",\n        \"owner\" : \"+16822826124\"\n    }\n}\n\n","options":{"raw":{"language":"json"}}},"url":"{{tangoUrl}}/tangoMsgGateway/v2/message"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null},{"id":"8e8a4b8a-92a5-47a9-b573-1176d35b27a2","name":"MMS Termination w/ Invalid Direction","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"Bearer 654321","description":"Contains the provisioned Security Token","type":"text"},{"key":"User-Agent","value":"messagesim/1.0","description":"Your User Agent value.  Tango Networks sends : mobileuc/v2.0","type":"text"},{"key":"Content-Type","value":"application/json;charset=UTF-8","type":"text"},{"key":"Accept","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"type\" : \"sms\",\n  \"domain\" : \"domaintest.com\",\n  \"direction\" : \"termInvalid\",\n  \"message\" : {\n    \"id\" : \"040507f3-8935-4d95-b090-9c9ebc0ee5f7\",\n    \"text\" : \"A test msg \",\n    \"to\" : [ \"+16822826124\" ],\n    \"from\" : \"+19728972222\",\n    \"owner\" : \"+16822826124\"\n  }\n}","options":{"raw":{"language":"json"}}},"url":"{{tangoUrl}}/tangoMsgGateway/v2/message"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": 400,\n    \"error\": \"Direction field is invalid\"\n}"}],"_postman_id":"983459bd-2f8c-44a6-a5a4-dc1dcf2cc6cb"}]}