API - SISTEMA | BAILEYS | OFIC...
Template API Oficial (NATIVA)
2 min
envio de template \<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //{backend url}/api/messages/sendmetacustom', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'post', curlopt postfields =>'{ "number" "5511989091838", "name" "teste variaveis form", "openticket" 1, "queueid" 100, "language" "pt br", "template" \[ { "type" "body", "parameters" \[ { "type" "text", "text" "rafael" }, { "type" "text", "text" "festa do peão" }, { "type" "text", "text" "15/01/2026" } ] }, { "type" "button", "sub type" "quick reply", "index" "1", "parameters" \[ { "type" "payload", "payload" "contato" } ] } ] }', curlopt httpheader => array( 'content type application/json', 'authorization bearer seutoken' ), )); $response = curl exec($curl); curl close($curl); echo $response;
