Skip to main content
POST
/
marketplace
/
messaging
/
send-sms
Enviar SMS
curl --request POST \
  --url http://api.gu1.ai/marketplace/messaging/send-sms \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "to": "<string>",
  "senderIndex": 123,
  "templateParams": {}
}
'
Requer integração SMS ativa. Ver Visão geral.

Endpoint

POST https://api.gu1.ai/marketplace/messaging/send-sms

Corpo

to
string
required
Telefone (E.164 recomendado).
senderIndex
integer
Índice opcional do remetente Twilio na configuração.
templateParams
object
Substituições {{variável}}.
Template: templateId (SMS). Sem body. Inline: body obrigatório. Sem templateId. templateParams opcional no texto.
{
  "to": "+5511999999999",
  "body": "Seu código: {{token}}",
  "templateParams": { "token": "123456" }
}
Erros em inglês em error quando success: false.