Create a rich card RCS template

Creates a single rich card with an image, text and 1–4 interactive buttons (reply / open_url / dial_call). Sent as application/json. The image is required: provide either the public media_url or the base64 data URI media_file — exactly one. Buttons require an image; for text only, use a text template (POST /v1/rcs/templates/text). A call button dials only a Brazilian number (+55), and two reply buttons cannot share a title, so that each tap points to a single button. 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
required
length ≤ 100
string
required
length ≤ 1600
uri

Public URL of the card's image. Must use HTTPS. Exactly one of media_url or media_file is required. 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. 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. Limit: 2 MB decoded (413 above it). Rejected with 415 if the decoded content is not a recognized image (JPEG, PNG, GIF), regardless of the declared extension or MIME type.

string
length ≤ 306
default_variables
array of objects

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

default_variables
buttons
array of objects
required
length between 1 and 4

1–4 interactive buttons. Two reply buttons cannot share a title: titles are compared trimmed and in Unicode NFC, case-sensitive (Sim and sim are two titles).

buttons*
string
enum
required

Button variant. Drives which payload field is required (url for open_url, phone_number for dial_call; postback_data is optional and only used with reply).

Allowed:
string
required
length ≤ 25

Visible button label (max 25 chars).

uri

Required when type = open_url.

string

Required when type = dial_call. A Brazilian number: +55 in E.164 format (e.g. +5511987654321).

string
length ≤ 2048

Optional, only used when type = reply.

Responses

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