Single Template Creation Estimated reading: 3 minutes 8 views Overview This API allows you to create RCS templates for rich communication services. These templates can contain multiple cards, each with a title, description, media content, and buttons. The API is helpful for businesses that want to send rich, interactive messages to users via platforms that support RCS. API Endpoint POST https://{{your_domain}}/api/v1.0/{{key}}/rcs_templates URL Parameters: {{key}}: The account key in the URL should be replaced with your actual account key. . HTTP Method POST: This method is used to send the data to create a new RCS template. Headers Content-Type: application/json Authorization: Bearer <your_access_token> Replace <your_access_token> with your actual Bearer token for authentication. Request Payload The request body should be a JSON object containing the RCS template details. Below is an example of the JSON payload for creating a new RCS template: Example Request Payload: { "name": "template_name", "type": "advance", "advance_types": "single", "orientation": "vertical", "components": [ { "cards": [ { "title": "your_title", "description": "your_description", "media": { "height": "MEDIUM", "fileUrl": "https://your_file_path" }, "buttons": [ { "type": "url", "text": "link", "url": "https://example.com" }, { "type": "call", "text": "call now", "number": "9198xxxxxxxx" } ] } ] } ] } Field Descriptions: Field NameTypeDescriptionnamestringThe name of the template, typically used for identification. Example: "rcs_template_one".typestringThe type of template. It can be “advance” (for rich templates with media).advance_typesstringSpecifies the type of advance template. For example, “single”.orientationstringThe orientation of the template. Can be “vertical” or “horizontal”.componentsarrayAn array containing the template components (e.g., cards).cardsarrayAn array of cards in the template, each representing a message or content block.titlestringThe title of the card (e.g., "HI").descriptionstringA description or content for the card (e.g., "This is a sample rcs description").mediaobjectThe media object for the card, containing the height and fileUrl.heightstringSpecifies the height of the media. Example: “MEDIUM”.fileUrlstringThe URL to the media file to be included in the card. Example: image URL.buttonsarrayAn array of buttons for interaction in the card (e.g., link, call).typestringThe type of button, e.g., “url” (a link button) or “call” (a call button).textstringThe text displayed on the button (e.g., "link", "call now").urlstringThe URL to be opened when the user clicks the button (for “url” type buttons).numberstringThe phone number to be called when the “call” button is clicked. Success Response If the template is created successfully, the server will return a 200 OK status with details of the created template. Example Response: { "id": "3232", "status": "PENDING", "type": "ADVANCE" }