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

# Iniciar atendimento humano ou transferir

> Transfere a conversa para atendimento humano. Permite atribuir a um atendente específico ou a um aleatório, com opção de notificar o contato.



## OpenAPI

````yaml https://api.jurichat.com/docs/client/openapi.json post /conversation/start-human-support
openapi: 3.1.0
info:
  title: JuriChat API — Documentação para Integradores
  description: ''
  version: 1.0.0
servers:
  - url: https://api.jurichat.com
    description: Production server
security:
  - apiKeyAuth: []
tags: []
paths:
  /conversation/start-human-support:
    post:
      tags:
        - Conversations
      summary: Iniciar atendimento humano ou transferir
      description: >-
        Transfere a conversa para atendimento humano. Permite atribuir a um
        atendente específico ou a um aleatório, com opção de notificar o
        contato.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                conversationId:
                  type: string
                  pattern: ^[cC][^\s-]{8,}$
                  description: ID da conversa.
                departmentId:
                  type: string
                  nullable: true
                  description: ID do departamento responsável pela fila. Opcional.
                selectedUserId:
                  type: string
                  pattern: ^[cC][^\s-]{8,}$
                  description: ID do atendente específico. Opcional.
                isRandom:
                  type: boolean
                  default: false
                  description: >-
                    Quando verdadeiro, seleciona um atendente aleatório
                    elegível. Padrão: false.
                notifyTransfer:
                  type: boolean
                  default: false
                  description: >-
                    Quando verdadeiro, envia notificação de transferência ao
                    contato. Padrão: false.
                templateName:
                  type: string
                  description: >-
                    Nome do template de mensagem WhatsApp para a notificação de
                    transferência. Opcional.
                variables:
                  type: array
                  items:
                    type: string
                  description: >-
                    Variáveis do corpo do template, na ordem definida pelo
                    canal. Opcional.
                bodyVariableNames:
                  type: array
                  items:
                    type: string
                  description: >-
                    Nomes das variáveis do corpo para templates com parâmetros
                    nomeados. Opcional.
                headerVariables:
                  type: array
                  items:
                    type: string
                  description: Variáveis do cabeçalho do template. Opcional.
                headerVariableNames:
                  type: array
                  items:
                    type: string
                  description: >-
                    Nomes das variáveis do cabeçalho para templates com
                    parâmetros nomeados. Opcional.
                headerMedia:
                  type: object
                  properties:
                    format:
                      type: string
                      enum:
                        - IMAGE
                        - VIDEO
                        - DOCUMENT
                        - LOCATION
                    link:
                      type: string
                    filename:
                      type: string
                    latitude:
                      anyOf:
                        - type: string
                        - type: number
                    longitude:
                      anyOf:
                        - type: string
                        - type: number
                    name:
                      type: string
                    address:
                      type: string
                  required:
                    - format
                  additionalProperties: false
                  description: >-
                    Mídia do cabeçalho do template (imagem, vídeo, documento ou
                    localização). Opcional.
                buttonVariables:
                  type: array
                  items:
                    type: object
                    properties:
                      index:
                        type: integer
                        minimum: 0
                      parameters:
                        type: array
                        items:
                          type: string
                      parameterNames:
                        type: array
                        items:
                          type: string
                    required:
                      - index
                      - parameters
                    additionalProperties: false
                  description: Variáveis dos botões dinâmicos do template. Opcional.
              required:
                - conversationId
              additionalProperties: false
        required: true
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Indica se a operação foi concluída com sucesso.
                  message:
                    type: string
                    description: Mensagem adicional sobre o resultado. Opcional.
                required:
                  - success
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  details: {}
                required:
                  - message
                  - statusCode
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  statusCode:
                    type: number
                  details: {}
                required:
                  - message
                  - statusCode
                additionalProperties: false
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-jurichat-api-key
      description: >-
        Chave de API do escritório (criada no painel). Envie o valor no header
        x-jurichat-api-key.

````