Submissions
A submission is what a visitor sent with a form: the values of its fields, and its files. The submissions are listed from the most recent one, and read with cursors.
The submission object
- Name
id- Type
- string
- Description
The id of the submission.
- Name
origin- Type
- string | null
- Description
The website the submission was sent from (
https://www.example.com);nullwhen it was sent from a server, withoutOriginorRefererheader.
- Name
data- Type
- array
- Description
The values, in the order they were sent:
fieldId(the name of the field),value(always a string; the name of the file for a file), andfile,nullor the file of a file field:id,name,size(in bytes) andmimeType. A field sent several times, like checkboxes, has one item per value.
- Name
startedAt- Type
- date | null
- Description
When the visitor started to fill the form, with the forms.js script;
nullwithout the script.
- Name
createdAt- Type
- date
- Description
When the submission was received.
- Name
updatedAt- Type
- date
- Description
When the submission was last updated.
- Name
abandonedAt- Type
- date | null
- Description
nullfor a received submission. See Not finished submissions.
- Name
sentEmails- Type
- array
- Description
The emails sent for the submission:
emailType(submissionNotificationto the workspace,respondentNotificationto the visitor),toandsentAt.
- Name
spam- Type
- object | null
- Description
The spam check:
status,score(from 0 to 4, higher is more likely spam;nullwhen not checked) andcheckedAt. The status issafe,spam,notVerified(the check failed: delivered anyway) ornotChecked(the spam detection of the form was off).nullfor the submissions received before the spam check existed.
- Name
read- Type
- boolean
- Description
The user of the key has read the submission. Each user has their own read state.
List all submissions
Returns the submissions of the form, the most recent first, read with cursors. The submissions detected as spam are left out, unless you filter on spamStatus.
Optional parameters
- Name
after- Type
- string
- Description
The
nextCursorof the current page: reads the next page.
- Name
before- Type
- string
- Description
The
previousCursorof the current page: reads the previous page.
- Name
pageSize- Type
- integer
- Description
The number of submissions in a page, from 1 to 50 (50 by default).
- Name
sort- Type
- string
- Description
createdAt, the date the submission was received (the default).
- Name
direction- Type
- string
- Description
ascordesc(the default).
- Name
spamStatus- Type
- enumeration filter
- Description
Filters on the spam status:
safe,spam,notVerifiedornotChecked, with theeq,ne,inandninoperators.spamStatus=spamlists the spam,spamStatus[in]=safe,notVerifiedthe safe submissions and those whose check failed.
curl -G https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f/submissions \
-H "Authorization: Bearer $BACKMYFORM_API_KEY" \
-d pageSize=10Request
Response
{
"items": [
{
"id": "1f0b2c4f-3c4d-6e5f-9a0b-1c2d3e4f5a6b",
"origin": "https://www.example.com",
"data": [
{ "fieldId": "name", "value": "John Smith", "file": null },
{ "fieldId": "email", "value": "[email protected]", "file": null },
{
"fieldId": "resume",
"value": "resume.pdf",
"file": {
"id": "1f0b2c53-8b9c-6d0e-9f1a-3b4c5d6e7f8a",
"name": "resume.pdf",
"size": 184320,
"mimeType": "application/pdf"
}
}
],
"startedAt": "2026-11-20T14:29:47.000Z",
"createdAt": "2026-11-20T14:32:10.000Z",
"updatedAt": "2026-11-20T14:32:11.000Z",
"abandonedAt": null,
"sentEmails": [
{
"emailType": "submissionNotification",
"to": "[email protected]",
"sentAt": "2026-11-20T14:32:12.000Z"
}
],
"spam": { "status": "safe", "score": 0.4, "checkedAt": "2026-11-20T14:32:11.000Z" },
"read": false
}
],
"pageSize": 10,
"totalItems": 42,
"offset": 0,
"hasNextPage": true,
"hasPreviousPage": false,
"nextCursor": "1f0b2c4f-3c4d-6e5f-9a0b-1c2d3e4f5a6b",
"previousCursor": null
}Retrieve a submission
Returns a submission of the form. Reading it doesn't mark it as read.
curl https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f/submissions/1f0b2c4f-3c4d-6e5f-9a0b-1c2d3e4f5a6b \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{
"id": "1f0b2c4f-3c4d-6e5f-9a0b-1c2d3e4f5a6b",
"origin": "https://www.example.com",
"data": [
{ "fieldId": "name", "value": "John Smith", "file": null },
{ "fieldId": "email", "value": "[email protected]", "file": null }
],
"createdAt": "2026-11-20T14:32:10.000Z",
"read": false
}Mark a submission as read
Marks the submission as read for the user of the key, and returns it. The other members of the workspace keep their own read state.
curl -X PUT https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f/submissions/1f0b2c4f-3c4d-6e5f-9a0b-1c2d3e4f5a6b/read \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{
"id": "1f0b2c4f-3c4d-6e5f-9a0b-1c2d3e4f5a6b",
"read": true
}Mark a submission as unread
Marks the submission as unread for the user of the key, and returns it.
curl -X PUT https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f/submissions/1f0b2c4f-3c4d-6e5f-9a0b-1c2d3e4f5a6b/unread \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{
"id": "1f0b2c4f-3c4d-6e5f-9a0b-1c2d3e4f5a6b",
"read": false
}Mark all submissions as read
Marks every submission of the form as read for the user of the key.
curl -X PUT https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f/submissions/all-read \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{}Download a file
Returns the content of a file of the submission, with its type in Content-Type and its name in Content-Disposition. The fileId is the id of the file of a value.
Use the file names with care: they were chosen by the visitors. Don't use them as paths on your server as they are.
curl https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f/submissions/1f0b2c4f-3c4d-6e5f-9a0b-1c2d3e4f5a6b/files/1f0b2c53-8b9c-6d0e-9f1a-3b4c5d6e7f8a \
-H "Authorization: Bearer $BACKMYFORM_API_KEY" \
-o resume.pdfRequest
Delete a submission
Moves the submission to the trash: it is no longer returned by the API. It can be restored from the trash in the app for 30 days, then it is deleted for good, with its files.
curl -X DELETE https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f/submissions/1f0b2c4f-3c4d-6e5f-9a0b-1c2d3e4f5a6b \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{}