Pagination
The lists of the API are returned page by page. The forms are read with page numbers; the submissions, which grow all the time, are read with cursors.
| List | Pagination | Page size |
|---|---|---|
GET /v1/forms | Page numbers | 50 |
GET /v1/forms/:formId/submissions | Cursors | 50, or pageSize from 1 to 50 |
GET /v1/forms/:formId/not-finished-submissions | Cursors | 50, or pageSize from 1 to 50 |
The other lists (the fields of a form, the members, the webhooks) are short and returned whole, as an array.
Page numbers
Send the number of the page in the page query parameter, from 1 (the default). The response has the items of the page and where the page is in the list:
- Name
items- Type
- array
- Description
The items of the page.
- Name
page- Type
- integer
- Description
The number of the page, from 1.
- Name
pageSize- Type
- integer
- Description
The maximum number of items in a page.
- Name
totalPages- Type
- integer
- Description
The number of pages of the list.
- Name
totalItems- Type
- integer
- Description
The number of items of the list, on all the pages.
- Name
hasNextPage- Type
- boolean
- Description
There is a page after this one.
- Name
hasPreviousPage- Type
- boolean
- Description
There is a page before this one.
curl "https://api.backmyform.com/v1/forms?page=2" \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{
"items": [{ "id": "1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f", "name": "Newsletter" }],
"pageSize": 50,
"page": 2,
"totalPages": 2,
"totalItems": 51,
"hasNextPage": false,
"hasPreviousPage": true
}Cursors
A list read with cursors has no page numbers: a page is read after or before an item of the list, so that the items received meanwhile don't shift the pages. Without a cursor, the first page is returned. The response gives the cursors of the next and the previous pages:
- Name
items- Type
- array
- Description
The items of the page.
- Name
pageSize- Type
- integer
- Description
The maximum number of items in a page.
- Name
totalItems- Type
- integer
- Description
The number of items of the list, on all the pages.
- Name
offset- Type
- integer
- Description
The number of items before this page: the page shows the items
offset + 1tooffset + items.lengthoftotalItems.
- Name
hasNextPage- Type
- boolean
- Description
There is a page after this one.
- Name
hasPreviousPage- Type
- boolean
- Description
There is a page before this one.
- Name
nextCursor- Type
- string | null
- Description
The id of the last item of the page: send it as
afterto read the next page.nullon the last page.
- Name
previousCursor- Type
- string | null
- Description
The id of the first item of the page: send it as
beforeto read the previous page.nullon the first page.
The query parameters of a list read with cursors:
- Name
after- Type
- string
- Description
The
nextCursorof the current page: reads the page after it.
- Name
before- Type
- string
- Description
The
previousCursorof the current page: reads the page before it. A request can't send bothafterandbefore.
- Name
pageSize- Type
- integer
- Description
The number of items in a page, from 1 to 50 (50 by default): the submissions and the not finished submissions only.
Keep the same sort and the same filters while you read the pages of a list: a cursor gives a position in the list as it is sorted and filtered. A cursor stays valid when its item is deleted afterwards.
curl "https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f/submissions?after=1f0b2c4f-3c4d-6e5f-9a0b-1c2d3e4f5a6b" \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{
"items": [
{ "id": "1f0b2c4f-2b3c-6d4e-8f9a-0b1c2d3e4f5a", "createdAt": "2026-11-19T09:12:44.000Z" }
],
"pageSize": 50,
"totalItems": 51,
"offset": 50,
"hasNextPage": false,
"hasPreviousPage": true,
"nextCursor": null,
"previousCursor": "1f0b2c4f-2b3c-6d4e-8f9a-0b1c2d3e4f5a"
}Reading a whole list
To read every item of a list, follow nextCursor until it is null. Mind the rate limits: each page is a request.
async function fetchAllSubmissions(formId) {
const submissions = [];
let cursor = null;
do {
const url = new URL(`https://api.backmyform.com/v1/forms/${formId}/submissions`);
if (cursor) {
url.searchParams.set('after', cursor);
}
const response = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.BACKMYFORM_API_KEY}` }
});
const page = await response.json();
submissions.push(...page.items);
cursor = page.nextCursor;
} while (cursor);
return submissions;
}