Create a carousel RCS template

Creates a horizontal carousel of 2–6 rich cards. Sent as application/json with a native nested cards array. Each card has its own header, body, a required image (public media_url or base64 data URI media_file — exactly one per card) and 0–2 buttons. A card without an image is refused with 422, naming the card. Homogeneity rule: every card must declare the same number of buttons, in the same order of types. Reply titles are unique across the whole carousel, so that each tap points to a single button; a call button dials only a Brazilian number (+55). Templates created before these rules keep working. Every template belongs to one agent, declared in agent_id; it is registered in the supplier project of that agent's line.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Friendly name persisted in the template registry.

uuid
required

The RCS agent the template belongs to — the id returned by POST /rcs/agents. The template is registered in the supplier project of that agent's line, and every send of it goes out as this agent (POST /rcs with template_id takes no agent_id). Must be an approved agent of the authenticating app; to use the same content under another agent, create another template.

string
length ≤ 306

Optional fallback delivered as SMS when the RCS send fails.

default_variables
array of objects

Optional sample values for {{N}} placeholders inside each card. Not used to fill a send: POST /rcs needs every placeholder in template_variables.

default_variables
cards
array of objects
required
length between 2 and 6

2 to 6 cards rendered horizontally. A 7th card is refused with 422: A carousel cannot exceed 6 cards.

cards*
string
required
length ≤ 100

Header text shown above the card media.

string
required
length ≤ 1600

Card body. May reference variables via {{N}}.

uri

Public URL of this card's image. Must use HTTPS. Exactly one of media_url or media_file is required on every card. Downloaded when the template is created and kept by LigueLead: the sends use that copy, so the URL does not need to stay online, changing the image behind it does not change the template, and the template list returns the URL of the copy. Templates created before 2026-11-23 still load the image from this URL.

file
^data:[A-Za-z0-9+/.@-]+(/[A-Za-z0-9+/.@-]+)?;(?:name=[^;]+;)?base64,[A-Za-z0-9+/=]+$

Media file upload for this card. Sent inline inside the JSON body as a base64 data URI (data:<mime>;base64,<payload>); the request is application/json, NOT multipart/form-data. The format: binary annotation is the trigger that makes the readme.io API Explorer (and Insomnia) render a file-attach widget that serialises the chosen file into this data URI shape on submit; the surrounding application/json content-type keeps SDK generators on the JSON code path. Exactly one of media_url or media_file is required on every card. Limit: 1 MB decoded per card (413 above it); the combined decoded size of every card's media_file in the carousel cannot exceed 5 MB. Rejected with 415 if the decoded content is not a recognized image (JPEG, PNG, GIF), regardless of the declared extension or MIME type.

buttons
array of objects
required
length between 0 and 2

0 to 2 interactive buttons per card. The number and order of types must match across every card in the carousel, and no two reply buttons of the carousel may share a title (trimmed, Unicode NFC, case-sensitive).

buttons*
string
required
length ≤ 100

Header text shown above the card media.

string
required
length ≤ 1600

Card body. May reference variables via {{N}}.

uri

Public URL of this card's image. Must use HTTPS. Exactly one of media_url or media_file is required on every card. Downloaded when the template is created and kept by LigueLead: the sends use that copy, so the URL does not need to stay online, changing the image behind it does not change the template, and the template list returns the URL of the copy. Templates created before 2026-11-23 still load the image from this URL.

file
^data:[A-Za-z0-9+/.@-]+(/[A-Za-z0-9+/.@-]+)?;(?:name=[^;]+;)?base64,[A-Za-z0-9+/=]+$

Media file upload for this card. Sent inline inside the JSON body as a base64 data URI (data:<mime>;base64,<payload>); the request is application/json, NOT multipart/form-data. The format: binary annotation is the trigger that makes the readme.io API Explorer (and Insomnia) render a file-attach widget that serialises the chosen file into this data URI shape on submit; the surrounding application/json content-type keeps SDK generators on the JSON code path. Exactly one of media_url or media_file is required on every card. Limit: 1 MB decoded per card (413 above it); the combined decoded size of every card's media_file in the carousel cannot exceed 5 MB. Rejected with 415 if the decoded content is not a recognized image (JPEG, PNG, GIF), regardless of the declared extension or MIME type.

buttons
array of objects
required
length between 0 and 2

0 to 2 interactive buttons per card. The number and order of types must match across every card in the carousel, and no two reply buttons of the carousel may share a title (trimmed, Unicode NFC, case-sensitive).

buttons*
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json