Skip to main content
POST
/
templates
Criar template de mensagem
curl --request POST \
  --url http://localhost:3000/templates \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "boas-vindas",
  "body": "Olá {{name}}, seja bem-vindo!",
  "providerTemplateId": "welcome_msg_001",
  "provider": "evolution",
  "status": "APPROVED"
}
'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Example:

"boas-vindas"

body
string
required
Example:

"Olá {{name}}, seja bem-vindo!"

providerTemplateId
string
required
Example:

"welcome_msg_001"

provider
string
default:evolution
Example:

"evolution"

status
string
Example:

"APPROVED"

Response

201

Template criado