Quickstart
This guide takes you from no key to your first requests: create an API key, check it, then read your forms and their latest submissions.
Create an API key
The owners and the admins of a workspace create its API keys in the BackMyForm app:
- Open Settings → API keys in your workspace, and click New API key.
- Give the key a name, for example the tool that will use it, and click Create the key.
- Copy the key: it starts with
bmf_and it is shown only once.
A key created in the settings reaches all the forms of the workspace. To give a tool access to one form only, create the key from the Integrations → API tab of that form instead. See Authentication for what each kind of key can do.
Keep your key secret: it acts as you in the workspace. Use it from your server, never in the code of a web page or a mobile app.
In the examples of this documentation, the key is read from the BACKMYFORM_API_KEY environment variable:
export BACKMYFORM_API_KEY="bmf_..."Make your first request
Every request sends the key in the Authorization header. Start with GET /v1/me, which returns the user the key acts as: a good way to check that the key works.
curl https://api.backmyform.com/v1/me \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{
"id": "1f0b2c4d-8e9a-6f13-a2b4-c6d8e0f1a2b3",
"email": "[email protected]",
"firstName": "Jane",
"lastName": "Doe"
}List your forms
The forms are listed page by page, sorted by name. Each form has an id, used in the URLs of the API, and a shortId, used in the URL your website sends the submissions to.
curl https://api.backmyform.com/v1/forms \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"Request
Response
{
"items": [
{
"id": "1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f",
"shortId": "k3x9q2mf",
"name": "Contact",
"enabled": true,
"submissionsCount": 42,
"lastSubmissionAt": "2026-11-20T14:32:10.000Z"
}
],
"pageSize": 50,
"page": 1,
"totalPages": 1,
"totalItems": 1,
"hasNextPage": false,
"hasPreviousPage": false
}The forms are shortened here: see Forms for all their properties.
Read the latest submissions
The submissions of a form are listed from the most recent one. Each submission has the values sent by your website in data, one item per field.
curl https://api.backmyform.com/v1/forms/1f0b2c4e-1a2b-6c3d-8e4f-5a6b7c8d9e0f/submissions \
-H "Authorization: Bearer $BACKMYFORM_API_KEY"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": "message", "value": "Hello!", "file": null }
],
"createdAt": "2026-11-20T14:32:10.000Z",
"read": false
}
],
"pageSize": 50,
"totalItems": 1,
"offset": 0,
"hasNextPage": false,
"hasPreviousPage": false,
"nextCursor": null,
"previousCursor": null
}What's next?
- Learn how a key is limited to its user's role and to its form in Authentication.
- Read long lists page by page with Pagination.
- Handle the errors and the rate limits of the API.
- Get the new submissions as they arrive with webhooks, rather than reading the list again and again.