Input validation

Validate request data and uploads before actions mutate data or call external services.

What this helps you do

Validate request data and uploads before actions mutate data or call external services.

  • Validate parameters, headers, payload fields, and files
  • Return structured errors for invalid requests
  • Avoid passing untrusted data into integrations
  • Document expected request shape through configuration

Turn URLs into clear interfaces

Input validation defines the fields, headers, parameters, and files your workflow expects, then returns clear errors when callers send the wrong shape.

Validation schema
POST /events
required customer.email
enum event.type = created|updated|deleted
min upload.size >= 1KB
header x-request-id string
  • Validate path variables, query parameters, headers, body fields, and uploaded files before actions run.
  • Actions can assume required inputs are present and typed correctly, reducing defensive branching.
  • Invalid requests receive structured validation responses instead of vague downstream errors.
Response behavior
Valid input
Workflow continues to actions with typed fields ready.
200 OK
Invalid input
Request is rejected immediately with field-level errors.
422 Unprocessable Entity
Response body:
{
  "error": "validation_failed",
  "fields": {
    "customer.email": "required",
    "event.type": "must be one of created|updated|deleted"
  }
}

Related features

Use these features together to build complete endpoint workflows.

Request handling

Validate, authenticate, and rate-limit incoming requests before endpoint actions run.

Auth guards PRO

Protect public endpoints with basic auth, bearer tokens, query keys, or datastore-backed sessions.

Rate limiting PRO

Apply per-endpoint request limits to protect capacity and upstream services.

Signing profiles

Verify webhook signatures from known providers or any HMAC-based source.

Get started in minutes

Everything you need to go from zero to production-ready endpoints.

Create your first endpoint

Sign up, define a URL, and configure auth and validation in a few clicks.

Follow the quickstart

Use the docs to build and test a full endpoint workflow step by step.

Pick a plan when you are ready

Start free, then upgrade for higher limits, advanced features, and team workflows.

Ready to start building?

Get started with Streamnode and build your first endpoint in minutes.