API implementation

A clear backend contract for teams that want to ship.

The developer surface focuses on server-to-server usage, auth, contact capture, subscribers, events and platform health without exposing private credentials in the browser.

Route handlersRequest IDsRate-limit statesCloudflare-ready
Client-to-site flow
await fetch('/api/contact', {
  method: 'POST',
  headers: { 'content-type': 'application/json' },
  body: JSON.stringify({ name, email, message })
});
Live integration

The site is already wired to OneHub routes.

This panel exercises the backend contract safely through the website API layer and exposes loading, empty, degraded, unauthorized and rate-limit states.

1

Configure environment

Set ONEHUB_API_URL and ONEHUB_SITE in local, preview and production environments.

2

Use local site routes

Call the website API layer for auth, contact and subscriber flows so the server attaches context headers.

3

Inspect responses

Preserve request IDs, rate-limit headers and validation messages for support diagnostics.

4

Move to Workers

OpenNext builds the Next.js app into a Cloudflare Worker with web-standard fetch code.

Fast enough for a prototype, explicit enough for production.

The public site shows how Essia maps to OneHub without exposing privileged credentials. Auth, contact and subscription flows go through server route handlers.

Contact sales