channels
rcs
rcs-outbound-messages

Send RCS message

Used for sending single RCS messages

post/ott/rcs/1/message

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token
    • or API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic

Request body

fromstring

Message sender.

tostring required

Message destination.

validityPeriodinteger

Message validity period.

validityPeriodTimeUnit'SECONDS' | 'MINUTES' | 'HOURS' | 'DAYS'

Message failover validity period time unit.

notifyUrlstring

The URL on your call back server on which the Delivery report will be sent.

callbackDatastring

Custom client data that will be included in Delivery Report.

messageIdstring

MessageId data that will be included in Delivery Report.

entityIdstring

Required for entity use in a send request for outbound traffic. Returned in notification events. For more details, see our documentation.

applicationIdstring

Required for application use in a send request for outbound traffic. Returned in notification events. For more details, see our documentation.

Example request

{
  "from": "myRcsSender",
  "to": "385977666618",
  "validityPeriod": 15,
  "validityPeriodTimeUnit": "MINUTES",
  "smsFailover": {
    "from": "myFailoverRcsSender",
    "text": "This message was sent over SMS.",
    "validityPeriod": 15,
    "validityPeriodTimeUnit": "MINUTES"
  }
}

Response

Successful response

Example response

{
  "messages": [
    {
      "to": "385977666618",
      "messageCount": 1,
      "messageId": "06df139a-7eb5-4a6e-902e-40e892210455",
      "status": {
        "groupId": 1,
        "groupName": "PENDING",
        "id": 7,
        "name": "PENDING_ENROUTE",
        "description": "Message sent to next instance"
      }
    }
  ]
}

Changes

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