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

# Dashboard test surface: invoke a tool by slug (VENDOR_API)

> Fire a real ``VENDOR_API`` invocation from the Integrations dashboard.

Verifies the parent connection is owned by the caller's org (404
otherwise), then dispatches ``invoke_tool_by_slug`` so the operator can
confirm the backend action path end-to-end. Emits an
``integration_tool_call`` Tinybird row with ``mode=vendor_api`` and
``reason="ui_slack_test_send"``. An unresolved/disabled slug surfaces as
``ToolUnavailableError`` (400).

The backend ``result`` stays **raw** (the backend path is never narrowed).
For the field-picker UI we also compute ``narrowed`` here (ENG-631) — what
the agent would actually receive — using the shared :func:`narrow_result`.
Effective field map: ``request.response_field_map`` → the saved tool's
``response_field_map`` → none (``narrowed=None``).



## OpenAPI

````yaml /api-reference/openapi.json post /v1/integrations/connections/{connection_id}/test-invoke
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.21.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/integrations/connections/{connection_id}/test-invoke:
    post:
      tags:
        - integrations
      summary: 'Dashboard test surface: invoke a tool by slug (VENDOR_API)'
      description: >-
        Fire a real ``VENDOR_API`` invocation from the Integrations dashboard.


        Verifies the parent connection is owned by the caller's org (404

        otherwise), then dispatches ``invoke_tool_by_slug`` so the operator can

        confirm the backend action path end-to-end. Emits an

        ``integration_tool_call`` Tinybird row with ``mode=vendor_api`` and

        ``reason="ui_slack_test_send"``. An unresolved/disabled slug surfaces as

        ``ToolUnavailableError`` (400).


        The backend ``result`` stays **raw** (the backend path is never
        narrowed).

        For the field-picker UI we also compute ``narrowed`` here (ENG-631) —
        what

        the agent would actually receive — using the shared
        :func:`narrow_result`.

        Effective field map: ``request.response_field_map`` → the saved tool's

        ``response_field_map`` → none (``narrowed=None``).
      operationId: testInvokeConnection
      parameters:
        - name: connection_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Connection Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConnectionTestInvokeRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConnectionTestInvokeResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    ConnectionTestInvokeRequest:
      properties:
        slug:
          type: string
          title: Slug
        input:
          additionalProperties: true
          type: object
          title: Input
        response_field_map:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Response Field Map
      additionalProperties: false
      type: object
      required:
        - slug
      title: ConnectionTestInvokeRequest
      description: |-
        Body for the dashboard ``VENDOR_API`` test surface (Step 10).

        Lets an operator fire a real ``invoke_tool_by_slug`` from the
        Integrations page to confirm the backend action path end-to-end.
        ``input`` matches the resolved tool's ``input_schema``.
    ConnectionTestInvokeResponse:
      properties:
        result:
          additionalProperties: true
          type: object
          title: Result
        narrowed:
          anyOf:
            - {}
            - type: 'null'
          title: Narrowed
      type: object
      required:
        - result
      title: ConnectionTestInvokeResponse
      description: >-
        Raw vendor result echoed back to the dashboard test surface.


        ``narrowed`` previews the agent-facing result after applying the
        effective

        field map (request override → saved field map); ``None`` when no field
        map

        applies (ENG-631).
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    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
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````