1.0.0
Create send definitions for Rich Communication Services (RCS) messages. A send definition stores the settings that stay the same from one send to the next: the sender, the content, and the message purpose and communication subscription. Creating a send definition doesn't send a message.
After you create the send definition, pass its ID in the sendDefinitionId query parameter when you send with RCS - Send (Direct Send API).
Create send definitions on your org's My Domain host. Send messages through the Salesforce API gateway at api.salesforce.com.
This table lists the use cases that the API supports.
| Supported Use Case | HTTP Verb | URI |
|---|---|---|
| Create an RCS send definition | POST | /services/data/{apiVersion}/connect/e360/rcs/sendDefinition |
Before You Begin
- A Salesforce access token whose user can create send definitions. With the client credentials flow, that's the Run As user on the External Client App.
- The sender: the record ID of an active RCS Messaging Channel.
- The content key of the published CMS content, if you're linking content. The content must be
sfdc_cms__rcscontent. - The name of the communication subscription. RCS send definitions require one.
Send Definition IDs
RCS send definition IDs start with 539.
Rules for All Channels
Some send definition rules are the same for every channel: how message purpose and communication subscriptions work, how data spaces relate to business units, which identifier to pass in each field, and how to name send definitions. For more information, see Send Transactional Messages Through Direct Send API.
Errors
When a request fails, the response body is an array of error objects. Each object contains a message that describes the error.
Salesforce Marketing Cloud
Let us know so we can improve!