Skip to main content
POST
/
messages
/
template
Send message template
curl --request POST \
  --url https://messenger-public-api.cogfy.com/messages/template \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '{
  "from": "<string>",
  "to": "<string>",
  "template": {
    "name": "<string>",
    "language": {
      "code": "<string>"
    },
    "components": [
      {
        "type": "<string>",
        "sub_type": "<string>",
        "index": 1,
        "parameters": [
          "<string>"
        ]
      }
    ]
  }
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

api-key
string
header
required

Body

application/json
from
string
to
string
template
object

Response

200 - application/json
id
string<uuid>