Form
Fetch all data related to ImBox Form
submittedForms
Get all submitted forms for a form within a timespan.
Parameters
Name | Type | Description |
---|---|---|
apiKey* | String | Your API key |
userId* | String | Your userId |
formId* | String | Id of form |
startTime* | String | Format: YYYY-MM-DD |
endTime | String | Format: YYYY-MM-DD. Default: Current date |
timezone | String | ”Europe/Stockholm”. Default: Europe/Stockholm |
fileType | String | ”csv” OR ”json”. Default: ”json” |
separator | String | CSV separator. Default: ”,” |
Usage
curl -X GET "https://apiv2.imbox.io/message/apiKey/userId/forms/formId/submitted?startTime=2020-01-01&endTime=2020-01-02"
Response
{
"result": "success",
"json": [
{
"timestamp": "2020-00-00T00:00:00.000Z",
"ticketId": 123,
"channel": "V1", // Channel exists when the form was part of a chat
"Namn": "John",
"Epost": "john.doe@example.org",
"Kommentar": "Hello, what are your opening hours?",
"domainPage": "https://examplepage.org",
"submittedId": 915 // Unique id
},
{
"timestamp": "2020-00-00T00:00:00.000Z",
"ticketId": null,
"channel": null,
"Namn": "Jane",
"Epost": "jane.doe@example.org",
"Kommentar": "Hello, please call me asap",
"domainPage": "https://examplepage.org",
"submittedId": 916 // Unique id
}
]
}