This is intended to help conceptualize requests.
We recommend tools such as Postman or ApiDog for development and testing.
REQUEST Open GET Request >
POST https://api.kpaehs.com/v1/responses.list { "token": "MY_TOKEN", "pretty": true }
RESPONSE
{ "ok": true, "description": "Near Miss Report: Showing All", "paging": { "total": 66, "last_page": 33 }, "responses": [ { "id": 1024, "parent_response_id": null, "pending_followup_assignees_id": [], "created": 1476124461658, "updated": 1476718837845, "fups": [], "latest": { "m_completer_id": "5804f0f40ef50473af5870e6", "m_submitter_id": "5804f0f40ef50473af587134", "started_on": 1476124172467, "submitted_on": 1476124461356, "received_on": 1476357332698, "version": 3, "form_version": 1, "location": { "lon": -97.90176526248575, "lat": 30.302495522720506, "accuracy": 957 }, "weather": { "temperature": 65, "icon": "wind", "windSpeed": 17 }, "responses": { "nearmissfld-fieldoffice": { "value": { "values": [ "5804f0f40ef50473af5870cd" ] }, "attachments": [] }, "nearmissfld-lob": { "value": { "values": [ "5804f0f40ef50473af5870d1" ] }, "attachments": [] }, "nearmissfld-client": { "value": { "values": [ "5804f0f40ef50473af5870d6" ] }, "attachments": [] }, "nearmissfld-misscategory": { "value": { "values": [ "working" ] }, "attachments": [] }, "nearmissfld-workingcategory-type": { "value": { "values": [ "walk-work-surface" ] }, "attachments": [] }, "nearmissfld-drivingcategory-type": { "value": { "values": [ "unsafe-road-conditions" ] }, "attachments": [] }, "nearmissfld-environmentalcategory-type": { "value": { "values": [ "inadequate-supplies" ] }, "attachments": [] }, "nearmissfld-bodypart": { "value": { "values": [ "eye" ] }, "attachments": [] }, "nearmissfld-severity": { "value": { "values": [ "low" ] }, "attachments": [] }, "nearmissfld-recurrence": { "value": { "values": [ "frequent" ] }, "attachments": [] }, "nearmissfld-actiontaken": { "value": { "values": [ "immediate-change" ] }, "attachments": [] }, "nearmissfld-managementofhazard": { "value": { "values": [] }, "attachments": [] }, "nearmissfld-description": { "value": { "text": "This is a sample answer for the paragraph input 1" }, "attachments": [] }, "nearmissfld-attachments": { "value": { "attachments": [ { "key": "modules/create-customer/fake-data/client/response-attachments/road-washout.jpg" }, { "key": "modules/create-customer/fake-data/client/response-attachments/cracked-metal.jpg" }, { "key": "modules/create-customer/fake-data/client/response-attachments/broken-pipe.jpg" } ] }, "attachments": [] } } } }, { "id": 1027, "parent_response_id": null, "pending_followup_assignees_id": [], "created": 1474605298868, "updated": 1476718837882, "latest": { "m_completer_id": "5804f0f40ef50473af5870e9", "m_submitter_id": "5804f0f40ef50473af587185", "started_on": 1474605127011, "submitted_on": 1474605297236, "received_on": 1474838169908, "version": 3, "form_version": 1, "location": { "lon": -97.75466801961623, "lat": 30.296529179222823, "accuracy": 893 }, "weather": { "temperature": 81, "icon": "rain", "windSpeed": 7 }, "fups": [], "responses": { "nearmissfld-fieldoffice": { "value": { "values": [ "5804f0f40ef50473af5870d0" ] }, "attachments": [] }, "nearmissfld-lob": { "value": { "values": [ "5804f0f40ef50473af5870d3" ] }, "attachments": [] }, "nearmissfld-client": { "value": { "values": [ "5804f0f40ef50473af5870d4" ] }, "attachments": [] }, "nearmissfld-misscategory": { "value": { "values": [ "working" ] }, "attachments": [] }, "nearmissfld-workingcategory-type": { "value": { "values": [ "trenching-shoring" ] }, "attachments": [] }, "nearmissfld-drivingcategory-type": { "value": { "values": [ "unsafe-road-conditions" ] }, "attachments": [] }, "nearmissfld-environmentalcategory-type": { "value": { "values": [ "failure-to-secure" ] }, "attachments": [] }, "nearmissfld-bodypart": { "value": { "values": [ "foot-toe", "body-systems" ] }, "attachments": [] }, "nearmissfld-severity": { "value": { "values": [ "high" ] }, "attachments": [] }, "nearmissfld-recurrence": { "value": { "values": [ "frequent" ] }, "attachments": [] }, "nearmissfld-actiontaken": { "value": { "values": [ "immediate-change" ] }, "attachments": [] }, "nearmissfld-managementofhazard": { "value": { "values": [] }, "attachments": [] }, "nearmissfld-description": { "value": { "text": "This is a sample answer for the paragraph input 71" }, "attachments": [] }, "nearmissfld-attachments": { "value": { "attachments": [ { "key": "modules/create-customer/fake-data/client/response-attachments/road-washout.jpg" }, { "key": "modules/create-customer/fake-data/client/response-attachments/broken-pipe.jpg" } ] }, "attachments": [] } } } } ] }