Skip to content

JSON, with an API key

Read responses with the REST API

Fetch your forms and responses as JSON from your own code: reports, backups, or syncing to a database. Responses use the same shape as webhooks.

Get an API key

In Formsoft, open Settings → API keys, name the key after what will use it, and click Create key. Copy it straight away: we only keep a fingerprint of it, so it can't be shown again. Owners and admins can make up to 10 keys per workspace and revoke any of them.

Authentication

Send the key in the Authorization header on every request. Keys start with fsk_. Keep them on your server, never in a web page or app.

curl https://www.formsoft.app/api/v1/forms \
  -H "Authorization: Bearer fsk_your_key"

List forms

GET/api/v1/forms

Every form in the key's workspace, newest first: id, title, status (draft, live or closed), public url, createdAt and updatedAt.

Get a form

GET/api/v1/forms/{formId}

The form plus its questions in order (id, title, type, required). Statements and other non-questions are left out.

List responses

GET/api/v1/forms/{formId}/responses

Newest first. Each page has data and nextCursor. Pass nextCursor back to get the next page; it's null on the last one.

limit
How many per page, 1 to 100. Default 25.
cursor
nextCursor from the previous page.
since
Only responses submitted at or after this time (ISO 8601), e.g. 2026-10-01T00:00:00Z.
approval
Forms with approvals: only responses that are pending, approved or rejected.
{
  "data": [
    {
      "id": "3c8f1d2a-…",
      "submittedAt": "2026-10-09T01:23:44.118Z",
      "respondentEmail": "sam@example.com",
      "answers": [
        { "questionId": "9b1e…", "title": "Your name", "type": "short_text", "value": "Sam", "text": "Sam" },
        { "questionId": "a77c…", "title": "Put these in order", "type": "ranking",
          "value": ["Speed", "Price"], "text": "1. Speed, 2. Price" }
      ],
      "fields": { "Your name": "Sam", "Put these in order": "1. Speed, 2. Price" }
    }
  ],
  "nextCursor": "MjAyNi0xMC0wOSAwOToyMzo0NC4xMTg…"
}

value is the answer as stored; text is the same answer as one readable line. A few types store structured values:

checkboxes, ranking
An array of option labels (ranking is in order, first is top).
matrix
An object of row label to the chosen column, e.g. {"Speed": "Good"}.
booking
{"start": "2026-10-12T01:00:00.000Z"} with the appointment's start time in UTC. The text form shows it in the form's timezone.
signature
{"d": "M…"} for a drawn signature (SVG path data, 600×200 box) or {"name": "Sam Lee"} when typed.
contact_info
{"firstName": "Sam", "lastName": "Lee", "email": "sam@example.com", "phone": "+61 400 000 000", "company": "Rose & Co", "jobTitle": "Practice manager"} (only the parts asked and filled in). Boxes the form's owner added have fixed keys like "x4k9q2m" that never change when the box is renamed. The text form is one line, with those boxes labelled.
address
{"line1": "1 Rose St", "city": "Perth", "region": "WA", "postcode": "6000", "country": "Australia"} (line2 for a unit or building; empty parts left out). The text form is one line.
file_upload
Storage paths, plus files with download links that work for an hour.

On forms with approvals, each response has an approval object: status (pending, approved or rejected), decidedAt and note. Use ?approval=approved to fetch only the approved ones.

Responses filled in a translated version of the form have language set (e.g. "es"). Answers are always in the form's own language.

Get one response

GET/api/v1/forms/{formId}/responses/{responseId}

One response in the same shape, as data. Handy after a webhook arrives, or to refresh a file link.

Errors and limits

Errors come back as JSON: { "error": { "code", "message" } }.

400 bad_request
A parameter isn't valid. The message says which.
401 unauthorized
Missing, wrong or revoked key.
404 not_found
No such form or response in this workspace.
429 rate_limited
More than 120 requests a minute with one key. Wait for Retry-After seconds.

Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds).

Examples

Node.js (18+)

// Every response since the start of the month, a page at a time.
const KEY = process.env.FORMSOFT_API_KEY;
const form = "YOUR_FORM_ID";
let cursor = null;
const all = [];
do {
  const url = new URL(`https://www.formsoft.app/api/v1/forms/${form}/responses`);
  url.searchParams.set("limit", "100");
  url.searchParams.set("since", "2026-10-01T00:00:00Z");
  if (cursor) url.searchParams.set("cursor", cursor);
  const res = await fetch(url, { headers: { Authorization: `Bearer ${KEY}` } });
  if (!res.ok) throw new Error((await res.json()).error.message);
  const page = await res.json();
  all.push(...page.data);
  cursor = page.nextCursor;
} while (cursor);
console.log(all.length, "responses");

Python

import os, requests

KEY = os.environ["FORMSOFT_API_KEY"]
url = "https://www.formsoft.app/api/v1/forms/YOUR_FORM_ID/responses"
params = {"limit": 100}
rows = []
while True:
    r = requests.get(url, params=params, headers={"Authorization": f"Bearer {KEY}"})
    r.raise_for_status()
    page = r.json()
    rows += page["data"]
    if not page["nextCursor"]:
        break
    params["cursor"] = page["nextCursor"]
print(len(rows), "responses")

Questions, answered

Can the API change or delete anything?

No. Version 1 is read-only: forms, questions and responses. Changes happen in the Formsoft dashboard.

Who can create API keys?

Workspace owners and admins, in Settings → API keys. A key works for every form in that workspace, so treat it like a password and keep it on your server.

Should I use the API or webhooks?

Use webhooks to react to each new response as it arrives. Use the API to fetch responses on your own schedule, backfill old ones, or check you haven't missed any.

How long do file links last?

File answers include signed download links that work for one hour. Fetch the response again for a fresh link.

What happens when I revoke a key?

Requests with it fail straight away with 401. Other keys keep working.

Build on your forms.

Start free, make a form, then create a key in Settings.