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

# Gateway endpoint for flow execution

> Execute flows based on project subdomain and path. Response structure depends on flow configuration.



## OpenAPI

````yaml openapi.json post /gateway/{project_id}/{path}
openapi: 3.0.0
info:
  description: Dualship backend API for workflow automation and API management.
  title: Dualship API
  termsOfService: https://dualship.run/terms
  contact:
    name: Dualship Support
    url: https://dualship.run/support
    email: support@dualship.run
  version: '1.0'
servers:
  - url: https://api.dualship.run
security: []
paths:
  /gateway/{project_id}/{path}:
    post:
      tags:
        - gateway
      summary: Gateway endpoint for flow execution
      description: >-
        Execute flows based on project subdomain and path. Response structure
        depends on flow configuration.
      parameters:
        - description: Project ID
          name: project_id
          in: path
          required: true
          schema:
            type: string
        - description: Flow path
          name: path
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Flow execution result - structure varies based on flow
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          description: Invalid project ID
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.BadRequestError'
        '404':
          description: Route not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.NotFoundError'
        '500':
          description: Flow execution failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_api_handler.InternalServerError'
components:
  schemas:
    internal_api_handler.BadRequestError:
      description: Bad request error
      type: object
      properties:
        code:
          type: string
          example: BAD_REQUEST
        error:
          type: string
          example: invalid request parameters
    internal_api_handler.NotFoundError:
      description: Not found error
      type: object
      properties:
        code:
          type: string
          example: NOT_FOUND
        error:
          type: string
          example: resource not found
    internal_api_handler.InternalServerError:
      description: Internal server error
      type: object
      properties:
        code:
          type: string
          example: INTERNAL_ERROR
        error:
          type: string
          example: internal server error

````