API Reference

Falnive API

Build form workflows, load public form settings, save partial responses, submit completed answers, record analytics events, and check Falnive service health through HTTP endpoints.

Introduction

Falnive's current API supports the form experience: loading public form settings, saving partial answers, submitting completed responses, recording form analytics, and checking service health.

This reference documents the routes currently available in the project. They are not a separate versioned developer platform. A route may require a valid form identifier, a published form, or an authenticated Falnive session.

All examples use https://www.falnive.com as the base URL.

Quickstart

The simplest integration is to publish a form and use the share link or embed code generated in the Share page. A custom client can send JSON requests to the form routes below.

curl -X POST https://www.falnive.com/api/forms/FORM_ID/submit   -H "Content-Type: application/json"   -d '{"answers": [{"position": 0, "value": "Ada"}]}'

Replace FORM_ID with the identifier expected by the form flow. Public identifiers and internal form identifiers are not interchangeable in every context.

Authentication and access

Public form routes do not use an API key. Access is controlled by the form identifier, publication state, form settings, and server-side validation. Management pages and private response data require a signed-in session with Workspace or Organization access.

Do not expose service-role credentials, database credentials, OAuth secrets, or private session tokens in browser code. The Google Sheets callback is an internal OAuth flow, not a general-purpose public API.

Limits and responsible use

The current form routes do not publish a separate public rate-limit schedule. Use reasonable request rates, avoid retry loops, and send only the fields required by each endpoint. Falnive may limit abusive, malformed, or unusually high-volume traffic to protect the Services.

Product plan limits may apply to forms, questions, file storage, Workspaces, members, custom domains, and other features. The API does not bypass those limits.

Errors

Successful requests return JSON. Invalid requests generally return 400; server-side failures generally return 500. Responses may contain an error string or an ok: false value.

{
  "error": "Invalid request"
}

Clients should check the HTTP status, validate identifiers and arrays before sending them, and avoid blindly retrying a request that may already have created a submission.

Forms

Read public settings

GET/api/forms/{formId}/settings?kind=gate

Returns access settings used by the public form renderer, including whether the form is closed immediately, closed by date, or closed by a submission limit.

GET/api/forms/{formId}/settings?kind=lang

Returns the form's default language and custom system messages. The kind parameter must be gate or lang.

Submit a response

POST/api/forms/{formId}/submit

Creates a completed submission. The server validates the form, stores answers, and accepts optional hidden-field values.

curl -X POST "https://www.falnive.com/api/forms/FORM_ID/submit"   -H "Content-Type: application/json"   -d '{"answers":[{"position":0,"value":"Ada Lovelace"}],"hiddenFields":{"utm_source":"newsletter"}}'

answers must be an array of answer objects. hiddenFields is optional and is populated by URL-driven form flows.

Save a partial response

POST/api/forms/{formId}/submit-partial

Saves the current progress of a respondent who has not submitted the form. The request requires a stable clientToken and an answers array.

curl -X POST "https://www.falnive.com/api/forms/FORM_ID/submit-partial"   -H "Content-Type: application/json"   -d '{"clientToken":"fill-session-token","answers":[{"position":0,"value":"Draft answer"}]}'

Returns { "ok": true } when the partial response is saved.

Clear a partial response

DELETE/api/forms/{formId}/submit-partial

Clears the saved partial response associated with a client token.

curl -X DELETE "https://www.falnive.com/api/forms/FORM_ID/submit-partial"   -H "Content-Type: application/json"   -d '{"clientToken":"fill-session-token"}'

Form analytics

POST/api/forms/{formId}/analytics

Records a public form event for the analytics dashboard. Supported event types are view, start, and submit. The server also derives a broad device category from the request user agent.

curl -X POST "https://www.falnive.com/api/forms/FORM_ID/analytics"   -H "Content-Type: application/json"   -d '{"eventType":"view","sessionId":"browser-session-id"}'

sessionId is optional. Invalid event types return 400.

Health check

GET/api/health

Returns a lightweight health response for monitoring and the Status page. It performs no database or external-service operation.

curl https://www.falnive.com/api/health
{"status":"ok"}

The response is configured not to use cache.

Internal application routes

The project also contains routes used by the dashboard and OAuth flows. They are not general public APIs because they depend on an authenticated browser session or internal application state.

  • POST /api/dashboard/form-stats — dashboard summary data for allowed forms.
  • GET /api/integrations/google-sheets/callback — OAuth callback used when connecting Google Sheets.

Use the Share page, Google Sheets integration flow, CSV export, or contact the team for supported workflows.

Changelog

2026-10-27. Form API documentation updated

  • Replaced outdated video and social-publishing documentation with the current form API.
  • Documented public settings, completed submissions, partial responses, analytics events, and health checks.
  • Separated internal dashboard and OAuth routes from public API documentation.

Questions, bugs, integration requests, or feature requests: contact us.