GET
/
api
/
tickets
curl --request GET \
  --url https://api.atendai.com/api/tickets \
  --header 'Authorization: Bearer <token>'
{
  "tickets": [
    {
      "id": "id-do-ticket",
      "order": 1,
      "status": "open",
      "unreadMessages": 0,
      "lastMessage": "Última mensagem enviada",
      "isGroup": false,
      "isBot": false,
      "channel": "evolution",
      "userId": "id-do-usuario",
      "contactId": "id-do-contato",
      "whatsappId": "id-da-conexao",
      "queueId": null,
      "companyId": "id-da-empresa",
      "chatConversationId": null,
      "createdAt": "data-de-criacao",
      "updatedAt": "data-da-ultima-atualizacao"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

status
string

Status dos tickets entre open, pending e closed

userId
string

Id do usuário responsável pelo Ticket.

queueId
string

Id do departamento.

contactId
string

Id do contato.

whatsappId
string

Id da conexão do WhatsApp.

searchParam
string

Parâmetro de busca.

Response

200
application/json

Successful response

The response is of type object.