Relay demo API

Make a request.
See what happens.

A small playground for real HTTPS requests. Explore query parameters, JSON, headers and GraphQL with clear, fictional examples.

01 · Send and inspect

The request comes back into focus.

The response shows your query parameters, permitted headers, method and URL.

GET https://relaytooling.com/demo/v1/get?hello=relay&project=Orbit
Accept: application/json
X-Relay-Demo: onboarding

Look for args.hello, args.project and headers.x-relay-demo in the JSON. Repeated query names become arrays. The response includes X-Request-Id, X-Relay-Demo and actual handler duration in Server-Timing.

Send a JSON body
POST https://relaytooling.com/demo/v1/post
Content-Type: application/json

{"project":"Orbit","environment":"demo","ready":true}

The response includes parsed json, a sanitized data string and an empty form object. For URL-encoded bodies, use application/x-www-form-urlencoded and inspect form.

02 · Explore an API

A little world called Orbit.

Readable nested objects, arrays and illustrative metrics make JSON easy to explore.

GET https://relaytooling.com/demo/v1/api/projects
GET https://relaytooling.com/demo/v1/api/projects/orbit

These read-only responses describe two fictional projects, Orbit and Atlas. Metrics are fixed example values, never live service measurements.

Choose your fields with GraphQL
POST https://relaytooling.com/demo/v1/graphql
Content-Type: application/json

{
  "query": "query OrbitProject($id: ID!) { project(id: $id) { id name environment status region metrics { requests successRate p95LatencyMs } } }",
  "variables": {"id":"orbit"}
}

This is a real, read-only GraphQL schema. Queries, variables, aliases, fragments and bounded introspection are supported. The root fields are service, projects and project(id: ID!). Mutations and subscriptions are not available.

03 · Try a different outcome

Follow the whole conversation.

Practice redirects, failure responses and timing with a predictable destination.

Echo methods and request headers

GET /demo/v1/headers returns permitted request headers. POST /post, PUT /put, PATCH /patch and DELETE /delete echo structured JSON or form bodies. Prefix every path with /demo/v1. /anything accepts those methods plus GET and HEAD.

HTTP status codes

GET /demo/v1/status/404 deliberately returns a 404 JSON response. Choose a whole-number status from 200 to 599; 204, 205 and 304 have no response body. This lets you see how Relay presents different HTTP outcomes.

Redirects

GET /demo/v1/redirect/1 takes one redirect to /demo/v1/get. Choose 1, 2 or 3 hops, or 0 for an immediate echo. Redirects stay on this service; arbitrary redirect destinations are not supported.

Response delay

GET /demo/v1/delay/1 waits approximately one second before returning an echo. Choose a whole number from 0 to 3 seconds. Network conditions add their own time. HEAD returns headers immediately.

Fixed JSON and earlier app builds

GET /demo/v1/json provides a richer fixed example. The original /demo/v1/hello.json remains an unchanged static file for earlier Relay builds.

Small by design

A place for examples.

Only send made-up data. The echo filters known sensitive field names and excludes credential, cookie, client-address and infrastructure headers. It cannot identify every sensitive value. JSON and URL-encoded form bodies are supported; raw text and file uploads are not echoed.

Demo payloads are processed transiently to prepare your response. The application has no request-content logging or database. Cloudflare still processes traffic and may handle technical and security information to operate and protect the service. Read the privacy policy.

Requests are limited to 32 KiB bodies, 8 KiB URLs and modest field and GraphQL complexity limits. Responses are not cached. This public learning service has no uptime guarantee and should not be used for production dependencies or load testing.

Questions about the demo? Contact Daniel McCorley.