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

# Create API Tool

> Cria uma nova ferramenta de API vinculada a uma conexão.



## OpenAPI

````yaml openapi-v2 POST /api-tools/tool/create/{instance}
openapi: 3.0.3
info:
  title: ZapThinker API
  version: 2.1.1
servers:
  - url: https://api.zapthinker.com
security: []
paths:
  /api-tools/tool/create/{instance}:
    post:
      tags:
        - API Tools Controller
      summary: Create an API tool
      description: Cria uma nova ferramenta de API vinculada a uma conexão.
      operationId: createApiTool
      parameters:
        - name: instance
          in: path
          required: true
          description: Nome da instância
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                apiConnectionId:
                  type: string
                  description: ID da conexão de API
                name:
                  type: string
                  description: Nome da ferramenta
                description:
                  type: string
                  description: Descrição da ferramenta (usada pelo LLM)
                method:
                  type: string
                  enum:
                    - GET
                    - POST
                    - PUT
                    - PATCH
                    - DELETE
                path:
                  type: string
                  description: Caminho do endpoint
                queryParams:
                  type: object
                  description: Schema dos query parameters
                bodySchema:
                  type: object
                  description: Schema do body da requisição
                pathParams:
                  type: object
                  description: Schema dos path parameters
                headers:
                  type: object
                  description: Headers adicionais
                responseMapping:
                  type: object
                  description: Mapeamento da resposta
                timeoutMs:
                  type: integer
                  minimum: 1000
                  maximum: 60000
                  description: Timeout em ms
                enabled:
                  type: boolean
              required:
                - apiConnectionId
                - name
                - description
                - path
      responses:
        '201':
          description: Ferramenta criada com sucesso
          content:
            application/json:
              schema:
                type: object
        '400':
          description: Parâmetros inválidos
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
      description: Your authorization key header

````