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

# Execute tool

> Execute a specific tool with provided input parameters. Supports org-scoped custom tools.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/tools/{toolId}/execute
openapi: 3.1.0
info:
  title: Sidenet API
  version: 1.0.0
  description: >-
    Sidenet HTTP endpoints exposed by the Sidenet Studio. All routes require an
    api key that can be generated through the studio in studio.sidenet.ai.
servers:
  - url: https://api.sidenet.ai
security:
  - bearerAuth: []
paths:
  /v1/tools/{toolId}/execute:
    post:
      tags:
        - Tools
      summary: Execute tool
      description: >-
        Execute a specific tool with provided input parameters. Supports
        org-scoped custom tools.
      parameters:
        - in: path
          name: toolId
          required: true
          schema:
            type: string
            example: Acme_CRM_get_customer
          description: The ID of the tool to execute
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                input:
                  type: object
                  description: >-
                    Arguments for the tool, shaped by ITS OWN input schema —
                    read that from GET /v1/tools or GET /v1/tool-providers/{id}
                    first. The example here is illustrative, not a fixed shape.
                  example:
                    customerId: cus_2841
              required:
                - input
      responses:
        '200':
          description: The tool's own result
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  toolId:
                    type: string
                  result:
                    description: >-
                      Whatever the tool returned, unchanged — shaped by that
                      tool, not by this endpoint. An HTTP tool returns its
                      upstream response body.
                  executionTime:
                    type: integer
                    description: Milliseconds spent running it.
              example:
                success: true
                toolId: Acme_CRM_get_customer
                result:
                  id: cus_2841
                  name: Ada Lovelace
                  plan: enterprise
                executionTime: 412
        '400':
          description: Input rejected by the tool's schema
        '404':
          description: No such tool for this organization
        '500':
          description: The tool ran and threw
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: False.
                  error:
                    type: string
                  toolId:
                    type: string
                  details:
                    type: string
                  executionTime:
                    type: integer
      security:
        - bearerAuth: []
        - sessionToken: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.
    sessionToken:
      type: http
      scheme: bearer
      description: >-
        Session token (`snat_…`) minted by POST /v1/token. Carries the
        organization and the end user; safe in a browser.

````