π REST API (Read Form Submissions)
What is the FormNX API?β
The FormNX REST API lets your own code, scripts or tools read the responses (submissions) of your forms. You can pull submissions into your own database, a reporting tool or an internal app, page by page, with filters for status, date, search text, stars and tags.
The API is read-only: it lists submissions. It can't create, edit or delete them, and it can't change your forms.
Using the API takes three steps:
- Create an API client in FormNX. You get a Client Id and a Secret Key.
- Get an access token by sending the client details with your FormNX email and password.
- Call the API with that token.
API access depends on your plan. If your plan doesn't include it, the Manage Clients card and page show "Your current plan does not include API Access" with an Upgrade button. For forms in a shared workspace, it's the workspace owner's plan that counts.
A webhook sends each new response to your URL the moment it's submitted. The API lets you fetch responses whenever you want, including older ones. Use a webhook for real-time actions and the API for syncing, reports and backfills.
Before you startβ
You need a FormNX password, because the access token is requested with your email and password.
Go to My profile β Edit profile, set a password and click Update first.
Step 1: Create an API clientβ
- Click your name or avatar in the top-right corner and choose My profile.
- Find the Manage Clients card and click the Manage Clients button. The page opens in a new tab.
- Click Add.
- Enter a Name for the client, for example Reporting script, and click Create.
- Copy the Client Id and the Secret Key now, using the copy button next to the secret. Keep them somewhere safe, like a password manager.
- Click Close.
FormNX keeps only a one-way hashed copy of the Secret Key, so it can never be shown again: it isn't in the clients list, and support can't look it up either. If you lose it, delete the client and create a new one.
Managing your clientsβ
The Manage Clients page lists your clients with their Client Id and creation date.
- Edit changes the client's name.
- Delete removes the client. Every access token created with it stops working right away, so any script or tool using it loses access. This can't be undone.
A client can only be used with the email and password of the person who created it. Teammates who need API access create their own client from their own profile.
Step 2: Get an access tokenβ
Send a POST request to https://formnx.com/oauth/token with these fields, as JSON or as form data:
| Field | Value |
|---|---|
grant_type | password |
client_id | your Client Id |
client_secret | your Secret Key |
username | your FormNX email address |
password | your FormNX password |
scope | leave it out, or send an empty value |
Example with cURL:
curl -X POST https://formnx.com/oauth/token \
-H "Content-Type: application/json" \
-d '{
"grant_type": "password",
"client_id": "15",
"client_secret": "your-secret-key",
"username": "[email protected]",
"password": "your-password",
"scope": ""
}'
FormNX replies with your token:
{
"token_type": "Bearer",
"expires_in": 31536000,
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...",
"refresh_token": "def50200a1b2c3..."
}
- Use the
access_tokenvalue in every API request (Step 3). - The token is valid for one year (
expires_inis in seconds). When it expires, or the API answers401 Unauthenticated, request a new token the same way. - Treat the token like a password: anyone who has it can read your submissions. Don't put it in website code that visitors can see.
If something is wrong, you get an error instead of a token:
| Response | Meaning |
|---|---|
400 invalid_grant | The email or password is wrong, or the client belongs to another FormNX account. |
401 invalid_client | The Client Id or Secret Key is wrong, or the client was deleted. |
429 Too Many Attempts | More than 5 attempts in a minute for the same email. Wait a minute and try again. |
Step 3: Read form submissionsβ
Find the form IDβ
Open the form in the builder. The form ID is the long code in your browser's address bar, between /forms/ and /edit:
https://formnx.com/forms/47838d4a-d3e5-4e0f-876e-57b482e76cea/edit
It's also in the address of the form's submissions page: https://formnx.com/form/<form ID>/submissions.
Call the submissions endpointβ
Send a GET request to https://formnx.com/api/form/<form ID>/submissions with your token in the Authorization header:
curl "https://formnx.com/api/form/47838d4a-d3e5-4e0f-876e-57b482e76cea/submissions?per_page=50&filters[status]=complete" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Accept: application/json"
You can read the submissions of forms in workspaces you own, and of workspaces you have joined as an Admin or Member (after accepting the invite).
Optionsβ
All options are optional. Add them to the address as query parameters.
| Parameter | What it does |
|---|---|
page | Page number. Default 1. |
per_page | Submissions per page, from 1 to 1000. Default 100. |
filters[status] | Only one status: complete (submitted), incomplete (saved as a draft or waiting for payment) or partial (auto-saved while the form was still being filled in). Default: all. |
filters[search] | Only submissions whose answers contain this text (not case-sensitive). |
filters[is_starred] | 1 returns only starred submissions. |
filters[tagSelected][] | Tag ID (each submission's tags list shows the IDs). Repeat it for several tags; a submission must have all of them. |
filters[date_range] | Submission dates, as YYYY-MM-DD - YYYY-MM-DD, for example 2026-01-01 - 2026-03-31. |
filters[sort_by_submitted_on] | desc (newest first, the default) or asc (oldest first). |
What you get backβ
The response has one page of submissions in data, plus page details such as current_page, last_page, per_page, total and next_page_url. To get everything, keep requesting next_page_url until it's null.
Each submission includes:
id,form_id,submission_refandvisitor_keydata: the answers, keyed by each field's Field name (for examplefield_1). You can see a field's name in the builder: open the field's settings and look in the Advanced section. Uploaded files, signatures and recordings come as full file links.status,is_starred,response_status(name and colour) andtags(ID and name)quiz_score,quiz_total_points,time_taken(seconds) andutm_paramscreated_atandupdated_at
The respondent's IP address, browser details, payment details and private edit link are not included.
Errorsβ
| Response | Meaning |
|---|---|
401 Unauthenticated | The token is missing, wrong, expired or revoked. Get a new one (Step 2). |
403 | You don't have access to this form, or the workspace owner's plan doesn't include API access. |
404 | There's no form with this ID. |
422 | An option has a wrong value, for example a badly formatted date_range. The message says which one. |
429 Too Many Attempts | More than 60 requests in a minute. Wait a minute and try again. |
Where to find the full API documentationβ
The complete API reference has every parameter, example requests in cURL, JavaScript, PHP and Python, and example responses.
- In FormNX: go to My profile, find the Manage Clients card and click View API Documentation.
- Or open it directly: formnx.com/docs
From the documentation page you can also download a Postman collection and an OpenAPI file, so you can try the API in Postman or import it into other tools.
FAQβ
I lost my Secret Key. Can I see it again? No. FormNX keeps only a hashed copy, so the key is shown only when the client is created. Delete the client and create a new one, then update your script with the new Client Id and Secret Key.
How do I stop a script or tool from reading my data? Delete the client it uses on the Manage Clients page. All of that client's tokens stop working immediately.
Can my teammates use my client? No. A client only works with the account that created it. Each teammate creates their own client and uses their own email and password.
Can I add, edit or delete submissions through the API? Not at the moment. The API reads submissions only. To send new responses to another app as they arrive, use a webhook.
Why do I get a 403 error for a form I can see in FormNX? Either the workspace owner's plan doesn't include API access, or your invitation to that workspace hasn't been accepted yet.