Docs/Forms/Reference/API reference

API reference

Every endpoint at a glance, plus the live interactive OpenAPI docs.

View as Markdown

The complete, always-current contract (request bodies, response shapes, every field) lives in the interactive OpenAPI docs served by the API itself:

  • Interactive docs: https://api.lanes.sh/docs
  • OpenAPI schema: https://api.lanes.sh/openapi.json

This page is the map. The base URLs:

SurfaceURL
API (production)https://api.lanes.sh
Frontend (claim, dashboard)https://lanes.sh
API (local)http://localhost:8000

Public endpoints

No signup. Safe to call from an agent or curl.

MethodPathPurpose
POST/v1/formsProvision a form. Anonymous, or lfk_ key for born-claimed.
POST/v1/f/{form_id}Submit to a form.
OPTIONS/v1/f/{form_id}Per-form CORS preflight.

Form management

Claimed forms only. Authorize with a workspace API key or a signed-in owner.

MethodPathPurpose
GET/v1/forms/{form_id}Form config, counters, unverified recipients.
PATCH/v1/forms/{form_id}Update name, origins, schema, submission_auth, recipients, workflow.
POST/v1/forms/{form_id}/recipients/resend-verificationResend a recipient confirmation email.

Claim and verification

MethodPathPurpose
GET/v1/claim/{token}Redirects to the frontend claim page.
GET/v1/claim/{token}/previewPublic, non-consuming status of a claim link.
POST/v1/claim/{token}Redeem the claim (signed in).
GET/v1/verify-email/{token}Confirm a forwarding recipient.

Dashboard

Authorized by your signed-in session, not by API keys.

MethodPathPurpose
GET/v1/meCurrent user.
GET/v1/workspacesYour workspaces.
GET/v1/workspaces/{id}/formsForms in a workspace.
POST/v1/workspaces/{id}/formsCreate a form (born claimed).
GET/v1/forms/{id}/submissionsPaginated submissions. ?format=csv exports.
DELETE/v1/forms/{id}Soft-delete a form.
POST GET DELETE/v1/workspaces/{id}/api-keysManage API keys (owner only).

Health and pages

MethodPathPurpose
GET/healthLiveness check.
GET/thanks/{form_id}Hosted thank-you page for browser posts.

Every error uses the shared envelope documented in Errors.