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

# Obter integração

> Consulta a configuração atual da sua integração com o painel de atendimento externo

<Note>
  O `signingSecret` não é incluído na resposta por motivos de segurança.
</Note>

## Descrição

Consulta a configuração atual da integração associada a um projeto do Jelou.

É útil para verificar o status da integração, confirmar a URL do webhook ativa ou auditar as alterações realizadas sem precisar modificar a configuração.

## Endpoint

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

## Parâmetros de rota

<ParamField path="projectId" type="string" required>
  Identificador único do projeto Jelou cuja integração se deseja consultar.
</ParamField>

## Autenticação

Todas as requisições devem incluir o cabeçalho `x-api-key` com a API key do projeto Jelou.

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

## Exemplo de requisição

O exemplo a seguir consulta a integração configurada para o projeto `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'
```

## Respostas

| Código | Status                | Descrição                                              |
| ------ | --------------------- | ------------------------------------------------------ |
| 200    | OK                    | Integração encontrada. Retorna a configuração atual.   |
| 401    | Unauthorized          | Credenciais de autenticação inválidas ou ausentes.     |
| 404    | Not Found             | Não existe uma integração para o `projectId` indicado. |
| 500    | Internal Server Error | Erro interno do servidor.                              |

## Exemplo de resposta

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

## Estrutura da resposta

| Propriedade | Tipo   | Descrição                                       |
| ----------- | ------ | ----------------------------------------------- |
| brainId     | string | Identificador único do projeto Jelou.           |
| webhookUrl  | string | URL do endpoint que recebe os eventos do Jelou. |
| createdAt   | date   | Data e hora de criação da integração.           |
| updatedAt   | date   | Data e hora da última atualização.              |


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

````