Skip to main content
POST
Node.js

Authorizations

Authorization
string
header
required

Send your API key as Authorization: Bearer rw_....

Required scope: project:templates:write.

Body

application/json
name
string
required

Template name used later in the dashboard and API responses.

Required string length: 1 - 32
Example:

"login_code"

content
string
required

Default SMS content rendered when no locale override applies.

Required string length: 1 - 1024
Example:

"Rewrite: seu codigo e {{code}}"

variables
object[]
required

Variables accepted by the template.

Maximum array length: 15
Example:
description
string | null

Short human-readable explanation of what the template is for.

Required string length: 1 - 72
Example:

"Template usado no fluxo de login"

tags
object

Optional metadata stored with the template.

Example:

Response

200 - application/json

Successful response

ok
boolean
required
data
object
required