> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get conversation

> Retrieve the status and details of a specific conversation

<Note>
  This endpoint does not emit any event to the webhook. It is a read-only query to retrieve the current status of a conversation.
</Note>

## Description

Retrieves the details and current status of a specific conversation. Returns information about the user, the associated bot, start and close dates, and the end reason if applicable.

## Endpoint

```
GET https://gateway.jelou.ai/platform/v1/external-support/{projectId}/conversations/{conversationId}
```

## Path parameters

<ParamField path="projectId" type="string" required>
  Unique identifier of the Jelou project the conversation belongs to.
</ParamField>

<ParamField path="conversationId" type="string" required>
  Unique identifier of the conversation you want to retrieve.
</ParamField>

## Authentication

All requests must include the `x-api-key` header with your Jelou project API key.

```
x-api-key: API_KEY
```

## Request example

The following example retrieves the details of conversation `CONVERSATION_ID` within project `PROJECT_ID`:

```bash cURL theme={null}
curl --request GET \
  --url https://gateway.jelou.ai/platform/v1/external-support/PROJECT_ID/conversations/CONVERSATION_ID \
  --header 'x-api-key: API_KEY'
```

## Responses

| Code | Status                | Description                                           |
| ---- | --------------------- | ----------------------------------------------------- |
| 200  | OK                    | Conversation found. Returns the conversation details. |
| 401  | Unauthorized          | Invalid or missing authentication credentials.        |
| 404  | Not Found             | Conversation not found for the specified identifiers. |
| 500  | Internal Server Error | Internal server error.                                |

## Response example

```json theme={null}
{
  "message": [
    "Conversation retrieved successfully"
  ],
  "statusMessage": "success",
  "status": 1,
  "data": {
    "_id": "CONVERSATION_ID",
    "roomId": "ROOM_ID",
    "state": "closed",
    "startAt": "2026-01-15T10:30:00.000Z",
    "endAt": "2026-01-15T10:45:00.000Z",
    "endedReason": "closed_by_operator",
    "User": {
      "id": "USER_ID",
      "names": "USER_NAME",
      "referenceId": "USER_REFERENCE_ID",
      "createdAt": "2025-01-28T20:54:25.572Z"
    },
    "Bot": {
      "id": "BOT_ID",
      "name": "BOT_NAME",
      "type": "Whatsapp"
    }
  }
}
```

## Response structure

| Field                   | Type   | Description                                                           |
| ----------------------- | ------ | --------------------------------------------------------------------- |
| `data._id`              | string | Unique identifier of the conversation.                                |
| `data.roomId`           | string | Conversation room identifier.                                         |
| `data.state`            | string | Conversation state: `active` or `closed`.                             |
| `data.startAt`          | date   | Date and time the conversation started.                               |
| `data.endAt`            | date   | Date and time of closing. Present only if the conversation is closed. |
| `data.endedReason`      | string | Close reason: `closed_by_operator`.                                   |
| `data.User.id`          | string | End user identifier.                                                  |
| `data.User.names`       | string | End user name.                                                        |
| `data.User.referenceId` | string | External reference identifier of the user.                            |
| `data.Bot.id`           | string | Identifier of the bot that handled the conversation.                  |
| `data.Bot.name`         | string | Bot name.                                                             |
| `data.Bot.type`         | string | Bot channel (for example: `Whatsapp`).                                |


## OpenAPI

````yaml GET /v1/external-support/{projectId}/conversations/{conversationId}
openapi: 3.1.0
info:
  title: Jelou API
  description: >-
    API for the Jelou platform. Send messages, manage campaigns, handle
    conversations, users, databases, and widgets.
  version: 1.0.0
servers:
  - url: https://api.jelou.ai
    description: Production server
security:
  - basicAuth: []
tags:
  - name: Messages
    description: Send messages to users
  - name: Campaigns
    description: HSM campaigns and templates
  - name: Conversations
    description: Chat history and metrics
  - name: Users
    description: User state and cache management
  - name: Resources
    description: Media resource management
  - name: Datum
    description: Database CRUD operations
  - name: Widget
    description: Widget and room management
  - name: PMA Custom
    description: External support panel integration
paths:
  /v1/external-support/{projectId}/conversations/{conversationId}:
    servers:
      - url: https://gateway.jelou.ai/platform
        description: External Support Panel API
    get:
      tags:
        - External Support Panel
      summary: Get Conversation
      description: >-
        Retrieve the details of a specific conversation in the external support
        panel.
      operationId: getExternalConversation
      parameters:
        - name: projectId
          in: path
          required: true
          description: Unique identifier of the Jelou project
          schema:
            type: string
        - name: conversationId
          in: path
          required: true
          description: Unique identifier of the conversation
          schema:
            type: string
      responses:
        '200':
          description: Conversation retrieved successfully
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalServerError'
      security:
        - apiKey: []
components:
  responses:
    Unauthorized:
      description: Unauthorized - Invalid authentication credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not found - Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    InternalServerError:
      description: Internal server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        statusMessage:
          type: string
        status:
          type: integer
        error:
          type: object
          properties:
            code:
              type: string
            key:
              type: string
            description:
              type: string
            developerMessages:
              type: object
            clientMessages:
              type: object
        validationError:
          type: object
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Basic authentication using Base64 encoded clientId:clientSecret
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API key del proyecto de Jelou

````