Skip to main content
POST
Create a message template

Authorizations

X-Api-Key
string
header
required

API key (hr_live_... or hr_test_...). Generate from Settings › Workspace › Acceso API.

Body

application/json
platform
enum<string>
required

Portal or source associated with this template.

Available options:
idealista,
fotocasa,
metrocuadrado,
inmuebles24,
zonaprop,
widget,
csv_import
Example:

"idealista"

name
string
required

Template name (must match the approved Meta template name exactly).

Example:

"bienvenida_inquilinos_v2"

category
enum<string>
required

Meta template category.

Available options:
MARKETING,
UTILITY,
AUTHENTICATION,
ACCOUNT_UPDATE
Example:

"MARKETING"

components
any[]
required

Template components (HEADER, BODY, FOOTER, BUTTONS). See Meta template docs for component structure.

apiType
enum<string>
default:meta-api

WhatsApp integration type. meta-api requires a WABA account; evolution-api uses a connected Evolution API account.

Available options:
meta-api,
evolution-api
Example:

"meta-api"

wabaId
string

WhatsApp Business Account ID. Required when apiType is meta-api.

Example:

"123456789012345"

accountId
string<uuid>

Evolution API account UUID. Required when apiType is evolution-api.

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

language
string
default:es

Template language code (BCP 47). Defaults to es.

Example:

"es"

Response

201 - undefined