From 55ed989a833142b870fd90f17a6d3e1b0123c4a4 Mon Sep 17 00:00:00 2001 From: Aymeric Bouzigues Date: Thu, 9 Apr 2026 15:57:27 +0200 Subject: [PATCH 1/2] Better: Add HTML sengin Guide for RIngCX Messaging --- .../mobile-messaging/rich-text.md | 75 +++++++++++++++++++ mkdocs.yml | 2 + specs/engage-digital_openapi3.yaml | 15 ++++ specs/engage-digital_postman2.json | 8 +- 4 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 docs/interactions/mobile-messaging/rich-text.md diff --git a/docs/interactions/mobile-messaging/rich-text.md b/docs/interactions/mobile-messaging/rich-text.md new file mode 100644 index 00000000..854d12be --- /dev/null +++ b/docs/interactions/mobile-messaging/rich-text.md @@ -0,0 +1,75 @@ +# Sending Rich Text Messages + +Agent messages sent via the [Create Content API](https://developers.ringcentral.com/engage/digital/api-reference/Contents/createContent) support an optional `body_format` parameter on **RingCX Web Messaging** and **RingCX Mobile Messaging** channels where rich text has been enabled. When set to `html`, the body is interpreted as HTML and rendered natively in the client. + +## Request Example + +```bash +curl -X POST "https://[YOUR DOMAIN].api.digital.ringcentral.com/1.0/contents" +``` + +```json +{ + "in_reply_to_id": "", + "body": "Hello world", + "body_format": "html" +} +``` + +Omitting `body_format` (or setting it to `text`) treats the body as plain text, and the end customer will see the raw HTML instead of the rendered result. + +!!! note + Rich text must be enabled on the channel by an administrator before `body_format=html` can be used. Passing `body_format=html` on a channel without this feature returns a `422` error. + +## Supported HTML + +### Tags + +| Tag | Purpose | +|-----|---------| +| `

`, `
` | Paragraphs and line breaks | +| ``, ``, `` | Bold, italic, underline | +| `

` – `
` | Headings | +| `
` | Quoted text | +| `