How to use this service.

First you will need to get a key. You should use a different key for each form. The key has two parts: a secret key and a form key. The secret key should be kept secret. You will need the secret key to retrieve your submitted form data. Don't lose it. The form key is the public part. It goes in your HTML form.

You can use any input names you want. They will be stored as a JSON object. Use a query string parameter named next to redirect your users after submitting the form. If you want a JSON response instead of a redirect, put res_type=json in your query string.

If you would like each form submission sent by email, you will need an email token. The email token should be added as a query string parameter named email. Go here to get an email token.

Go here to get a new key. Also available as JSON at /get-key.

Go here to retrieve your submitted form data.

Example Form

If your form key was OV74XB3VXMtjLidpNVHrXzKyus8aHX61, then your HTML form might look like this.

<form action="https://signup.djones.co/submit/OV74XB3VXMtjLidpNVHrXzKyus8aHX61?next=https://example.com/thankyou" method="post">
  <input type="text" name="name">
  <input type="email" name="email">
  <button type="submit">Submit</button>
</form>

Retrieving submitted data.

Date can be retrieved by sending your secret_key in a POST request to /get-data. The request can be application/x-www-form-urlencoded, multipart/form-data, or application/json.

This is an example response from /get-data.

{
  "records": [
    {
      "email": "alice@example.com",
      "name": "Alice",
      "time": "2016-06-05T21:03:29.659516"
    },
    {
      "email": "bob@example.com",
      "name": "Bob",
      "time": "2016-06-05T21:03:42.381883"
    }
  ]
}