Insights
The insights endpoints return what a form’s Insights tab shows. See Understand your form insights for what each number means. Bots and your own visits never count.
Endpoint | What it returns | Needs Creator |
|---|---|---|
GET /forms/{id}/insights | Views, visitors, starts, responses and completion for the period and the one before, with a series by day or month. | No |
GET /forms/{id}/insights/sources | Views and responses by referring site, campaign, browser, operating system, device, country, region, city and language. | visitorDetails |
GET /forms/{id}/insights/drop-off | How many people reached each page of the live form, answered each question and stopped there. | dropOff |
GET /forms/{id}/insights/journeys | Each person’s journey through the form, newest first. | journeys |
GET /forms/{id}/insights/journeys/{journeyId} | One journey, step by step, with the answers given. | journeys |
On Free, an endpoint that needs Creator is refused with plan_required and the feature in feature. Drop-off and journeys serve forms, polls and quizzes. For a board, the overview gives votes, posts, participationRate and topPosts in place of starts, responses and completion, which are null.
Choose the period
Send a named range: today, yesterday, 7d, 30d, 90d, this-month, last-month, this-year or all. With neither range nor dates, the period is 7d. For your own dates, send from and to as YYYY-MM-DD instead, with to no later than today. Days are counted in timeZone, an IANA time zone like Australia/Sydney, or UTC when you leave it out. The series is by day, or by month for periods over 90 days.
On Creator, narrow any of these with referrer, campaign, browser, os, device, country, region, city or language. Each row of the sources breakdown has a value to send as that filter. On Free, the filters are ignored, as in the app.
completionRate is responses per start, from 0 to 1, and null before the first start. previous is the same length of time just before, and null for all time.
Journeys
GET /forms/{id}/insights/journeys lists journeys begun in the period that were sent or that stopped. People still answering appear once they send or go quiet. Only the newest 1,000 in the period are read. Filter with search, which looks in answers, source and campaign, and stoppedOnPage, a page number from 1. A journey in the list shows a name or email found in its answers, never the answers themselves. Get one journey for those.
Webhooks
A webhook sends each completed response to your endpoint as a JSON POST: the form.response.completed event. Webhooks serve forms, polls and quizzes. Connect and test a webhook explains the event and how to check its signature.
A webhook’s URL, header values and signing secret work like passwords, so they can be set but never read back by any key. Every read shows the webhook’s host and nothing more of its URL. Google Sheets destinations aren’t in the API.
POST /forms/{id}/webhooks connects a webhook. The url must be HTTPS on a public host. Add up to 10 headers, like an Authorization token your endpoint expects. To sign deliveries, send your own signingSecret, or send generateSigningSecret: true and whatayarn makes one. A secret whatayarn makes is returned once, in that response. With neither, deliveries are unsigned. Send enabled: false to connect it paused.
PATCH /forms/{id}/webhooks/{webhookId} changes a webhook. Fields you leave out keep their saved value, and headers replaces every header. If you change the url without sending headers, the saved headers are removed, so they never reach a new endpoint. signingSecret: null sends deliveries unsigned, and generateSigningSecret: true replaces the secret with a new one, returned once. enabled: false pauses deliveries, and enabled: true resumes them, sending anything queued. Changes apply to deliveries sent from then on.
DELETE /forms/{id}/webhooks/{webhookId} removes a webhook with its delivery log. Deliveries still queued are never sent.
POST /forms/{id}/webhooks/{webhookId}/test queues the form’s questions with sample answers, marked test: true, and returns the new delivery so you can follow it. The webhook must be on. Tests share a limit of 20 every 10 minutes per account with Send test in the app.
Deliveries
GET /forms/{id}/webhooks/{webhookId}/deliveries lists each response or test sent, or waiting to be sent, newest first. Each delivery has its status, its attempts and your endpoint’s last answer in lastStatusCode and lastError. lastError gives the status or what went wrong reaching your endpoint, never the body your endpoint replied with.
Status | Means |
|---|---|
pending | Waiting to be sent, or to be retried. |
processing | Being sent now. |
delivered | Your endpoint answered with a 2xx status. |
failed | Gave up after its last retry. |
GET on one delivery adds event, the JSON body that was sent or will be. POST .../deliveries/{deliveryId}/resend puts a delivered or failed delivery back in the queue with its attempts reset, as Resend does in the app. It sends the same event body. A delivery still waiting is left as it is. See Check integration deliveries for the same log in the app.
Folders
GET /folders lists the account’s folders in the order the app shows them, with how many forms each holds, not counting archived ones. The default folder holds forms that aren’t in a folder. It’s listed with the ID unfiled and isDefault: true, and its forms read folderId: null. The Classic folder never appears. See Organise your forms.
POST /folders creates a folder. Custom folders need Creator (unlimitedFolders). Leave out icon for a random emoji, or send null for the plain folder icon.
PATCH /folders/{folderId} renames a folder, changes its icon or moves it, and only the fields you send change. position moves it to that place in the list, from 0. A position past the end moves it last. The default folder renames, takes an icon and moves like any other.
DELETE /folders/{folderId} deletes a folder without deleting any form: each form in it moves to the default folder and keeps its pin. The default folder can’t be deleted.
To move a form into a folder, send folderId to PATCH /forms/{id}, with null or unfiled for the default folder.