R C S
Send RCS message
Use this API to send messages containing audio, documents, images or videos to your customers.
Authorization
bearerAuth AuthorizationBearer <token>
JWT access token returned by Signing In (POST /auth/v1/tokens/).
In: header
Request Body
application/json
to*string
The mobile number to send message to
type*string
A type of the media message "audio" || "document" | "image"| "video"
fileUrl*string
The URL of the media to be sent Use only with HTTP/HTTPS URLs.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/conversation/rcs/v1/messages" \ -H "Content-Type: application/json" \ -d '{ "type": "image", "fileUrl": "https://{server-domain}/sample.jpg", "to": "+20xxxxxx" }'"{\n \"name\": \"phones/+20xxxxx/agentMessages/tbNXuZ5NA1m4F46Ydz2CKChFSg7X8hsV\",\n \"sendTime\": \"2024-08-28T06:57:00.512321Z\",\n \"contentMessage\": {\n \"contentInfo\": {\n \"fileUrl\": \"https://{server-domain}/sample.jpg\"\n }\n }\n}"