POST

https://{server-url}

/
message
/
sendTemplate
/
{instance}
curl --request POST \
  --url https://{server-url}/message/sendTemplate/{instance} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '{
  "number": "<string>",
  "templateMessage": {
    "name": "<string>",
    "language": "pt_BR",
    "components": [
      {
        "type": "header",
        "sub_type": "quick_reply",
        "index": "<string>",
        "parameters": [
          {
            "type": "payload",
            "text": "<string>"
          }
        ]
      }
    ]
  }
}'

Authorizations

apikey
string
headerrequired

Your authorization key header

Path Parameters

instance
string
required

ID of the instance to connect

Body

application/json
number
string

Message receiver number with country code

templateMessage
object