FormBackend logo FormBackend logo

Api

Submissions

How to use the submission endpoints

End-points

Action Method URL
All submissions for a form GET /api/v1/forms/:identifier/submissions
Delete a submission DELETE /api/v1/forms/:identifier/submissions/:id

Object

{
  "id": 980190963,
  "created_at": "2023-12-11T15:54:09.824Z",
  "values": {"name": "John Doe", "email": "[email protected]"},
  "url": "https://www.formbackend.com/forms/:identifier/submissions/980190963",
  "form_url": "https://www.formbackend.com/forms/:identifier",
  "trash": false,
  "spam": false
}

List all submissions for a form

curl -H 'Authorization: Bearer exampletoken' -X POST https://www.formbackend.com/api/v1/forms/:identifier/submissions
{
  "submissions": [
    {
      "id": 980190963,
      "created_at": "2023-12-11T15:54:09.824Z",
      "values": {"name": "John Doe", "email": "[email protected]"},
      "url": "https://www.formbackend.com/forms/:identifier/submissions/980190963",
      "form_url": "https://www.formbackend.com/forms/:identifier",
      "trash": false,
      "spam": false
    },
  ]
}

Delete a submission

curl -H 'Authorization: Bearer exampletoken' -X DELETE https://www.formbackend.com/api/v1/forms/:identifier/submissions/:id