Forms
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:
| Parameter | Type | Required | Description |
|---|---|---|---|
form_id | integer | yes | ID of the form, shown in the browser’s address bar when the form is open on the platform |
mapping | text | no | set 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"
}
]| Field | Description |
|---|---|
pkey_id | entry number |
ope | technical platform field |
date | date and time of the entry |
ip | respondent’s IP |
| other fields | the answers, named after each question’s field name, or after their internal ID with no_mapping |
Errors:
| Message | Cause |
|---|---|
Error form_id is missing or is not numeric | |
Error this user don't have access to form_id | the form does not belong to your account |
No result | the form has not received any entry yet |
Last updated on