Pular para o conteúdo principal
POST
/
template
/
create
/
{instanceName}
Create Template
curl --request POST \
  --url http://localhost:8080/template/create/{instanceName} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "name": "<string>",
  "category": "MARKETING",
  "language": "<string>",
  "components": [
    {}
  ]
}
'
{
  "success": true,
  "template": {
    "id": "template-id",
    "name": "template_name",
    "status": "APPROVED"
  }
}

Autorizações

apikey
string
header
obrigatório

API Key for authentication (global or instance-specific)

Parâmetros de caminho

instanceName
string
obrigatório

WhatsApp instance name

Exemplo:

"my-instance"

Corpo

application/json
name
string
obrigatório
category
enum<string>
obrigatório
Opções disponíveis:
MARKETING,
UTILITY,
AUTHENTICATION
language
string
obrigatório
components
object[]
obrigatório

Resposta

Template created successfully

success
boolean
Exemplo:

true

template
object