RCS - Outgoing

Send RCS messages with content info (e.g. file attachments)

post/v4/rcs/outgoing/contentinfo

Request

  • Base URL: https://api.inmobile.com
  • URL: https://api.inmobile.com/v4/rcs/outgoing/contentinfo
  • Auth: one of:
    • HTTP basic
    • API key in query parameter apikey

Request body

Example request

{
  "messages": [
    {
      "to": "4512345678",
      "countryHint": "45",
      "agentId": "65a53287-862b-44dd-afed-0e7aef22a688",
      "messageTrafficType": 4,
      "messageId": "PetShop",
      "respectBlacklist": true,
      "validityPeriodInSeconds": 90,
      "msisdnCooldownInMinutes": 1440,
      "webhooks": {
        "statusCallbackUrl": "https://[your_domain]/your/desired/path",
        "readCallbackUrl": "https://[your_domain]/your/desired/path"
      },
      "suggestions": [
        {
          "reply": {
            "text": "This is text",
            "postbackData": "eyJ0eXBlIjowfQ=="
          }
        }
      ],
      "fileUrl": "https://example.inmobile.com/12345678-1234-1234-1234-123456789012/file.jpg",
      "thumbnailUrl": "https://example.inmobile.com/12345678-1234-1234-1234-123456789012/thumbnail.jpg"
    }
  ]
}

Response

Example response

{
  "results": [
    {
      "numberDetails": {
        "countryCode": "45",
        "phoneNumber": "12345678",
        "rawMsisdn": "45 12 34 56 78",
        "msisdn": "4512345678",
        "isValidMsisdn": true,
        "countryHint": "45"
      },
      "agentId": "foo-123-bar",
      "messageId": "PetShop"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.