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

# Attach Tool to Agent



## OpenAPI

````yaml POST /tools/attach
openapi: 3.1.0
info:
  title: Yappr API
  description: >
    Create and manage AI voice agents, purchase phone numbers, configure tools,
    and initiate calls — all via REST.
  version: 1.0.0
  contact:
    url: https://goyappr.com
servers:
  - url: https://api.goyappr.com
    description: Production
security:
  - apiKey: []
paths:
  /tools/attach:
    post:
      tags:
        - Tools
      summary: Attach tool to agent
      operationId: attachTool
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - agent_id
                - tool_id
              properties:
                agent_id:
                  type: string
                  format: uuid
                tool_id:
                  type: string
                  format: uuid
                execution_order:
                  type: integer
                  default: 0
                config_override:
                  type: object
                  description: >-
                    Per-attachment config overrides (merges with tool's base
                    config)
      responses:
        '201':
          description: Tool attached
components:
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        Your Yappr API key (e.g. `ypr_live_...`). Generate one in the dashboard
        under **Settings → API Keys**.

````