Skip to main content
GET
/
conversation
/
{conversationId}
Obter conversa
curl --request GET \
  --url http://localhost:3001/conversation/{conversationId} \
  --header 'X-JuriChat-Api-Key: <api-key>'
{
  "data": {
    "id": "<string>",
    "status": "ROBOT_INTERACTIVE",
    "priority": "LOW",
    "person": {
      "id": "<string>",
      "name": "<string>",
      "phoneNumber": "<string>",
      "imageUrl": "<string>"
    },
    "user": {
      "id": "<string>",
      "name": "<string>",
      "imageUrl": "<string>"
    },
    "tags": [
      {
        "id": "<string>",
        "name": "<string>",
        "color": "<string>"
      }
    ],
    "participants": [
      {
        "id": "<string>",
        "name": "<string>",
        "isAgent": true,
        "isMember": true,
        "imageUrl": "<string>",
        "phoneNumber": "<string>"
      }
    ],
    "messages": [
      {
        "id": "<string>",
        "content": "<string>",
        "type": "<string>",
        "direction": "<string>",
        "messageAt": "2023-11-07T05:31:56Z",
        "externalId": "<string>",
        "externalStatus": "<string>",
        "errorMessage": "<string>",
        "participantId": "<string>",
        "formattedDate": "<string>",
        "contact": {
          "name": "<string>",
          "phoneNumber": "<string>"
        },
        "quotedMessage": {
          "id": "<string>",
          "content": "<string>",
          "formattedDate": "<string>"
        },
        "transcription": "<string>",
        "summary": "<string>",
        "metadata": "<unknown>"
      }
    ],
    "isGroup": true,
    "group": {
      "id": "<string>",
      "name": "<string>",
      "externalId": "<string>",
      "imageUrl": "<string>"
    },
    "inboxId": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "hasMore": true,
  "nextCursor": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.jurichat.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-JuriChat-Api-Key
string
header
required

Chave de API do escritório (criada no painel). Envie o valor no header X-JuriChat-Api-Key.

Path Parameters

conversationId
string
required

ID da conversa.

Pattern: ^[cC][^\s-]{8,}$

Query Parameters

cursor
string

Cursor para buscar a próxima página de mensagens. Use o valor retornado em nextCursor.

limit

Quantidade máxima de mensagens por página.

Response

Default Response

data
object
required
hasMore
boolean
required

Indica se há mais mensagens disponíveis além da página atual.

nextCursor
string

Cursor para buscar a próxima página de mensagens. Presente apenas quando hasMore for verdadeiro.