Crie sua conta grátis e teste por 7 dias ( não precisa adicionar cartão de crédito )

Criar Ticket

Criar Ticket

Criar Ticket
PHP
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://painel.robomensageiro.com.br/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;

Retorno com sucesso:

JSON
{
    "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/390046998_1858055545e7616_3986132482091405074_n.jpg?stp=dst-jpg_s96x96&ccb=11-4&oh=01_AdSL4g3dnZR39zlS0qT6LeBuW7QTrRxpRBVCdeDY9ODEBg&oe=652D829B&_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": "Robô Mensageiro"
    }
}
Atendimento por WhatsAppAtendimento
WhatsApp