{"info":{"_postman_id":"4cbdae09-dd51-4efa-9e89-c43e4d6b71ec","name":"DataFile API","description":"<html><head></head><body><p>The <strong>DataFile API</strong> is accessable via a secure authenticated HTTPS connection to our hosted services, and is isolated to your subscription. This requires your application to have a <strong>client id</strong> and <strong>client secret</strong>.</p>\n<h2 id=\"setting-up-your-application\">Setting Up Your Application</h2>\n<p>To setup your account email <a href=\"mailto:support@datafileapi.com\">support@datafileapi.com</a> to recieve a <strong>client id</strong> and <strong>client secret</strong>.</p>\n<h2 id=\"bearer-authentication\">Bearer Authentication</h2>\n<p><strong>Bearer authentication</strong> is an HTTP authentication scheme that involves security tokens called bearer tokens. The name “Bearer authentication” can be understood as “give access to the bearer of this token.”</p>\n<p>To receive a bearer token, post your <strong>client id</strong> and <strong>client secret</strong> to the Authenticate Application request.</p>\n<p>Given the sensitive nature of the content, your client id and client secret will be updated on a regular basis. It is your responsibility to store these values securely and appropriately. Client ids and secrets may be revoked at anytime for any reason without prior warning. If you feel your id or secret has been compromised you must notify DataFile immediately. Further restrictions such as IP based restrictions will be managed on an individual basis.</p>\n<h2 id=\"requests\">Requests</h2>\n<p>The client must send this token in the Authorization header when making requests.</p>\n<p><code>\"Authorization: Bearer {access-token}\"</code></p>\n<h2 id=\"conventions\">Conventions</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Data type</th>\n<th>Format</th>\n<th>Example</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>dates</td>\n<td>YYYY-MM-DD HH:MM:SSAM</td>\n<td>2109-04-15 08:30:00AM</td>\n</tr>\n<tr>\n<td>phone numbers</td>\n<td>5555555555</td>\n<td>2125556666</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n<th>Details</th>\n<th>Body</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Success</td>\n<td>General Success status</td>\n<td>requested response in JSON</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Bad Request</td>\n<td>Invalid or otherwise unserved request</td>\n<td>error message in JSON</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Not Found</td>\n<td>Invalid URI or non-existant resource</td>\n<td>error message in JSON</td>\n</tr>\n<tr>\n<td>500</td>\n<td>Internal Server Error</td>\n<td>Something is amiss on the server</td>\n<td>none</td>\n</tr>\n</tbody>\n</table>\n</div></body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"7263183","collectionId":"4cbdae09-dd51-4efa-9e89-c43e4d6b71ec","publishedId":"S1ETPvh5","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2019-04-18T17:56:33.000Z"},"item":[{"name":"Authenticate Application","id":"88a3f048-40f5-4ee8-a5f4-b2094870d77b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"client-id\" : \"client-id\",\n    \"client-secret\" : \"secret\"\n}"},"url":"https://www.datafileapi.com/api/v1/authentication/application","description":"<p>To receive a bearer token, post your <strong>client id</strong> and <strong>client secret</strong> via a JSON POST.</p>\n","urlObject":{"protocol":"https","path":["api","v1","authentication","application"],"host":["www","datafileapi","com"],"query":[],"variable":[]}},"response":[{"id":"ae62a377-aa13-4e83-b7aa-e8d616ba4ed9","name":"Authenticate","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"client-id\" : \"client-id\",\n    \"client-secret\" : \"secret\"\n}"},"url":"https://www.datafileapi.com/api/v1/authentication/application"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Apr 2019 18:02:50 GMT"},{"key":"Server","value":"Apache/2.4.39 (Amazon) PHP/7.2.16"},{"key":"X-Powered-By","value":"PHP/7.2.16"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Content-Length","value":"69"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"access-token\": \"123456\",\n    \"access-expiration\": \"2019-04-16 08:00:00AM\"\n}"}],"_postman_id":"88a3f048-40f5-4ee8-a5f4-b2094870d77b"},{"name":"Batch","id":"3acaf858-0bdc-470d-a656-15229d120235","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","type":"text","value":"application/json"},{"description":"<p>Access Token</p>\n","key":"Authorization","type":"text","value":"Bearer {access-token}"}],"body":{"mode":"raw","raw":"{\n    \"batch-id\": \"ev-123654\",\n    \"notes\": \"notes\",\n    \"rush\": true,\n    \"delivery-type\":\"sftp\",\n    \"record-requests\": [\n        {\n            \"request-id\": \"r-22331\",\n            \"date-of-service-range\":{\n            \t\"start-date\" : \"2001-04-04\",\n            \t\"end-date\" : \"2019-04-04\"\n            },\n            \"facility\": {\n                \"organizational-npi\": 1234567890,\n                \"name\": \"Acme\",\n                \"address-line1\": \"456 Acme Lane\",\n                \"address-line2\": \"\",\n                \"city\": \"Milwaukee\",\n                \"state\": \"WI\",\n                \"postal-code\": \"52308\",\n                \"phone-number\":\"5555555555\",\n                \"fax-number\":\"5555555555\"\n            },\n            \"provider\": {\n                \"npi\": 3456789012,\n                \"first-name\": \"Frank\",\n                \"last-name\": \"Smith\",\n                \"address-line1\": \"123 Abc Street\",\n                \"address-line2\": \"Apt 2L\",\n                \"city\": \"Brooklyn\",\n                \"state\": \"NY\",\n                \"postal-code\": \"11233\",\n                \"phone-number\": \"5555554555\",\n                \"fax-number\": \"7189555555\"\n            },\n            \"patient\": {\n                \"first-name\": \"Susan\",\n                \"last-name\": \"Jones\",\n                \"date-of-birth\": \"1980-08-09\",\n                \"aliases\": \"\",\n                \"address-line1\": \"777 Street\",\n                \"address-line2\": \"4th Floor\",\n                \"city\": \"New York\",\n                \"state\": \"NY\",\n                \"postal-code\": \"11000\",\n                \"phone-number\": \"2125556666\",\n                \"fax-number\": \"2129555500\",\n                \"email\": \"susan@example.com\",\n                \"ssn\": \"1234\"\n            }\n        }\n    ]\n}"},"url":"https://www.datafileapi.com/api/v1/batch","description":"<p>A <strong>Batch Request</strong> is a grouping of one or more record-request objects. You can assign your own unique batch-id to a batch so you may later retrieve information about a batch or a record within a batch. </p>\n<p>If you do not provide a batch-id, the system will auto-generate a batch-id and it will be returned in the response. It is your responsibility to store your private batch-id for later use.</p>\n<p>In a batch request, you may request records by facility and/or provider and patient specifics via a JSON POST.</p>\n<h2 id=\"requirements\">Requirements</h2>\n<p>EITHER <strong>Facily</strong> OR <strong>Provider</strong> is required (both are acceptable). </p>\n<p><strong>Patient</strong> IS required.</p>\n<p><strong>Fields</strong> within each object are optional. For example, you may not know the NPI number for a provider but may know the Doctor's name. Therefore you would submit values for the name of the Doctor but leave the NPI field blank.</p>\n","urlObject":{"protocol":"https","path":["api","v1","batch"],"host":["www","datafileapi","com"],"query":[],"variable":[]}},"response":[{"id":"95ea0b64-84c5-490c-84cd-84d4876bcd0b","name":"Batch","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"Bearer {access_token}","description":"Access Token","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"batch-id\": \"ev-123654\",\n    \"notes\": \"notes\",\n    \"rush\": true,\n    \"record-requests\": [\n        {\n            \"request-id\": \"r-22331\",\n            \"facility\": {\n                \"organizational-npi\": 1234567890,\n                \"name\": \"Acme\",\n                \"address-line1\": \"456 Acme Lane\",\n                \"address-line2\": \"\",\n                \"city\": \"Milwaukee\",\n                \"state\": \"WI\",\n                \"postal-code\": \"52308\"\n            },\n            \"provider\": {\n                \"npi\": 3456789012,\n                \"first-name\": \"Frank\",\n                \"last-name\": \"Smith\",\n                \"address-line1\": \"123 Abc Street\",\n                \"address-line2\": \"Apt 2L\",\n                \"city\": \"Brooklyn\",\n                \"state\": \"NY\",\n                \"postal-code\": \"11233\",\n                \"phone-number\": \"5555554555\",\n                \"fax-number\": \"7189555555\"\n            },\n            \"patient\": {\n                \"first-name\": \"Susan\",\n                \"last-name\": \"Jones\",\n                \"date-of-birth\": \"1980-08-09\",\n                \"aliases\": \"\",\n                \"address-line1\": \"777 Street\",\n                \"address-line2\": \"4th Floor\",\n                \"city\": \"New York\",\n                \"state\": \"NY\",\n                \"postal-code\": \"11000\",\n                \"phone-number\": \"2125556666\",\n                \"fax-number\": \"2129555500\",\n                \"email\": \"susan@example.com\"\n            }\n        }\n    ]\n}"},"url":"https://www.datafileapi.com/api/v1/batch"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Apr 2019 18:03:51 GMT"},{"key":"Server","value":"Apache/2.4.39 (Amazon) PHP/7.2.16"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.2.16"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"59"},{"key":"Content-Length","value":"369"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n\t\"batch-result\": {\n\t\t\"batch-id\": \"ev-123654\",\n\t\t\"result-overview\": [{\n\t\t\t\t\"overview\": {\n\t\t\t\t\t\"records\": 12,\n\t\t\t\t\t\"delivery-timeline-days\": 1\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"overview\": {\n\t\t\t\t\t\"records\": 10,\n\t\t\t\t\t\"delivery-timeline-days\": 3\n\t\t\t\t}\n\t\t\t}\n\t\t],\n\t\t\"results\": [{\n\t\t\t\t\"result\": {\n\t\t\t\t\t\"request-id: \": \"r-22332\",\n\t\t\t\t\t\"first-name\": \"Sara\",\n\t\t\t\t\t\"last-name\": \"Smith\",\n\t\t\t\t\t\"date-of-birth\": \"1985-02-27\",\n\t\t\t\t\t\"delivery-expectation\": {\n\t\t\t\t\t\t\"delivery-timeline-days\": 1,\n\t\t\t\t\t\t\"delivery-notes\": \"No note\"\n\t\t\t\t\t},\n\t\t\t\t\t\"notes\": \"No notes\"\n\t\t\t\t}\n\t\t\t},\n\t\t\t{\n\t\t\t\t\"result\": {\n\t\t\t\t\t\"request-id: \": \"r-22331\",\n\t\t\t\t\t\"first-name\": \"Susan\",\n\t\t\t\t\t\"last-name\": \"Jones\",\n\t\t\t\t\t\"date-of-birth\": \"1985-02-26\",\n\t\t\t\t\t\"delivery-expectation\": {\n\t\t\t\t\t\t\"delivery-timeline-days\": 3,\n\t\t\t\t\t\t\"delivery-notes\": \"No note\"\n\t\t\t\t\t},\n\t\t\t\t\t\"notes\": \"No notes\"\n\t\t\t\t}\n\t\t\t}\n\t\t]\n\t}\n}"}],"_postman_id":"3acaf858-0bdc-470d-a656-15229d120235"},{"name":"Status By Batch Id","id":"f5f9ec12-b872-41db-b546-39105b0436dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>Access Token</p>\n","key":"Authorization","type":"text","value":"Bearer {access-token}"}],"url":"https://www.datafileapi.com/api/v1/status/ev-123654","description":"<p>After submitting a batch request, you may request its status by <strong>Batch Id</strong>. The batch id is your internal Id that you specified in the creation of a batch. </p>\n<p><code>https://www.datafileapi.com/api/v1/status/{batch-id}</code></p>\n","urlObject":{"protocol":"https","path":["api","v1","status","ev-123654"],"host":["www","datafileapi","com"],"query":[],"variable":[]}},"response":[{"id":"57ace75f-59eb-41a7-9ef2-0f408a4550cd","name":"Status By Batch Id","originalRequest":{"method":"GET","header":[{"description":"Access Token","key":"Authorization","type":"text","value":"Bearer {access-token}"}],"url":"https://www.datafileapi.com/api/v1/status/1"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\"batch-result\": {\n   \"batch-id\": \"ev-123654\",\n   \"as-of\": \"2019-04-15 10:03:00AM\",\n   \"delivery-type\":\"sftp\",\n   \"total-records\": 22,\n   \"open-records: 12,\n   \"completed-records\": 9,\n   \"records-not-found: 1,\n   \"batch-notes\" : \"22 Records processed as of 2019-02-18\",\n   \"result-overview\": [\n\t{\n\t\t\"overview\": {\n\t        \"records\": 12,\n\t        \"delivery-timeline-days\": 1,\n\t        \"completed-records\":0,\n\t        \"open-records\":12,\n\t        \"records-not-found\":0\n\t    }\n\t},\n\t{\n\t\t\"overview\": {\n\t    \t\"records\": 10,\n\t        \"delivery-timeline-days\": 3,\n\t        \"completed-records\":0,\n\t        \"open-records\":9,\n\t        \"records-not-found\":1\n\t\t}\n\t}\n    ],\n    \"results\": [\n    {\n        \"request\": {\n    \t\t\"request-id: \": \"r-22332\",\n        \t\"first-name\": \"Sara\",\n        \t\"last-name\": \"Smith\",\n        \t\"date-of-birth\": \"1985-02-27\",\n        \t\"delivery-expectation\": {\n            \t\"delivery-timeline-days\": 1,\n            \t\"delivery-notes\": \"No note\"\n        \t},\n        \t\"patient\": \n        \t{\n        \t\t\"first-name\": \"Sara\",\n            \t\"last-name\": \"Smith\",\n            \t\"date-of-birth\": \"1985-02-27\"\n        \t},\n        \t\"status\": \"in progress\",\n        \t\"result-type\": \"structured\",\n        \t\"pages\": 3,\n        \t\"notes\": \"No notes\"\n    \t}\n    },\n    {\n    \t\"request\": {\n    \t\t\"request-id: \": \"r-22332\",\n        \t\"first-name\": \"Sara\",\n        \t\"last-name\": \"Smith\",\n        \t\"date-of-birth\": \"1985-02-27\",\n        \t\"delivery-expectation\": {\n            \t\"delivery-timeline-days\": 1,\n            \t\"delivery-notes\": \"No note\"\n        \t},\n        \t\"patient\": \n        \t{\n        \t\t\"first-name\": \"Sara\",\n            \t\"last-name\": \"Smith\",\n            \t\"date-of-birth\": \"1985-02-27\"\n        \t},\n        \t\"status\": \"in progress\",\n        \t\"result-type\": \"structured\",\n        \t\"pages\": 3,\n        \t\"notes\": \"No notes\"\n    \t}\n   }\n   ]\n  }\n}"}],"_postman_id":"f5f9ec12-b872-41db-b546-39105b0436dd"},{"name":"Status By Batch Id and Request Id","id":"485a4563-9d5f-46f2-8eca-389f0ce64618","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>Access Token</p>\n","key":"Authorization","type":"text","value":"Bearer {access-token}"}],"url":"https://www.datafileapi.com/api/v1/status/ev-123654/r-22331","description":"<p>After submiting a batch, you may submit a status request by <strong>Batch Id</strong> and <strong>Request Id</strong>.</p>\n<p><code>https://www.datafileapi.com/api/v1/status/{batch-id}/{request_id}</code></p>\n","urlObject":{"protocol":"https","path":["api","v1","status","ev-123654","r-22331"],"host":["www","datafileapi","com"],"query":[],"variable":[]}},"response":[{"id":"744fc4cf-c8e0-4d01-af24-421b77f6ef59","name":"Status By Batch Id and Request Id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {access-token}","description":"Access Token","type":"text"}],"url":"https://www.datafileapi.com/api/v1/status/1/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 16 Apr 2019 18:07:10 GMT"},{"key":"Server","value":"Apache/2.4.39 (Amazon) PHP/7.2.16"},{"key":"Vary","value":"Authorization"},{"key":"X-Powered-By","value":"PHP/7.2.16"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"X-RateLimit-Limit","value":"60"},{"key":"X-RateLimit-Remaining","value":"58"},{"key":"Content-Length","value":"213"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\"batch-result\": {\n   \"batch-id\": \"ev-123654\",\n   \"as-of\": \"2019-04-15 10:03:00AM\",\n   \"delivery-type\":\"sftp\",\n   \"total-records\": 22,\n   \"open-records: 12,\n   \"completed-records\": 9,\n   \"records-not-found: 1,\n   \"batch-notes\" : \"22 Records processed as of 2019-02-18\",\n    \"request\": {\n    \t\t\"request-id: \": \"r-22332\",\n        \t\"first-name\": \"Sara\",\n        \t\"last-name\": \"Smith\",\n        \t\"date-of-birth\": \"1985-02-27\",\n        \t\"delivery-expectation\": {\n            \t\"delivery-timeline-days\": 1,\n            \t\"delivery-notes\": \"No note\"\n        \t},\n        \t\"patient\": \n        \t{\n        \t\t\"first-name\": \"Sara\",\n            \t\"last-name\": \"Smith\",\n            \t\"date-of-birth\": \"1985-02-27\"\n        \t},\n        \t\"status\": \"in progress\",\n        \t\"result-type\": \"structured\",\n        \t\"pages\": 3,\n        \t\"notes\": \"No notes\"\n    \t}\n  }\n}"}],"_postman_id":"485a4563-9d5f-46f2-8eca-389f0ce64618"}],"event":[{"listen":"prerequest","script":{"id":"03a5fcb1-d443-48ae-83dd-72a1fe98c429","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"bdfd372c-d704-4063-8bdc-894bb3c28663","type":"text/javascript","exec":[""]}}]}