Midio docs
  • Getting Started
    • Welcome
    • Quick Start Guide
  • Your First Midio App
  • Guides
    • HTTP
      • Making HTTP Requests
      • Responding to HTTP Requests
      • How to reach your own endpoints
      • CORS
      • Server-Sent Events (SSE)
    • Branching
    • Loops
    • Map, filter, reduce
    • Working with Data
    • Expressions
    • Building Agents
      • Streaming Agent API (experimental)
    • Debugging
    • Secrets and Environment variables
    • Convert JSON to data nodes
    • Writing tests
    • Cleaning up your flows
  • Package Manager
  • Integrating with third party services
  • Troubleshooting
  • Tutorials
    • Connecting LLMs to MCP-servers using the MCP-client package
    • Making Your Own MCP Server in Midio
    • A Fast Path to Functional RAG Agents
    • How to build a streaming agent using Server-Sent Events (SSE)
  • Reference
    • The Midio Editor
      • The Node Editor
      • User Traces
      • Traces (execution)
      • Processes
      • Log
      • Services
      • Problems
      • Function Signature
      • Data
      • Settings
    • The Midio Language
      • Nodes and execution
      • Functions and Events
        • Anonymous functions
      • Modules
      • Contexts
      • Data type
      • Local variables
      • Portals
      • Waypoint node
      • Partial function application
  • The Midio Engine
  • Built in Nodes
    • Core (std)
    • HTTP
    • LLM
Powered by GitBook
On this page
  • Creating HTTP Endpoints
  • Parameterised paths

Was this helpful?

Edit on GitHub
  1. Guides
  2. HTTP

Responding to HTTP Requests

PreviousMaking HTTP RequestsNextHow to reach your own endpoints

Last updated 1 month ago

Was this helpful?

Creating HTTP Endpoints

The event can be used to handle requests to a, potentially parameterized, route. Responses can be sent using the node.

Parameterised paths

/:item1/:item2?q1&q2

The path parameter of supports a simple URL templating scheme, which can be used to parameterize on path and query parameters. The syntax is as follows:

This path will accept any resource with two path items and query parameters named q1 and q2. The names can be anything. The values for the path items and query items will be made available as outputs on the node.

This endpoint will handle call to https://<your-project-name>.midio.dev:<your assigned port>/foo/bar. Check out for more information on how your endpoints are exposed to the public.
this guide
HTTP Endpoint
Respond to HTTP Request
HTTP Endpoint
HTTP Endpoint