Skip to main content
POST
Validate a template draft

Authorizations

Authorization
string
header
required

Organization API key (flo_…) or OAuth access token (fla_…). Paste the full token; Scalar sends Authorization: Bearer <token>.

Body

application/json
name
string
required

Template name: lowercase letters, numbers, and underscores only.

Required string length: 1 - 512
Pattern: ^[a-z0-9_]+$
language
string
required

Language code, for example en, en_US, tr, pt_BR.

Required string length: 2 - 32
category
enum<string>
default:UTILITY

Template category: UTILITY, MARKETING, or AUTHENTICATION.

Available options:
MARKETING,
UTILITY,
AUTHENTICATION
components
object[]

Ordered components: HEADER, BODY, FOOTER, BUTTONS, CAROUSEL. HEADER format TEXT (text; example.header_text for {{1}}), IMAGE, VIDEO or DOCUMENT (example.header_handle ["https://..."], uploaded to Meta on submit; not http, and a wrong file type fails submit), or LOCATION. Carousel card headers too. Buttons: QUICK_REPLY (text, max 10, adjacent), URL (text, https url, example for {{1}}, max 2), PHONE_NUMBER (text, phone_number, 1), FLOW (text, flow_id, 1), COPY_CODE (example up to 20 chars, 1), OTP (otp_type COPY_CODE or ONE_TAP, alone, AUTHENTICATION).

wabaId
string

WhatsApp Business Account id. Omit to use the WABA of whatsappChannelId or the default channel.

Minimum string length: 1
whatsappChannelId
string<cuid>

WhatsApp channel id from GET /v1/channels. Omit to use the default number where optional.

headerDocumentFileName
string | null

File name shown on WhatsApp for a DOCUMENT header, for example flowella-playbook.pdf. Sanitised to 60 characters with a supported extension (pdf added when missing). Flowella-side only: it is not sent to Meta for review. Empty string or null clears it. When unset, the slugged template name is used.

Maximum string length: 255
Example:

"flowella-playbook.pdf"

Response

OK

valid
boolean
required

True when create and submit would accept this draft.

issues
object[]
required
warnings
object[]
required