Conversas

Buscar conversa por ID

Changed on
get/api/v1/conversations/{id}/messages

Request

  • Base URL
    https://api.g1.datacrazy.io
  • URL
    https://api.g1.datacrazy.io/api/v1/conversations/{id}/messages
  • Auth
    HTTP bearer

Path parameters

idstring required

Query parameters

takenumber
skipnumber

Response

idstring

ID da mensagem

conversationIdstring

ID da conversa

createdAtstring date-time

Data de envio da da mensagem

updatedAtstring date-time

Data em que a mensagem foi editada

deletedAtstring date-time

Data em que a mensagm foi excluída

bodystring

Texto da mensagem

receivedboolean

Valor booleano que indica se a mensagem foi recebida pelo destinatário

statusstring

Status da mensagem

erroCodestring

Código de erro da mensagem

errorMessagestring

Mensagem retornada no erro

headerstring

Presente somente em mensagems enviadas pelo Cloud api

footerstring

Presente somente em mensagems enviadas pelo Cloud api

repliedMessageMessageDto circular
editedboolean

Valor boleano que indica se a mensagem foi editada ou não

deletedboolean

Valor boleano que indica se a mensagem foi deletada ou não

forwardedboolean

Valor boleano que indica se a mensagem é encaminhada ou não

forwardobject

Dados da mensagem encaminhada

isScheduledboolean

Valor boleano que indica se a mensagem é uma mensagem agendada ou não

scheduledDatestring date-time

Data e hora agendadas para o envio da mensagem

signaturestring

Assinatura do atendente na mensagem

isInternalboolean

Valor boleano que indica se a mensagem é uma mensagem interna, sendo uma anotação

interpretedContentPendingboolean
interpretedContentstring

Example response

{
  "id": "68597f2a95fb0298e5c128b5",
  "conversationId": "34523f427033710f15389a18c",
  "createdAt": "2025-06-25T18:03:37.292Z",
  "updatedAt": "2025-11-07T22:05:15.754Z",
  "deletedAt": "2025-08-12T22:10:09.541Z",
  "body": "Bom dia!",
  "received": true,
  "attachments": [
    {
      "id": "685c39fcc2523944ecd171f7",
      "createdAt": "2025-06-25T18:03:40.172Z",
      "updatedAt": "2025-06-25T18:03:40.172Z",
      "deletedAt": "2025-06-25T18:03:40.172Z",
      "fileName": "my-product-175087",
      "mimeType": "image/jpeg",
      "url": "https://dc-qqqq2222pb.s3.amazonaws.com/d129a692-e5ab-42b3-b0e4-90ad9a12b068/f514f655-4897-416e-b5c1-bbc19aac0805",
      "type": "IMAGE",
      "size": "7642"
    }
  ],
  "vcard": [
    {
      "id": "685c4fb6f3dbb11ae1d1b641",
      "createdAt": "2025-01-27T17:13:32.206Z",
      "updatedAt": "2025-01-27T17:33:49.092Z",
      "deletedAt": "2025-01-27T17:13:32.266Z",
      "name": "Guilherme Gavazzoni",
      "organization": "CRM Datacrazy",
      "phones": [
        "5541991331190",
        "554733672094"
      ],
      "emails": [
        "lead@gmail.com",
        "suporte@gmail.com"
      ],
      "addresses": [
        "Av. Paulista, 1578 - Bela Vista, São Paulo - SP, 01310-200"
      ],
      "url": "www.google.com.br",
      "birthday": "12//07/1984",
      "note": "Esse é o contato dele!"
    }
  ],
  "location": {
    "latitude": -23.55052,
    "longitude": -46.633308,
    "address": "Av. Paulista, 1578 - Bela Vista, São Paulo - SP, 01310-200",
    "name": "Escritório Central",
    "caption": "Localização do negócio"
  },
  "status": "RECEIVED",
  "contact": {
    "id": "6808cd89c9968a7b8a41b9f7",
    "createdAt": "2024-12-19T14:21:42.164Z",
    "updatedAt": "2025-06-24T16:28:23.703Z",
    "name": "Angelica Schramm",
    "imageURL": "https://dc-qqqq2222pb.s3.amazonaws.com/0a7ac87c-2f50-46b5-9c39-80ffec53e633/df4db2b8-7f0f-44d4-88e1-dd3e838f275e",
    "contactId": "5547988367066",
    "platform": "WHATSAPP",
    "externalId": "1c3627f8-d6b9-42a9-b355-6977c04c969e",
    "accountName": "@AngelicaSchramm",
    "pending": true,
    "externalInfo": {
      "tagIds": [
        "849fefab-e697-4720-9303-e788c23790cc",
        "9e008d34-86d2-49fd-90af-34a9f9b29896"
      ],
      "stageIds": [
        "6fda2a0d-5e7c-4c51-bf47-2c60f7d34283",
        "2bc3d979-93a4-4e64-8903-5d9379d3de91"
      ],
      "pipelineIds": [
        "3e409b29-0462-40b0-aef4-5eb6f0f2f89a",
        "74c8e833-f681-4ed0-9ce6-e474e2d4b1a0"
      ]
    }
  },
  "attendants": [
    {
      "userId": "t9kn9mqPakdGG535GQK3hod8wzM2",
      "id": "6807e48c25ece34f9f1ba7dd",
      "name": "Joao Silva",
      "email": "joaosilva@gmail.com",
      "phone": "55 47 991331190",
      "imageURL": "https://dc-qqqq1111pb.s3.amazonaws.com/profiles/koQGLa8p68fNZiiSmE1tec2LHtc2_2025-05-24T00%3A27%3A23.486Z"
    }
  ],
  "erroCode": "402",
  "errorMessage": "O token utilizado está expirado",
  "header": "Boa tarde!",
  "footer": "Obrigado",
  "buttons": [
    {
      "id": "3d99cda4-62dc-4b9f-9c6c-124f1966b26a ",
      "name": "Opção um",
      "description": "Opcao para contatar o suporte",
      "url": "www.google.com.br"
    }
  ],
  "repliedMessageAttachment": {
    "fileName": "my-product-175087",
    "mimeType": "image/jpeg",
    "url": "https://dc-qqqq2222pb.s3.amazonaws.com/d129a692-e5ab-42b3-b0e4-90ad9a12b068/f514f655-4897-416e-b5c1-bbc19aac0805",
    "type": "IMAGE"
  },
  "edited": true,
  "deleted": true,
  "isScheduled": true,
  "scheduledDate": "2025-11-07T22:05:15.754Z",
  "signature": "Joao da Silva",
  "isInternal": true
}

Changes

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property ///// from the response with the status

    • warning

      removed the optional property ///// from the response with the status

    • warning

      removed the optional property ///// from the response with the status

    • warning

      removed the optional property ///// from the response with the status

    • warning

      removed the optional property ///// from the response with the status

    • warning

      added the new AUDIO enum value to the // response property for the response status

    • warning

      added the new AUDIO enum value to the ///// response property for the response status

    • warning

      added the new FILE enum value to the // response property for the response status

    • warning

      added the new FILE enum value to the ///// response property for the response status

    • warning

      added the new IMAGE enum value to the // response property for the response status

    • warning

      added the new IMAGE enum value to the ///// response property for the response status

    • warning

      added the new VIDEO enum value to the // response property for the response status

    • warning

      added the new VIDEO enum value to the ///// response property for the response status

    • info

      added the new optional query request parameter skip

    • info

      added the new optional query request parameter take