Errors, limits & versions
What a failure status means, which routes are actually throttled, and what /v1 promises.
Errors
Failures use the HTTP status for the class and a JSON body that says what went wrong.
{ "error": "authentication required" }- 400: the request is invalid. The message is written for the caller and may change wording without a version bump.
- 401: missing, unknown or revoked credential.
- 403: not allowed. A readonly key on a write, or no role in the
?workspace=you asked for. The body says why. - 404: no such object in your workspace.
- 409: the request conflicts with the object's state. Publishing a payment form with no products returns 409.
- 429: rate limited (see below).
- 500: an internal error. The detail is logged server-side and never returned.
- 503: the feature needs something this deployment lacks. Retrying will not help.
A publish 409 carries requires_ack: true, because that form could never take money. Send {"acknowledge":true} to publish it anyway.
scope when a scope is the cause.Rate limits
Most of this API has no rate limit. Do not design a client around a uniform quota that does not exist.
Exactly 7 of the 136 operations are throttled:
- POST
/v1/rest/chat— 60 messages per hour per user, burst 10 (Ask the in-app assistant one message) - POST
/v1/rest/chat/cancel— 30 confirmations per hour per user, burst 5 (Discard a write the assistant proposed) - POST
/v1/rest/chat/confirm— 30 confirmations per hour per user, burst 5 (Execute a write the assistant proposed) - POST
/v1/rest/forms/ai-generate— 5 per hour per IP, burst 3 (Draft a form config from a prompt (AI)) - POST
/v1/rest/uploads/asset— 2 per second per IP, burst 6 (Upload a code asset (multipart: css/js/html/svg/woff2)) - POST
/v1/rest/uploads/avatar— 2 per second per IP, burst 6 (Upload a profile avatar (multipart)) - POST
/v1/rest/uploads/image— 2 per second per IP, burst 6 (Upload an image (multipart))
Uploads and the AI routes are limited per client IP. The in-app assistant is limited per user and is session-only.
A throttled answer is 429 and carries Retry-After, the seconds that client must wait for that route.
Every other route, including the writes, is unmetered. Apply your own backoff and treat a 5xx as retryable.
Traffic reaches the API through Cloudflare, where edge protections live. No per-key quota is promised.
Versioning & changelog
Everything lives under /v1, and /v1 is stable: paths, request fields and response field names do not change.
Additive changes may land at any time: a new endpoint, a new optional field, a new event type. Tolerate unknown fields.
A change that breaks an integration means a new prefix, /v2, with the old one kept running.
Error message wording is not covered. Match the status code, and the stable code field where one is returned.
The stable fields include requires_ack, so match that rather than the sentence around it.
Watch the published openapi.json, regenerated with every route change, and the release notes for each tag.
GET /version answers over HTTP. On a host you operate, jomform-api --version prints version=<version> commit=<commit> and exits.
--version and --help answer before startup: no database, cache, migration, worker or port. Safe on a live instance, including in its own container.