API - SISTEMA | BAILEYS | OFIC...
Criar Ticket
1min
\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //{backend url}/api/tickets/createticketapi', 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 =>'{ "contactid" 9580 }', curlopt httpheader => array( 'content type application/json', 'authorization bearer meutoken' ), )); $response = curl exec($curl); curl close($curl); echo $response; { "id" 4250, "status" "pending", "unreadmessages" 0, "lastmessage" "", "protocolo" "5085", "typebot sessionid" null, "typebot status" null, "customa" null, "customb" null, "isgroup" false, "userid" null, "contactid" 9580, "whatsappid" 2, "queueid" null, "chatbot" false, "channel" "whatsapp", "queueoptionid" null, "companyid" 1, "uuid" "7921ee5f 1483 4048 b3b3 de7a4e511df0", "createdat" "2024 01 07t19 03 41 947z", "updatedat" "2024 01 07t19 05 53 318z", "contact" { "id" 9580, "name" " ", "number" "5521999999999", "email" "", "profilepicurl" "https //pps whatsapp net/v/t61 24694 24/390056998 185805554567616 3986132482091405074 n jpg?stp=dst jpg s96x96\&ccb=11 4\&oh=01 adsl4g3dnzr59zls0qt6lebuw7qtrrxprbvccedy9odxbg\&oe=656d829b& nc sid=e6ed6c& nc cat=111", "acceptaudiomessage" true, "active" true, "disablebot" false, "extrainfo" \[] }, "user" null, "queue" null, "whatsapp" { "name" "suporte x", "webhook" "https //ennszy6hsaea9 x pipedream net/", "id" 2, "token" "ruan", "coverimage" 4 }, "tags" \[], "company" { "name" "whaticket saas" } }