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

# Invoke protocol action

> Executes a protocol action against a backend. The HTTP method must match the action's declared method. The request and response bodies are **defined by the invoked protocol**, not by this API — retrieve the exact shapes from the protocol's generated OpenAPI (`GET /api/admin/protocols/{id}/openapi`).



## OpenAPI

````yaml /products/link/openapi.yaml post /api/invoke/{protocol}/{action}
openapi: 3.0.0
info:
  description: >-
    Admin API for managing Link protocols and backends (Bundled and Standalone
    editions).
  title: Link API
  version: '1.0'
servers:
  - url: https://{instance}.{env}.on-hellgate.cloud
    description: Managed instance of Link
    variables:
      instance:
        default: my-instance
        description: Your unique instance slug, provided during onboarding.
      env:
        default: eu1
        description: Deployment environment (currently eu1).
security: []
tags: []
paths:
  /api/invoke/{protocol}/{action}:
    post:
      tags:
        - Invoke
      summary: Invoke protocol action
      description: >-
        Executes a protocol action against a backend. The HTTP method must match
        the action's declared method. The request and response bodies are
        **defined by the invoked protocol**, not by this API — retrieve the
        exact shapes from the protocol's generated OpenAPI (`GET
        /api/admin/protocols/{id}/openapi`).
      operationId: invoke
      parameters:
        - name: protocol
          in: path
          required: true
          description: Protocol local ID
          schema:
            type: string
        - description: Action name
          in: path
          name: action
          required: true
          schema:
            type: string
        - name: backend
          in: query
          required: false
          description: Backend ID (required when multiple backends match)
          schema:
            type: string
      requestBody:
        description: Action input. The shape is defined by the invoked protocol.
        content:
          application/json:
            schema:
              type: object
      responses:
        '200':
          description: >-
            Protocol-defined outcome. The shape is declared by the invoked
            protocol; Link returns the protocol-mapped result.
          content:
            application/json:
              schema:
                type: object
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Not found
        '405':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Method not allowed
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Ambiguous backend
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Validation error
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      description: Generic error response.
      properties:
        classifier:
          example: NOT_FOUND
          type: string
        code:
          example: 404
          type: integer
        message:
          example: The requested resource does not exist
          type: string
      required:
        - classifier
        - code
        - message
      title: Error
      type: object
  securitySchemes:
    bearerAuth:
      bearerFormat: JWT
      scheme: bearer
      type: http

````