Forms
A form receives the submissions sent by your website to its endpoint, and holds its settings: the redirection after a submission, the files it accepts, the emails it sends.
The form object
- Name
id- Type
- string
- Description
The id of the form, used in the URLs of the API.
- Name
shortId- Type
- string
- Description
The short id of the form, in the URL of its endpoint:
https://submit.backmyform.com/f/{shortId}.
- Name
name- Type
- string
- Description
The name of the form.
- Name
enabled- Type
- boolean
- Description
The form accepts submissions. A disabled form refuses them, as if it didn't exist.
- Name
submissionsCount- Type
- integer
- Description
The number of submissions received, not counting the spam.
- Name
lastSubmissionAt- Type
- date | null
- Description
When the last submission was received;
nullbefore the first one.
- Name
redirectUrl- Type
- string | null
- Description
Where the visitors go after submitting the form;
nullfor the BackMyForm thank-you page.
- Name
showBranding- Type
- boolean
- Description
The BackMyForm branding is shown on the thank-you page and the badge of the form.
- Name
language- Type
- string
- Description
The language of the thank-you and error pages, as a language code:
en,fr,de...
- Name
partialSubmissionsEnabled- Type
- boolean
- Description
The values are saved while the visitors type, before they submit (with the forms.js script).
- Name
spamDetectionEnabled- Type
- boolean
- Description
The submissions are checked for spam before being delivered.
- Name
files- Type
- object
- Description
The files the form accepts:
enabled,maxSize(in MB per file;nullfor the limit of the plan),maxCount(per submission;nullfor no limit) andtypes(all, groups likeimage,video,audio,text,application, or extensions like.pdf).
- Name
notification- Type
- object
- Description
The email sent to the workspace for each submission:
enabled,to(the addresses; empty for the creator of the form),fromName,subject,body,replyTo(an address) andreplyToFieldId(an email field of the submission).nulltexts are the default ones.
- Name
respondentNotification- Type
- object
- Description
The email sent to the visitor who submitted the form:
enabled,toFieldId(the email field of the submission),fromName,subject,bodyandreplyTo.
- Name
createdAt- Type
- date
- Description
When the form was created.
- Name
updatedAt- Type
- date
- Description
When the form was last updated.
List all forms
Returns the forms of the workspace, 50 per page, sorted by name by default. With a key of one form, the list has that form only. See Pagination and the syntax of Sorting and filtering.
Optional parameters
- Name
page- Type
- integer
- Description
The number of the page, from 1.
- Name
sort- Type
- string
- Description
name(the default),createdAt,submissionsCountorlastSubmissionAt. OnlastSubmissionAt, the forms without any submission come first in ascending order, last in descending order.
- Name
direction- Type
- string
- Description
asc(the default) ordesc.
- Name
name- Type
- text filter
- Description
Filters on the name, with the
eq,ne,likeandnlikeoperators:name[like]=contact.
- Name
unread- Type
- string
- Description
true: only the forms with a submission the user of the key hasn't read.
curl -G https://api.backmyform.com/v1/forms \
-H "Authorization: Bearer $BACKMYFORM_API_KEY" \
-d sort=lastSubmissionAt \
-d direction=descRequest
Response
{
"items": [
{
"id": "1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f",
"shortId": "k3x9q2mf",
"name": "Contact",
"enabled": true,
"submissionsCount": 42,
"lastSubmissionAt": "2026-11-20T14:32:10.000Z",
"redirectUrl": null,
"showBranding": true,
"language": "en",
"partialSubmissionsEnabled": false,
"spamDetectionEnabled": true,
"files": { "enabled": false, "maxSize": null, "maxCount": null, "types": ["all"] },
"notification": {
"enabled": false,
"to": [],
"fromName": null,
"subject": null,
"body": null,
"replyTo": null,
"replyToFieldId": null
},
"respondentNotification": {
"enabled": false,
"toFieldId": null,
"fromName": null,
"subject": null,
"body": null,
"replyTo": null
},
"createdAt": "2026-10-02T08:15:00.000Z",
"updatedAt": "2026-11-20T14:32:10.000Z"
}
],
"pageSize": 50,
"page": 1,
"totalPages": 1,
"totalItems": 1,
"hasNextPage": false,
"hasPreviousPage": false
}Create a form
Creates a form and returns it. Its endpoint, https://submit.backmyform.com/f/{shortId}, accepts submissions right away. Needs a key of all the forms, and the admin or owner role.
Required parameters
- Name
name- Type
- string
- Required
- required
- Description
The name of the form, up to 100 characters.
Optional parameters
- Name
fileEnabled- Type
- boolean
- Description
The form accepts files.
falseby default.
- Name
templateId- Type
- string | null
- Description
The template of the app the form is created from, recorded for information: it doesn't add fields, the fields of a form are the ones your website sends.
curl https://api.backmyform.com/v1/forms \
-H "Authorization: Bearer $BACKMYFORM_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Job application", "fileEnabled": true }'Request
Response
{
"id": "1f0b2c51-5e6f-6a7b-9c8d-0e1f2a3b4c5d",
"shortId": "p7d2w8nc",
"name": "Job application",
"enabled": true,
"submissionsCount": 0,
"lastSubmissionAt": null,
"files": { "enabled": true, "maxSize": null, "maxCount": null, "types": ["all"] }
}Retrieve a form
Returns a form. A form in the trash, or out of reach of the key, is answered with a 404 status.
curl https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{
"id": "1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f",
"shortId": "k3x9q2mf",
"name": "Contact",
"enabled": true,
"submissionsCount": 42,
"lastSubmissionAt": "2026-11-20T14:32:10.000Z"
}Update a form
Updates the settings sent, and returns the form. The settings not sent keep their value; send null to go back to the default of a setting that accepts it. Needs the admin or owner role.
Some settings need a feature of the plan when they are turned on or customized: they are refused with a 402 status otherwise (see Errors). Turning them off is always possible.
Optional parameters
- Name
name- Type
- string
- Description
The name of the form, up to 100 characters.
- Name
enabled- Type
- boolean
- Description
The form accepts submissions.
- Name
redirectUrl- Type
- string | null
- Description
An
httporhttpsURL where the visitors go after submitting the form;nullfor the BackMyForm thank-you page.
- Name
showBranding- Type
- boolean
- Description
Shows the BackMyForm branding.
falseneeds theformHideBrandingfeature.
- Name
language- Type
- string
- Description
The language of the thank-you and error pages, as a language code.
- Name
partialSubmissionsEnabled- Type
- boolean
- Description
Saves the values while the visitors type.
trueneeds theformPartialSubmissionsfeature.
- Name
spamDetectionEnabled- Type
- boolean
- Description
Checks the submissions for spam.
- Name
fileEnabled- Type
- boolean
- Description
Accepts files.
- Name
fileMaxSize- Type
- integer | null
- Description
The size limit of a file, in MB, up to the limit of the plan;
nullfor the limit of the plan.
- Name
fileMaxCount- Type
- integer | null
- Description
The maximum number of files in a submission, from 1 to 1,000;
nullfor no limit.
- Name
fileTypes- Type
- string[]
- Description
The types of files accepted:
all, groups (image,video,audio,text,application) or extensions (.pdf).
- Name
notificationEnabled- Type
- boolean
- Description
Sends an email to the workspace for each submission.
- Name
notificationTo- Type
- string[]
- Description
Up to 5 addresses receiving the email; empty for the creator of the form.
- Name
notificationFromName- Type
- string | null
- Description
The name of the sender of the email.
- Name
notificationSubject- Type
- string | null
- Description
The subject of the email, on one line. Can contain
@formName.
- Name
notificationBody- Type
- string | null
- Description
The text of the email. Can contain
@formName,@values(the values of the submission) and@submissionUrl(its link in the app).
- Name
notificationReplyTo- Type
- string | null
- Description
An address the replies go to. Can't be set with
notificationReplyToFieldId.
- Name
notificationReplyToFieldId- Type
- string | null
- Description
An email field of the form whose value the replies go to.
- Name
respondentNotificationEnabled- Type
- boolean
- Description
Sends an email to the visitor who submitted the form. Needs
respondentNotificationToFieldId.
- Name
respondentNotificationToFieldId- Type
- string | null
- Description
The email field of the form whose value receives the email.
- Name
respondentNotificationFromName- Type
- string | null
- Description
The name of the sender of the email.
- Name
respondentNotificationSubject- Type
- string | null
- Description
The subject of the email. Can contain
@formName.
- Name
respondentNotificationBody- Type
- string | null
- Description
The text of the email. Can contain
@formName.
- Name
respondentNotificationReplyTo- Type
- string | null
- Description
An address the replies go to.
The notification settings other than notificationEnabled need the formCustomNotification feature, the respondent email needs the formRespondentNotification feature. The email fields are the fields of the form detected as email.
curl -X PUT https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f \
-H "Authorization: Bearer $BACKMYFORM_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "redirectUrl": "https://www.example.com/thanks", "spamDetectionEnabled": true }'Request
Response
{
"id": "1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f",
"shortId": "k3x9q2mf",
"name": "Contact",
"redirectUrl": "https://www.example.com/thanks",
"spamDetectionEnabled": true,
"updatedAt": "2026-11-21T10:05:00.000Z"
}Delete a form
Moves the form to the trash: it stops accepting submissions, and 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 submissions. Needs a key of all the forms, and the admin or owner role.
A form deleted for good also deletes the API keys of that form.
curl -X DELETE https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{}