> ## 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.

# Obtener integración

> Consulta la configuración actual de tu integración con el panel de atención externo

## Descripción

Consulta la configuración actual de la integración asociada a un proyecto de Jelou.

Es útil para verificar el estado de la integración, confirmar la URL del webhook activa o auditar los cambios realizados sin necesidad de modificar la configuración.

## Endpoint

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

## Parámetros de ruta

<ParamField path="projectId" type="string" required>
  Identificador único del proyecto de Jelou cuya integración se desea consultar.
</ParamField>

## Autenticación

Todas las peticiones deben incluir el encabezado `x-api-key` con la API key del proyecto de Jelou.

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

## Ejemplo de solicitud

El siguiente ejemplo consulta la integración configurada para el proyecto `PROJECT_ID`:

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

## Respuestas

| Código | Estado                | Descripción                                               |
| ------ | --------------------- | --------------------------------------------------------- |
| 200    | OK                    | Integración encontrada. Devuelve la configuración actual. |
| 401    | Unauthorized          | Credenciales de autenticación inválidas o faltantes.      |
| 404    | Not Found             | No existe una integración para el `projectId` indicado.   |
| 500    | Internal Server Error | Error interno del servidor.                               |

## Ejemplo de respuesta

```json theme={null}
{
  "message": [
    "Integration retrieved successfully"
  ],
  "statusMessage": "success",
  "status": 1,
  "data": {
    "brainId": "PROJECT_ID",
    "webhookUrl": "https://mi-sistema.com/webhook/jelou",
    "createdAt": "2026-01-15T10:30:00.000Z",
    "updatedAt": "2026-01-20T14:45:00.000Z"
  }
}
```

## Estructura de la respuesta

| Propiedad  | Tipo   | Descripción                                       |
| ---------- | ------ | ------------------------------------------------- |
| brainId    | string | Identificador único del proyecto de Jelou.        |
| webhookUrl | string | URL del endpoint que recibe los eventos de Jelou. |
| createdAt  | date   | Fecha y hora de creación de la integración.       |
| updatedAt  | date   | Fecha y hora de la última actualización.          |


## OpenAPI

````yaml GET /v1/external-support/{projectId}
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}:
    servers:
      - url: https://gateway.jelou.ai/platform
        description: External Support Panel API
    get:
      tags:
        - External Support Panel
      summary: Get Integration
      description: >-
        Query the current configuration of an external support panel integration
        associated with a specific project.
      operationId: getExternalSupport
      parameters:
        - name: projectId
          in: path
          required: true
          description: Unique identifier of the Jelou project
          schema:
            type: string
      responses:
        '200':
          description: Integration retrieved successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalSupportGetResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - apiKey: []
components:
  schemas:
    ExternalSupportGetResponse:
      type: object
      properties:
        id:
          type: string
          example: INTEGRATION_ID
        brainId:
          type: string
          example: BRAIN_ID
        webhookUrl:
          type: string
          example: https://my-system.com/webhook/jelou
        authType:
          type: string
          example: bearer
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    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
  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'
  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

````