{"info":{"_postman_id":"13f78d83-0e72-4e67-9461-c57e33e61f30","name":"IDW: Standard BioGovID w. Polling","description":"<html><head></head><body><h2 id=\"before-you-start\"><strong>Before you start,</strong></h2>\n<p><strong>Create a new</strong> <strong><code>Environment</code></strong> <strong>so this project can save and write information for you automatically.</strong></p>\n<img src=\"https://content.pstmn.io/9412927d-0d08-4c3d-8c3b-dd8d7329f938/U2NyZWVuIFNob3QgMjAyMi0xMS0wOSBhdCA3LjA5LjUxIFBNLnBuZw==\">\n\n<p><a href=\"https://docs.iddataweb.com/docs/verify-api-gov-id-capture-verification-desktop-to-mobile\">Follow these instructions step-by-step to use this project properly</a></p>\n<p>If you get stuck, or decide to walk through this project again with new data, call each step in order to ensure the old data gets replaced.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24165880","collectionId":"13f78d83-0e72-4e67-9461-c57e33e61f30","publishedId":"2sA2r6Y4nF","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-18T16:36:41.000Z"},"item":[{"name":"0) Get Token","event":[{"listen":"test","script":{"id":"df6fc57a-3f73-4e2a-b4db-ecc70f3b935e","exec":["pm.environment.clear()\r","var authString = request.headers.authorization.split(\" \")[1].toString()\r","var encodedAuth = Buffer.from(authString, 'base64')\r","var decodedAuth = encodedAuth.toString().split(\":\")\r","\r","var forwardApiKey = decodedAuth[0]\r","\r","postman.setEnvironmentVariable(\"token\",JSON.parse(pm.response.text()).access_token)\r","postman.setEnvironmentVariable(\"forwardApiKey\", forwardApiKey)"],"type":"text/javascript","packages":{}}}],"id":"d735f856-6f13-4713-bf27-f2427d974b7d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"url":"https://api.preprod.iddataweb.com/v1/token?grant_type=client_credentials","urlObject":{"protocol":"https","path":["v1","token"],"host":["api","preprod","iddataweb","com"],"query":[{"key":"grant_type","value":"client_credentials"}],"variable":[]}},"response":[],"_postman_id":"d735f856-6f13-4713-bf27-f2427d974b7d"},{"name":"1) Send Async Link","event":[{"listen":"test","script":{"id":"54adc504-556c-4ab5-86ea-744803e2677c","exec":["var requestBody  = JSON.parse(pm.request.body.raw)\r","var responseBody = JSON.parse(pm.response.text());\r","\r","// FORWARD API KEY, APP ID, CREDENTIAL, ASI (OR TRANSACTION ID)\r","var credential = requestBody.credential\r","var appID = requestBody.appID\r","var country = requestBody.country\r","var idpType = requestBody.idpType\r","var asi = responseBody.asi\r","var apSessionId = responseBody.services[0].apSessionId\r","\r","postman.setEnvironmentVariable(\"credential\", credential);\r","postman.setEnvironmentVariable(\"appID\", appID);\r","postman.setEnvironmentVariable(\"country\", country);\r","postman.setEnvironmentVariable(\"idpType\", idpType);\r","postman.setEnvironmentVariable(\"asi\", asi)\r","postman.setEnvironmentVariable(\"apSessionId\", apSessionId)"],"type":"text/javascript","packages":{}}}],"id":"5ffb5f9a-4745-4371-a844-770ab1eb3bce","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"credential\": \"your_user_credential\",\n    \"appID\":\"your_app_name\",\n    \"country\": \"US\",\n    \"apikey\": \"{{forwardApiKey}}\",\n    \"userAttributes\": [\n      {\n          \"attributeType\": \"InternationalTelephone\",\n          \"values\": {\n          \t\"dialCode\": \"1\",\n          \t\"telephone\": \"your_phone_number\"\n          }\n      },\n            {\n          \"attributeType\": \"FullName\",\n          \"values\": {\n          \t\"fname\": \"John\",\n          \t\"mname\": \"\",\n            \"lname\": \"Doe\"\n          }\n      }\n\t]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.preprod.iddataweb.com/v1/async-ui/send-link","urlObject":{"protocol":"https","path":["v1","async-ui","send-link"],"host":["api","preprod","iddataweb","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"5ffb5f9a-4745-4371-a844-770ab1eb3bce"},{"name":"(Poll) Check User Status","id":"a2561ef3-d9ac-400c-ad6c-262893d2f6c2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"https://preprod1.iddataweb.com/preprod-axn/axn/api/async-ui/status?asi={{asi}}&apSessionId={{apSessionId}}","urlObject":{"protocol":"https","path":["preprod-axn","axn","api","async-ui","status"],"host":["preprod1","iddataweb","com"],"query":[{"key":"asi","value":"{{asi}}"},{"key":"apSessionId","value":"{{apSessionId}}"}],"variable":[]}},"response":[],"_postman_id":"a2561ef3-d9ac-400c-ad6c-262893d2f6c2"},{"name":"2) Get Async Results","id":"cdb9a2b2-45da-4166-97be-222e182ea0bb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"credential\": \"your_user_credential\",\n    \"appID\":\"your_app_name\",\n    \"asi\": {{asi}},\n    \"country\": \"US\",\n    \"apikey\": \"{{forwardApiKey}}\",\n    \"userAttributes\": [\n      {\n          \"attributeType\": \"InternationalTelephone\",\n          \"values\": {\n          \t\"dialCode\": \"1\",\n          \t\"telephone\": \"your_phone_number\"\n          }\n      },\n            {\n          \"attributeType\": \"FullName\",\n          \"values\": {\n          \t\"fname\": \"John\",\n          \t\"mname\": \"\",\n            \"lname\": \"Doe\"\n          }\n      }\n\t]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.preprod.iddataweb.com/v1/slverify","urlObject":{"protocol":"https","path":["v1","slverify"],"host":["api","preprod","iddataweb","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"cdb9a2b2-45da-4166-97be-222e182ea0bb"}],"event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":[""],"id":"10c18538-7fd6-490a-b8bf-1397bd1ad689"}},{"listen":"test","script":{"type":"text/javascript","exec":[""],"id":"b5955a0b-09fc-485f-bf43-79a9bff5a9d4"}}]}