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

# Obter Bot

> Obtém informações detalhadas sobre um bot específico incluindo configuração, documentos e status



## OpenAPI

````yaml api-reference/openapi.yaml get /api/openapi/v1/bots/{id}
openapi: 3.0.3
info:
  title: Lota AI OpenAPI
  description: >
    API RESTful completa para gerenciamento da plataforma Lota AI. Esta API
    fornece acesso programático para parceiros white-label, integrações externas
    e dashboards personalizados.


    ## Autenticação

    Todos os endpoints (exceto `/auth/token`) requerem autenticação via Bearer
    token. Gere um token usando suas credenciais de chave API.


    ## Limite de Taxa

    Limites de taxa são configurados por chave API. Entre em contato com o
    suporte para limites personalizados.


    ## Suporte

    Para problemas ou dúvidas, entre em contato com o líder da sua equipe ou
    consulte a documentação.
  version: 1.3.0
  contact:
    name: Suporte API Lota AI
    url: https://lotai.com.br
  license:
    name: Proprietário
    url: https://lotai.com.br/terms-and-conditions
servers:
  - url: http://localhost:3000
    description: Servidor de desenvolvimento local
  - url: '{customUrl}'
    description: Servidor white-label personalizado
    variables:
      customUrl:
        default: https://sua-url-aqui.com
        description: URL do seu servidor white-label
security:
  - BearerAuth: []
tags:
  - name: Autenticação
    description: Gerar e gerenciar tokens de acesso JWT
  - name: Chaves API
    description: Gerenciar chaves API para autenticação
  - name: Equipes
    description: Gerenciar equipes e suas configurações
  - name: Documentos
    description: Gerenciar documentos e uploads de arquivos
  - name: Bots
    description: Gerenciar bots de IA e assistentes
  - name: Dispositivos
    description: Gerenciar dispositivos WhatsApp e conexões
paths:
  /api/openapi/v1/bots/{id}:
    get:
      tags:
        - Bots
      summary: Obter Bot
      description: >-
        Obtém informações detalhadas sobre um bot específico incluindo
        configuração, documentos e status
      operationId: getBot
      parameters:
        - $ref: '#/components/parameters/BotId'
      responses:
        '200':
          description: Bot recuperado com sucesso
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  data:
                    $ref: '#/components/schemas/BotDetail'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    BotId:
      name: id
      in: path
      required: true
      description: ID do Bot (UUID)
      schema:
        type: string
        format: uuid
        example: 770e8400-e29b-41d4-a716-446655440002
  schemas:
    BotDetail:
      allOf:
        - $ref: '#/components/schemas/Bot'
        - type: object
          properties:
            questions:
              type: array
              items:
                type: object
                properties:
                  question:
                    type: string
                  answer:
                    type: string
            actions:
              type: array
              items:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                  description:
                    type: string
                  endpoint:
                    type: string
                  method:
                    type: string
                    enum:
                      - GET
                      - POST
                      - PUT
                      - DELETE
                  headers:
                    type: object
                    properties:
                      key:
                        type: string
                      value:
                        type: string
                  body:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                        value:
                          oneOf:
                            - type: string
                            - type: number
                            - type: boolean
                        type:
                          type: string
                          enum:
                            - string
                            - number
                            - boolean
            documents:
              type: array
              items:
                type: object
                properties:
                  document_id:
                    type: string
                    format: uuid
                  bot_id:
                    type: string
                    format: uuid
    Bot:
      type: object
      properties:
        id:
          type: string
          format: uuid
        team_id:
          type: string
          format: uuid
        name:
          type: string
          example: Bot de Suporte
        role:
          type: string
          enum:
            - support
            - dynamic
            - sales
          example: support
        description:
          type: string
          example: Lida com consultas de suporte ao cliente
        openai_id:
          type: string
          example: asst_abc123
        vector_id:
          type: string
          nullable: true
          example: vs_abc123
        instructions:
          type: string
        temperature:
          type: number
          format: float
          minimum: 0
          maximum: 2
          example: 0.7
        published:
          type: boolean
          example: true
        allow_human:
          type: boolean
          example: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
          example: Mensagem de erro
        code:
          type: string
          example: ERROR_CODE
        details:
          type: object
          nullable: true
  responses:
    NotFound:
      description: Não encontrado - Recurso não existe
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            success: false
            error: Recurso não encontrado
            code: NOT_FOUND
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Token JWT obtido do endpoint /api/openapi/auth/token

````