Skip to main content
POST
Fill a template

Authorizations

Authorization
string
header
required

An API key from Settings, API keys. It starts with rc_live_.

Path Parameters

id
string
required

The template's ID (not its key).

Body

application/json
person_id
string

The person the message is to.

person_ids
string[]

Several people it is to, 20 at most. Names fill as a list, such as Jordan and Sam.

animal_ids
string[]

The animals it is about, 20 at most.

The record it is about. Send it with related_entity_id, or neither. An animal fills the animal fields; an adoption_application fills the applicant and the animals applied for; a form_submission fills the person it became; a person fills that person.

thread_id
string

A conversation to take the person and the record from, when you name neither. Only links someone confirmed are used.

variables
object

Values of your own, by merge field name. They win over the records.

Response

The filled message.

template_id
string
template_key
string
template_version
integer | null

The version whose wording this is.

subject
string

The subject, filled.

body_blocks
object[]

A message written as a document: at most 200 blocks.

One block of a document. An unknown type is refused.

unfilled
string[]

The merge fields nothing filled, in the order they first appear. They are still in the text, as written; sending the message with one left in is refused.

person_id
string | null

The person it was filled for.

person_ids
string[]
animal_ids
string[]