Skip to content

Forms

By Loïc Bresler 2 min read

This method retrieves the entries submitted in a platform form.

The method is called with POST, with a JSON body that contains your api_key. See the common rules.

Retrieve a form’s entries

Access point: https://www.mdworks.fr/api_http/get_form_entries

This method returns the information submitted in a form.

Parameters:

ParameterTypeRequiredDescription
form_idintegeryesID of the form, shown in the browser’s address bar when the form is open on the platform
mappingtextnoset no_mapping to name the fields with their internal ID (champ_123) rather than their field name. Any non-empty value has this effect: to keep field names, do not send this parameter

Example of posted data:

{
  "api_key": "YOUR_API_KEY",
  "form_id": "338"
}

Response: an array of objects, one per form entry, from the most recent to the oldest.

[
  {
    "pkey_id": "15",
    "ope": null,
    "date": "03/10/2025 15:24",
    "ip": "XXX.XXX.XXX.XXX",
    "raison_sociale": "XXX",
    "civilite": "Madame",
    "prenom": "XXX",
    "nom": "XXX",
    "siret": "XXXXXXXXXXXXX",
    "ville": "SAVIGNY-LE-TEMPLE",
    "code_naf": "9499Z",
    "email": "xxxxx@xxxxx.xxx",
    "telephone": "XXXXXXXXXX",
    "commentaire_quantites_souhaitees": "Besoin de renseignements",
    "code_postal": "77176"
  },
  {
    "pkey_id": "14",
    "ope": null,
    "date": "03/10/2025 00:07",
    "ip": "XXX.XXX.XXX.XXX",
    "raison_sociale": "XXX",
    "civilite": "Madame",
    "prenom": "XXX",
    "nom": "XXX",
    "siret": "XXXXXXXXXXXXX",
    "ville": "PREVESSIN-MOENS",
    "code_naf": "4121Z",
    "email": "xxxxx@xxxxx.xxx",
    "telephone": "XXXXXXXXXX",
    "commentaire_quantites_souhaitees": "1",
    "code_postal": "01280"
  }
]
FieldDescription
pkey_identry number
opetechnical platform field
datedate and time of the entry
iprespondent’s IP
other fieldsthe answers, named after each question’s field name, or after their internal ID with no_mapping

Errors:

MessageCause
Error form_id is missing or is not numeric
Error this user don't have access to form_idthe form does not belong to your account
No resultthe form has not received any entry yet
Last updated on