The Formcake API is available to all users who have a Developer plan or higher. Login or sign up to access the API!
You need to have an API Key created to access the Formcake API. Once you've created the key, you get a token that you can use in all of your requests. The token should go in the Authorization header of all your requests.
Get a list of all forms in your account.
Parameter | type | Default Value | Description |
---|---|---|---|
page | integer | 0 | Which page of results, index starts at 0 |
limit | integer | 50 | Number of results per page |
sort | enum | createdAt | Column to sort on, valid options are name, createdAt, submissionCount, and submissionCountNew |
order | enum | desc | Order to sort by, valid options are asc and desc |
curl -H "Authorization: efhci...04fj4" "https://api.formcake.com/public/v1/form?page=0&limit=10"
{
"count": 6,
"entities": [
{
"id": "77c42f0f-...",
"name": "Example form name",
"description": "Example form description",
"successRedirect": "https://formcake.com",
"submissionCount": 103,
"submissionCountNew": 12,
"monthlySubmissionCount": 33,
"lastSubmissionMonth": 7,
"honeypot": "honeypot-field",
"createdAt": "2020-07-13T00:27:32.483Z",
"updatedAt": "2020-07-13T00:27:32.483Z",
"userId": "178f6af7-...",
"actions": [],
"domains": []
},...
]
}
Get a specific form from your account.
curl -H "Authorization: efhci...04fj4" "https://api.formcake.com/public/v1/form/77c42f0f-..."
{
"id": "77c42f0f-...",
"name": "Example form name",
"description": "Example form description",
"successRedirect": "https://formcake.com",
"submissionCount": 103,
"submissionCountNew": 12,
"monthlySubmissionCount": 33,
"lastSubmissionMonth": 7,
"honeypot": "honeypot-field",
"createdAt": "2020-07-13T00:27:32.483Z",
"updatedAt": "2020-07-13T00:27:32.483Z",
"userId": "178f6af7-...",
"actions": [],
"domains": []
}
Get a list of submissions sent to a specific form
Parameter | type | Default Value | Description |
---|---|---|---|
page | integer | 0 | Which page of results, index starts at 0 |
limit | integer | 50 | Number of results per page |
sort | enum | createdAt | Column to sort on, valid options are createdAt and id |
order | enum | desc | Order to sort by, valid options are asc and desc |
getSpam | boolean | false | Optionally returns submissions that were filtered by the form's honeypot |
curl -H "Authorization: efhci...04fj4" "https://api.formcake.com/public/v1/form/77c42f0f-.../submission?page=0&limit=10"
{
"count": 4,
"entities": [
{
"data": {
"custom": "data",
"submitted": "to",
"your": "form"
},
"id": 2593,
"formId": "77c42f0f-...",
"typeId": null,
"domain": "",
"createdAt": "2020-07-13T05:33:28.923Z",
"updatedAt": "2020-07-13T05:33:28.923Z",
"submissionType": null
},...
]
}