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); null when it was sent from a server, without Origin or Referer header.

  • 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), and file, null or the file of a file field: id, name, size (in bytes) and mimeType. 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; null without 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

    null for a received submission. See Not finished submissions.

  • Name
    sentEmails
    Type
    array
    Description

    The emails sent for the submission: emailType (submissionNotification to the workspace, respondentNotification to the visitor), to and sentAt.

  • Name
    spam
    Type
    object | null
    Description

    The spam check: status, score (from 0 to 4, higher is more likely spam; null when not checked) and checkedAt. The status is safe, spam, notVerified (the check failed: delivered anyway) or notChecked (the spam detection of the form was off). null for 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.


GET /v1/forms/:formId/submissions

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 nextCursor of the current page: reads the next page.

  • Name
    before
    Type
    string
    Description

    The previousCursor of 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

    asc or desc (the default).

  • Name
    spamStatus
    Type
    enumeration filter
    Description

    Filters on the spam status: safe, spam, notVerified or notChecked, with the eq, ne, in and nin operators. spamStatus=spam lists the spam, spamStatus[in]=safe,notVerified the safe submissions and those whose check failed.

GET
/v1/forms/:formId/submissions
curl -G https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f/submissions \
  -H "Authorization: Bearer $BACKMYFORM_API_KEY" \
  -d pageSize=10

Request

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
}

GET /v1/forms/:formId/submissions/:id

Retrieve a submission

Returns a submission of the form. Reading it doesn't mark it as read.

GET
/v1/forms/:formId/submissions/:id
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
}

PUT /v1/forms/:formId/submissions/:id/read

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.

PUT
/v1/forms/:formId/submissions/:id/read
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
}

PUT /v1/forms/:formId/submissions/:id/unread

Mark a submission as unread

Marks the submission as unread for the user of the key, and returns it.

PUT
/v1/forms/:formId/submissions/:id/unread
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
}

PUT /v1/forms/:formId/submissions/all-read

Mark all submissions as read

Marks every submission of the form as read for the user of the key.

PUT
/v1/forms/:formId/submissions/all-read
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

{}

GET /v1/forms/:formId/submissions/:id/files/:fileId

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.

GET
/v1/forms/:formId/submissions/:id/files/:fileId
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.pdf

Request


DELETE /v1/forms/:formId/submissions/:id

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.

DELETE
/v1/forms/:formId/submissions/:id
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

{}