Buscar uma chamada

Recupera os dados de uma chamada específica através do identificador único ou pela referência cadastrada.


📌 Por que buscar uma chamada?


Essencial para buscar informações e dados de um atendimento em especifico.

  • Localiza rapidamente uma chamada, sem precisar procurar manualmente.
  • Analisar chamada.
  • Busca de informações especificas.


🔗 Endpoint:


Método: GET

URL: https://api.nuvidio.com/v1/api/call/:id


🔎 Parâmetros da URL:


ParâmetroPadrãoTipoObrigatório
:id-string

✅ Resposta de Sucesso:


{
  "id": "65372643c22a7973b603c653",
  "initialDate": "2023-10-24T02:04:51.773Z",
  "expirationDate": "2023-10-24T02:05:11.234Z",
  "duration": 20,
  "ticket": "23102499066177",
  "recorded": true,
  "recordingDeleted": false,
  "tags": [
    {
      "id": "60d3423babf54861b882f07c",
      "label": "Dúvida",
      "description": "Cliente tinha dúvidas sobre o produto",
      "color": "#ece755"
    }
  ],
  "textChat": [],
  "rating": {
    "review": "",
    "kind": "NPS",
    "attendantRating": 5,
    "questionnaire": [
      {
        "question": "Como foi a chamada?",
        "answer": "Muito boa"
      }
    ]
  },
  "department": {
    "id": "5f71281d112758f7d019c7c4",
    "name": "Nuvidio",
    "identifier": "nuvidio"
  },
  "queue": {
    "id": "65372642bfcaec8cc92a2dcb",
    "logs": [
      {
        "name": "done",
        "timestamp": "2023-10-24T02:04:51.735Z",
        "detail": {
          "message": "User moved to call by attendant 5cb6490584f3022388480647",
          "code": "shift"
        }
      },
      {
        "name": "routed-to-attendant",
        "timestamp": "2023-10-24T02:04:50.250Z",
        "detail": {
          "message": "Call routed to attendant with id: 5cb6490584f3022388480647",
          "code": "routed-to-attendant"
        }
      },
      {
        "name": "enqueued",
        "timestamp": "2023-10-24T02:04:50.207Z",
        "detail": {
          "message": "User enqueued",
          "code": "push"
        }
      }
    ],
    "origin": "https://nuvidio.com/nuvidio?token=bd94b60f-210b-4d30-852a-1d769d4aaf81",
    "device": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36",
    "status": {
      "name": "done",
      "detail": {
        "message": "User moved to call by attendant 5cb6490584f3022388480647",
        "code": "shift"
      },
      "timestamp": "2023-10-24T02:04:51.735Z"
    },
    "enqueuedAt": "2023-10-24T02:04:50.207Z",
    "unqueuedAt": "2023-10-24T02:04:55.738Z",
    "createdAt": "2023-10-24T02:04:50.210Z"
  },
  "customer": {
    "name": "Cliente",
    "tel": "31999999999",
    "email": "[email protected]",
    "cpf": "00000000000",
    "id": "60175bd1e53610318015fe4a",
    "connectedAt": "2023-10-24T02:04:53.449Z"
  },
  "customerData": {
    "contrato": {
      "label": "Contrato",
      "value": "10291012"
    }
  },
  "invite": {
    "id": "65372637db09d16ee44b3fa5",
    "token": "bd94b60f-210b-4d30-852a-0d769d2aaf81",
    "link": "https://nuvidio.com/nuvidio?token=bd94b60f-210b-4d30-852a-0d769d42af81",
    "shortLink": "https://nuvidio.me/hZqaXD"
  },
  "attendant": {
    "name": "Attendant",
    "id": "5cb6490584f3022388480647",
    "notes": "",
    "email": "[email protected]",
    "reference":null,
    "connectedAt": "2023-10-24T02:04:52.639Z"
  },
  "logs": [
    {
      "name": "finalized_by_attendant",
      "client": "Cliente",
      "clientRole": "attendant",
      "timestamp": "2023-10-24T02:05:11.234Z",
      "detail": "Finalize call with success"
    },
    {
      "name": "disconnected",
      "client": "Attendant",
      "timestamp": "2023-10-24T02:05:11.687Z",
      "detail": "User disconnected from room",
      "clientRole": "customer"
    },
    {
      "name": "disconnected",
      "client": "Cliente",
      "timestamp": "2023-10-24T02:05:11.304Z",
      "detail": "User disconnected from room",
      "clientRole": "attendant"
    },
    {
      "name": "connected",
      "client": "Attendant",
      "timestamp": "2023-10-24T02:04:55.833Z",
      "detail": "User joining on room",
      "clientRole": "customer"
    },
    {
      "name": "connected",
      "client": "Cliente",
      "timestamp": "2023-10-24T02:04:55.449Z",
      "detail": "User joining on room",
      "clientRole": "attendant"
    },
    {
      "timestamp": "2023-10-24T02:04:51.779Z",
      "client": "attendant",
      "detail": "Attendant started record",
      "name": "started_record",
      "clientRole": "attendant"
    }
  ],
  "questionnaire": []
}


❌ Respostas de erro:


CódigoMensagem
404Chamada não encontrada
500Erro interno