Skip to main content
POST
/
v1
/
messaging
/
chats
/
{chatId}
/
templates
Envia modelo de mensagem para um chat
curl --request POST \
  --url https://gateway.crmspark.com.br/v1/messaging/chats/{chatId}/templates \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "templateId": "<string>",
  "replyToId": "<string>",
  "commonVariables": {}
}
'

Authorizations

X-API-Key
string
header
required

Path Parameters

chatId
string
required

ID do chat no Spark

Body

application/json
templateId
string
required
replyToId
string
commonVariables
object

Response

Template enviado com sucesso.