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

# Invoke Connector Operation

> Invoke a connector operation on a connection directly - no agent or task required. The response is the target API's response.

The body follows the same `RequestPayload` schema the agent-controller uses: `body_params` (request body), `query_params`, `path_params` (by name), and `headers` (extra headers for the target API). The operation runs with its spec-defined HTTP method regardless of this POST, and the connection's stored credentials are applied automatically.

`operation_id` accepts the operation's `id` or `operationId` from [List Connector Operations](/api-reference/v1/tools/list-connector-operations). Pass `_` as `connector_id` to resolve it from the connection. Use [Get Connector Operation Schema](/api-reference/v1/tools/get-connector-operation-schema) to inspect the expected inputs first.


## OpenAPI

````yaml POST /v1/tools/connectors/{connector_id}/connections/{connection_id}/{operation_id}
openapi: 3.1.0
info:
  title: xpander.ai API Service
  description: |2-

        The xpander.ai API Service provides a unified REST API for managing AI agents,
        executing tasks, managing knowledge bases, and integrating with external systems.
        
        Features:
        - Agent Management: Create, update, deploy, and delete AI agents
        - Task Execution: Invoke agents with support for sync, async, and streaming modes
        - Knowledge Bases: Manage knowledge bases and documents for RAG workflows
        - Tools: Discover, connect, and attach tools (connectors, custom functions, MCP servers, sub-agents, workflows) to agents and workflows
        - MCP Integration: Model Context Protocol support for standardized AI interactions
        
        Authentication: All endpoints require authentication via either an API key (`x-api-key`) or an OAuth2 JWT (`Authorization: Bearer <jwt>`).
        
  version: '0.001'
servers: []
security: []
paths:
  /v1/tools/connectors/{connector_id}/connections/{connection_id}/{operation_id}:
    post:
      tags:
        - API v1
        - Tools
        - Tools Discovery
      summary: Invoke Connector Operation
      description: >-
        Invoke a connector operation on a connection, without an agent or task.
        Body: `body_params` (request body), `query_params`, `path_params` (by
        name), `headers` (extra headers for the target API). The operation runs
        with its spec-defined HTTP method regardless of this POST; connection
        credentials are applied automatically. `operation_id` accepts the
        operation's `id` or `operationId`; pass `_` as connector_id to resolve
        it from the connection. The response is the target API's response. Times
        out after 300s.
      operationId: >-
        Invoke_connector_operation_v1_tools_connectors__connector_id__connections__connection_id___operation_id__post
      parameters:
        - name: connector_id
          in: path
          required: true
          schema:
            type: string
            title: Connector Id
        - name: connection_id
          in: path
          required: true
          schema:
            type: string
            title: Connection Id
        - name: operation_id
          in: path
          required: true
          schema:
            type: string
            title: Operation Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RequestPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    RequestPayload:
      properties:
        body_params:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Body Params
        query_params:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Query Params
        path_params:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Path Params
        headers:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Headers
      type: object
      title: RequestPayload
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      description: API Key for authentication
      in: header
      name: x-api-key

````