Skip to main content

Submissions API and CSV export

Create an API key​

Pro and Agency workspace owners can create keys under the Workspace’s API keys settings. To create a key from a signed-in session, send a POST request to /api/workspace/api-keys with a name, an optional formId, and optional scopes. Copy the token when it is created and store it with your server secrets.

Choose forms:read to discover form IDs and submissions:read to retrieve records. Add submissions:write when the server needs to create entries and trigger the form’s delivery. Limit a key to one form when possible. Each workspace can issue keys up to a limit of 10 active keys. Revoke a key in API keys or with DELETE /api/workspace/api-keys/{keyId}. Revocation takes effect immediately and appears under Revoked keys.

{
"name": "Weekly inbox report",
"formId": "YOUR_FORM_ID",
"scopes": ["submissions:read"]
}

Call the read API​

Send the read token as a Bearer credential with requests from your server. Form responses include metadata and omit the form access key, recipient address, and private settings.

Use either /api/v1 or /v1 as the base path. Both paths share API keys and form permissions. Failures under /v1 return an error object with code and message fields, such as unauthorized or rate_limit_exceeded.

Reads under /v1 allow 1,000 requests per key each UTC hour. Authenticated reads and writes at that path share a service-wide limit of 20 requests per second, with bursts of up to 50. Requests under /api/v1 allow 120 per key each minute. Writes on both paths also use the form's submission limits. If a response includes Retry-After, wait for that many seconds before retrying.

curl 'https://api.bitebrake.com/api/v1/submissions?form_id=YOUR_FORM_ID&limit=25' \
-H "Authorization: Bearer $FORMS4WEB_READ_TOKEN"

Endpoints and query options​

Use GET /api/v1/submissions with form_id to list retained inbox submissions from newest to oldest. Choose a limit from 1 to 100. The default is 50. Each response has data, has_more, and next_cursor. Pass next_cursor as cursor with the same key, form, and date filters. A final page has has_more set to false and next_cursor set to null.

The list accepts inclusive RFC 3339 timestamps in from and to. Read one entry at GET /api/v1/submissions/{submissionId}. Its data object includes id, form_id, submitted_at, fields, and attachment metadata. When supplied by the submitting server, ip_address, user_agent, and site_url also appear on the submission. The nested form-submission routes return these values in a metadata object.

Use GET /api/v1/forms to discover form IDs. Each item in data has form_id, form_name, created_at, and total_count for retained inbox entries. The response also includes forms with camelCase metadata. The form and nested form-submission lists support pagination with limit and offset. The nested submission list accepts the same date filters.

GET pathRequired scope
/api/v1/formsforms:read
/api/v1/forms/{formId}forms:read
/api/v1/submissions?form_id={formId}submissions:read
/api/v1/submissions/{submissionId}submissions:read
/api/v1/submissions/{submissionId}/attachments/{fileId}submissions:read
/api/v1/forms/{formId}/submissionssubmissions:read
/api/v1/forms/{formId}/submissions/{submissionId}submissions:read

Download files from your server​

Each attachment in the submission list or detail response includes downloadUrl. Resolve it against your Forms4Web origin and send your Bearer token with the submissions:read scope. The response contains the file bytes and a download filename in Content-Disposition. Downloads follow the key’s workspace and form access and are available while the submission is retained in the inbox.

curl --fail 'https://api.bitebrake.com/api/v1/submissions/SUBMISSION_ID/attachments/FILE_ID' \
-H "Authorization: Bearer $FORMS4WEB_READ_TOKEN" \
--output attachment.bin

Create submissions from your server​

Send JSON to POST /api/v1/submissions with a Bearer key that has submissions:write. Set form_id to a form the key can access and place the submitted values in fields. A 201 response includes submissionId and a data object with id, form_id, and submitted_at. Resolve the Location response header against your Forms4Web origin to read the stored record with a key that has submissions:read. A retained submission returns the original timestamp and location when retried with the same idempotency key and content.

Set subject, from_name, preheader, or replyto at the top level to customize this notification’s subject, sender display name, inbox preview, or Reply-To address. The service still sends from its verified address. Use cc and bcc to add one address in each field alongside the configured recipients. Each copy must be a verified workspace address or member, and the plan’s recipient limit applies. Delivery checks those recipients again before sending.

These options apply only to this notification. Form fields, saved settings, autoresponses, and other integration deliveries follow the original request and form configuration. For a retry with Idempotency-Key, send the same fields, notification options, and visitor metadata.

For a regular write key, include the originating address in metadata.site_url when the form restricts allowed domains. If the form requires CAPTCHA, send the visitor’s provider challenge token in captcha_token. All write keys are subject to rate limits, the workspace’s submission quota, and the form’s spam rules. A flagged request can return 202 with a null submissionId.

To record the visitor’s source, include any of metadata.ip, metadata.user_agent, and metadata.site_url. Supply an IPv4 or IPv6 address, up to 512 characters of user-agent text, and an HTTP or HTTPS URL of up to 2,000 characters. Forms4Web rejects URLs with credentials and removes any query and fragment before storage. The source is retained with the submission and appears in its details, read API responses, and workspace submission emails sent to verified recipients. Send an IP address or user agent explicitly to record it.

For attachments, include an attachments array with filename, standard padded base64 content, and optional content_type for each file. The API accepts up to 10 files and 5 MB of decoded attachment data per request. Workspace and service storage quotas apply. Submission notification emails include a link for each stored file. Follow the link to open the file in File Manager, then sign in or open the form’s workspace if prompted. The download is available while the file is retained.

curl 'https://api.bitebrake.com/api/v1/submissions' \
-H "Authorization: Bearer $FORMS4WEB_WRITE_TOKEN" \
-H 'Content-Type: application/json' \
--data '{"form_id":"YOUR_FORM_ID","fields":{"message":"A new enquiry"},"subject":"Enquiry from our server","metadata":{"ip":"203.0.113.42","site_url":"https://example.com/contact"}}'

Connect a server that submits directly​

For a system that sends entries directly from a private server, select one form when creating the key. Enable Create submissions and Server-only submissions. An API request to create the key uses that form’s ID and the scopes submissions:write and submissions:server.

Requests using this key skip browser CAPTCHA and allowed-site checks for the selected form. For requests arriving at your server from visitors, verify those requests before sending them to Forms4Web. Store this key only on your server or in your secret manager. Use the public submission endpoint and access key for forms that submit from a browser.

Read from a signed-in session​

The dashboard uses a workspace session. GET /api/forms/{formId}/submissions lists stored records within the plan’s history window, newest first. Use sort=oldest for the reverse order, days to limit the time window, and delivery to filter by delivery status. The default limit is 50 and offset is 0. Set limit to an integer from 1 through 200, and offset to the number of records to skip. The JSON result provides submissions, total, folderTotal, limit, and offset.

const path = `/api/forms/${encodeURIComponent(formId)}/submissions?limit=50&offset=0`;
const response = await fetch(path, { credentials: 'same-origin' });
if (!response.ok) throw new Error('Could not load the inbox');
const { submissions, total } = await response.json();

Search a submission folder​

Choose a column heading to sort the current page. Choose it again to reverse the order. Use Clear page sort to return to the folder’s date order.

Resize a column by dragging its right edge or focusing the resize handle and using the Left and Right Arrow keys. Use Columns → Reset columns to restore the default layout.

Choose Find in table or press Cmd+F or Ctrl+F while the table has focus to highlight matching cells on the current page. Use Enter to move forward, Shift+Enter to move back, and Escape to close find.

Use Search submissions to find matching field values across every page of the selected Inbox or Spam folder. Choose a field under Search in to limit results to that field. From a signed-in session, send POST /api/forms/{formId}/submissions/search with q and optional field, folder, sort, days, delivery, limit, and offset in the JSON body. Pass the exact field name when specifying field. Search ignores letter case, applies the folder’s history window, and returns a total for the matching submissions.

Read one entry or download an attachment​

With a signed-in session, GET /api/forms/{formId}/submissions/{submissionId} returns an entry within its folder’s history window. Attachment entries give a file ID, name, content type, and size. Download a file at /api/forms/{formId}/submissions/{submissionId}/attachments/{fileId} using the same session.

CSV export​

Select Export in Inbox or Spam to pick columns, or Download full CSV to include identifiers, timestamps, delivery states, and the original fields as JSON. Both downloads cover the selected folder’s history window, including entries outside the current table filters. For a full export through a signed-in session, open /api/forms/{formId}/submissions.csv and use folder=spam for the spam folder.