{"info":{"_postman_id":"1302032d-e134-417a-a8f4-cc4a2f420190","name":"Radius API","description":"<html><head></head><body><h2 id=\"introduction\">Introduction</h2>\n<p>Radius API Documentation covers how to use the API endpoints and handling authentication. Please before you get started, ensure you sign up to <a href=\"https://dashboard.radius.africa\">Radius</a>.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>Radius uses API Tokens to allow acces to its API. Api tokens can be gotten by creating API Keys at the <a href=\"https://dashboard.radius.africa/settings\">Radius Dashboard</a>. The API token must be added to the request headers using <code>Api-Token</code>.</p>\n<p>API keys require specific permissions in order to use the corresponding API Endpoints. This can be set when creating an API key or when editing its permissions under Settings.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"15324321","collectionId":"1302032d-e134-417a-a8f4-cc4a2f420190","publishedId":"TzJoDLJB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-04-12T14:12:42.000Z"},"item":[{"name":"Identity","item":[{"name":"Fetch BVN (Advanced) Details","id":"272384d2-5b7a-49b4-9f5f-94a7f35383af","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/identity/bvn/advanced/<bvn>","description":"<p>This endpoint fetches the details for a BVN. </p>\n<p>URL Params:</p>\n<ul>\n<li>&lt; bvn &gt;: the BVN to query</li>\n</ul>\n<p>Note: </p>\n<ul>\n<li>Please check the example to see the response format. The image field in the response is a base64 string.</li>\n<li>Please add your Api-Token to the Header in order to use the endpoint.</li>\n</ul>\n","urlObject":{"path":["identity","bvn","advanced","<bvn>"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"5031ad42-da6d-4743-803d-319d46dfe1d9","name":"Fetch BVN (Advanced) Details","originalRequest":{"method":"GET","header":[{"key":"Api-Token","value":"your_api_token","type":"text"}],"url":"{{base_url}}/identity/bvn/advanced/78945612356"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 10 Apr 2021 19:52:40 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Set-Cookie","value":"XDEBUG_SESSION=PHPSTORM; expires=Sat, 10-Apr-2021 20:52:40 GMT; Max-Age=3600; path=/"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"631"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"type\": \"response\",\n        \"data\": {\n            \"origin\": {\n                \"lga\": \"North Lindsaymouth\",\n                \"state\": \"Kansas\"\n            },\n            \"biodata\": {\n                \"image\": \"Base 64 string\"\n            },\n            \"contact\": {\n                \"email\": \"vlockman@example.net\",\n                \"main_phone_number\": \"08081234567\",\n                \"other_phone_number\": \"09011234567\"\n            },\n            \"profile\": {\n                \"title\": \"Prof.\",\n                \"gender\": \"\",\n                \"last_name\": \"Goldner\",\n                \"first_name\": \"Constance\",\n                \"middle_name\": \"Ashley\",\n                \"nationality\": \"Nepal\",\n                \"date_of_birth\": \"\",\n                \"marital_status\": \"\"\n            },\n            \"identity\": {\n                \"bvn\": \"78945612356\",\n                \"nin\": \"\"\n            },\n            \"metadata\": {\n                \"watch_listed\": \"\",\n                \"registration_date\": \"\"\n            },\n            \"residence\": {\n                \"lga\": \"Lake Hayden\",\n                \"state\": \"Pennsylvania\",\n                \"address\": \"7588 Keven Manors Suite 826\"\n            }\n        }\n    },\n    \"message\": null\n}"}],"_postman_id":"272384d2-5b7a-49b4-9f5f-94a7f35383af"},{"name":"Fetch NIN Details","id":"5c9230a7-ca01-4dd3-8c85-d4a3b9ee8465","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/identity/nin/<nin>","description":"<p>This endpoint fetches the details for a NIN. </p>\n<p>URL Params:</p>\n<ul>\n<li>&lt; nin &gt;: the NIN to query</li>\n</ul>\n<p>Note: </p>\n<ul>\n<li>Please check the example to see the response format. The image and signature fields in the response are base64 strings.</li>\n<li>Please add your Api-Token to the Header in order to use the endpoint.</li>\n</ul>\n","urlObject":{"path":["identity","nin","<nin>"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"1064796d-1a45-4884-ac38-758e6abcf265","name":"Fetch NIN Details","originalRequest":{"method":"GET","header":[{"key":"Api-Token","value":"your_api_token","type":"text"}],"url":"{{base_url}}/identity/nin/12345678996"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 10 Apr 2021 19:53:25 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Set-Cookie","value":"XDEBUG_SESSION=PHPSTORM; expires=Sat, 10-Apr-2021 20:53:25 GMT; Max-Age=3600; path=/"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"992"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"type\": \"response\",\n        \"data\": {\n            \"origin\": {\n                \"lga\": \"South Wileychester\",\n                \"state\": \"Illinois\",\n                \"address\": \"1831 Morissette Pines\"\n            },\n            \"biodata\": {\n                \"image\": \"Base 64 string\",\n                \"signature\": \"Base 64 string\"\n            },\n            \"contact\": {\n                \"email\": \"chesley22@example.com\",\n                \"main_phone_number\": \"08031234567\"\n            },\n            \"profile\": {\n                \"title\": \"Mrs.\",\n                \"gender\": \"\",\n                \"surname\": \"Monahan\",\n                \"religion\": \"\",\n                \"first_name\": \"Araceli\",\n                \"maiden_name\": \"Lakin\",\n                \"middle_name\": \"Vicenta\",\n                \"nationality\": \"Bouvet Island (Bouvetoya)\",\n                \"date_of_birth\": \"\",\n                \"marital_status\": \"\",\n                \"spoken_language\": \"kk\",\n                \"educational_level\": \"\"\n            },\n            \"residence\": {\n                \"lga\": \"Bayerhaven\",\n                \"town\": \"Framiside\",\n                \"state\": \"Oklahoma\",\n                \"status\": \"\",\n                \"address\": \"81353 Coy Island Apt. 095\"\n            },\n            \"employment\": {\n                \"status\": \"\",\n                \"profession\": \"Animal Control Worker\"\n            },\n            \"next_of_kin\": {\n                \"surname\": \"Schinner\",\n                \"residence\": {\n                    \"lga\": \"Dejahton\",\n                    \"state\": \"Missouri\",\n                    \"address\": \"88877 Batz Walk Dooleyberg\"\n                },\n                \"first_name\": \"Elmo\"\n            },\n            \"birth_details\": {\n                \"lga\": \"Tremblayfort\",\n                \"date\": \"\",\n                \"state\": \"South Carolina\",\n                \"country\": \"Russian Federation\"\n            }\n        }\n    },\n    \"message\": null\n}"}],"_postman_id":"5c9230a7-ca01-4dd3-8c85-d4a3b9ee8465"},{"name":"Fetch NIN Details (Using Phone Number)","id":"0de19692-27d9-41bb-8dc5-57ac9c7232e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/identity/nin/phone/<phone>","description":"<p>This endpoint fetches the details for a NIN using the associated phone number. </p>\n<p>URL Params:</p>\n<ul>\n<li>&lt; phone &gt;: the phone number to query</li>\n</ul>\n<p>Note: </p>\n<ul>\n<li>Please check the example to see the response format. The image and signature fields in the response are base64 strings.</li>\n<li>Please add your Api-Token to the Header in order to use the endpoint.</li>\n</ul>\n","urlObject":{"path":["identity","nin","phone","<phone>"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"c229264a-f468-48d3-86ae-a2ce2e98bc55","name":"Fetch NIN Details (Using Phone Number)","originalRequest":{"method":"GET","header":[{"key":"Api-Token","value":"{{api_token}}","type":"text"}],"url":"{{base_url}}/identity/nin/phone/<phone>"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 10 Aug 2021 12:19:52 GMT"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"cache-control","value":"no-cache, private"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"Expect-CT","value":"max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""},{"key":"Report-To","value":"{\"endpoints\":[{\"url\":\"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=vzWo%2FnmVFEV8odqWWLKYdcwm2VBk897CA6zaFNfvEna88OOHBKLnnyrhI7KlCcXvk%2FnbtGXfeCZIjFy0Vd5PpYZDr8%2BtrcjbbBIzx%2F5TEXTgkp%2FxFDyjYtvBuDLKljY7FZ5vAA%3D%3D\"}],\"group\":\"cf-nel\",\"max_age\":604800}"},{"key":"NEL","value":"{\"success_fraction\":0,\"report_to\":\"cf-nel\",\"max_age\":604800}"},{"key":"Server","value":"cloudflare"},{"key":"CF-RAY","value":"67c92cbf8a320109-AMS"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3-27=\":443\"; ma=86400, h3-28=\":443\"; ma=86400, h3-29=\":443\"; ma=86400, h3=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"type\": \"response\",\n        \"data\": {\n            \"origin\": {\n                \"lga\": \"Ikorodu\",\n                \"state\": \"Lagos\",\n                \"address\": \"12 Coal way\",\n                \"spoken_language\": \"yoruba\"\n            },\n            \"biodata\": {\n                \"image\": \"Base 64 String\",\n                \"signature\": \"Base 64 String\"\n            },\n            \"contact\": {\n                \"email\": \"chesley22@example.com\",\n                \"main_phone_number\": \"08075461234\"\n            },\n            \"profile\": {\n                \"title\": \"mr\",\n                \"gender\": \"m\",\n                \"surname\": \"TAIWO\",\n                \"religion\": \"islam\",\n                \"first_name\": \"OLA\",\n                \"maiden_name\": \"\",\n                \"middle_name\": \"FEMI\",\n                \"nationality\": \"\",\n                \"date_of_birth\": \"18-11-1985\",\n                \"marital_status\": \"single\",\n                \"spoken_language\": \"\",\n                \"educational_level\": \"tertiary\"\n            },\n            \"identity\": {\n                \"nin\": \"12345678900\"\n            },\n            \"residence\": {\n                \"lga\": \"Ikorodu\",\n                \"town\": \"Ikorodu\",\n                \"state\": \"Lagos\",\n                \"status\": \"birth\",\n                \"address\": \"12 Coal way\"\n            },\n            \"employment\": {\n                \"status\": \"self employed\",\n                \"profession\": \"ENGINEER\"\n            },\n            \"next_of_kin\": {\n                \"surname\": \"TAIWO\",\n                \"residence\": {\n                    \"lga\": \"Ikorodu\",\n                    \"state\": \"Lagos\",\n                    \"address\": \"12 Coal way\"\n                },\n                \"first_name\": \"SHOLA\",\n                \"spoken_language\": \"\"\n            },\n            \"birth_details\": {\n                \"lga\": \"Ikorodu\",\n                \"date\": \"18-11-1985\",\n                \"state\": \"Lagos\",\n                \"country\": \"nigeria\"\n            }\n        }\n    },\n    \"message\": null\n}"}],"_postman_id":"0de19692-27d9-41bb-8dc5-57ac9c7232e3"},{"name":"Fetch CAC Details","id":"9a698b1c-aa35-4c0d-ba47-4c4939673d8f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/identity/cac/<cac>?company_name=<company_name>","description":"<p>This endpoint fetches the details for a CAC. </p>\n<p>URL Params:</p>\n<ul>\n<li>&lt; cac &gt;: the CAC RC number to query</li>\n</ul>\n<p>Query Params:</p>\n<ul>\n<li>&lt; company_name &gt;: Name of the Company</li>\n</ul>\n<p>Note: </p>\n<ul>\n<li>To get the record, both the CAC number and the Company Name have to match each other.</li>\n<li>Please add your Api-Token to the Header in order to use the endpoint.</li>\n</ul>\n","urlObject":{"path":["identity","cac","<cac>"],"host":["{{base_url}}"],"query":[{"key":"company_name","value":"<company_name>"}],"variable":[]}},"response":[{"id":"be4af317-2ea8-4226-9799-1203b6297be3","name":"Fetch CAC Details","originalRequest":{"method":"GET","header":[{"key":"Api-Token","value":"your_api_token","type":"text"}],"url":{"raw":"{{base_url}}/identity/cac/456879?company_name=Peopxxxxxx","host":["{{base_url}}"],"path":["identity","cac","456879"],"query":[{"key":"company_name","value":"Peopxxxxxx"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 10 Apr 2021 19:53:57 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"263"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"type\": \"response\",\n        \"data\": {\n            \"profile\": {\n                \"email\": \"shaina89@schmidt.com\",\n                \"address\": \"519 Abernathy Trail\",\n                \"company_name\": \"Fahey Inc\"\n            },\n            \"identity\": {\n                \"cac\": \"456879\"\n            },\n            \"meta_data\": {\n                \"status\": \"\",\n                \"activity\": \"\",\n                \"incorporation_at\": \"\"\n            }\n        }\n    },\n    \"message\": null\n}"}],"_postman_id":"9a698b1c-aa35-4c0d-ba47-4c4939673d8f"},{"name":"Fetch Driver License Details","id":"2c118b20-4c66-4f39-8ef6-b4b4988ed905","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/identity/drivers/licenses/<driver_license_number>","description":"<p>This endpoint fetches the details for a Driver License Number. </p>\n<p>URL Params:</p>\n<ul>\n<li>&lt; driver_license_number &gt;: the Driver License Number to query</li>\n</ul>\n<p>Note: </p>\n<ul>\n<li>Please check the example to see the response format. The image field in the response is a base64 string.</li>\n<li>Please add your Api-Token to the Header in order to use the endpoint.</li>\n</ul>\n","urlObject":{"path":["identity","drivers","licenses","<driver_license_number>"],"host":["{{base_url}}"],"query":[],"variable":[]}},"response":[{"id":"a5a9633b-cdf0-485b-bb83-876be27a6f97","name":"Fetch Driver License Details","originalRequest":{"method":"GET","header":[{"key":"DATA-USER-ID","value":"{{data_user_id}}","type":"text"},{"key":"DATA-USER-TYPE","value":"{{data_user_type}}","type":"text"},{"key":"DATA-ORGANISATION-ID","value":"{{data_organisation_id}}","type":"text"},{"key":"DATA-SERVICE-PERMISSIONS","value":"{{data_service_permissions}}","type":"text"}],"url":{"raw":"{{base_url}}/identity/drivers/licenses/FL-3245?Api-Token=your_api_token","host":["{{base_url}}"],"path":["identity","drivers","licenses","FL-3245"],"query":[{"key":"Api-Token","value":"your_api_token"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 10 Apr 2021 19:54:38 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Set-Cookie","value":"XDEBUG_SESSION=PHPSTORM; expires=Sat, 10-Apr-2021 20:54:38 GMT; Max-Age=3600; path=/"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"302"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"type\": \"response\",\n        \"data\": {\n            \"biodata\": {\n                \"image\": \"base64 string\"\n            },\n            \"profile\": {\n                \"gender\": \"\",\n                \"last_name\": \"Grimes\",\n                \"first_name\": \"Kim\",\n                \"middle_name\": \"Bernice\",\n                \"date_of_birth\": \"\"\n            },\n            \"identity\": {\n                \"driver_license\": \"\"\n            },\n            \"meta_data\": {\n                \"expiry_date\": \"\",\n                \"issued_date\": \"\",\n                \"state_of_issue\": \"\"\n            }\n        }\n    },\n    \"message\": null\n}"}],"_postman_id":"2c118b20-4c66-4f39-8ef6-b4b4988ed905"},{"name":"Fetch Nigerian Passport Details","id":"ad082e0c-34f0-41cc-82aa-b5012e2a8724","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{base_url}}/identity/passport/nigeria/<passport_number>?first_name=<first_name>&last_name=<last_name>&dob=<dob>","description":"<p>This endpoint fetches the details for a Nigerian Passport. </p>\n<p>URL Params:</p>\n<ul>\n<li>&lt; passport_number &gt;: the Passport Number to query</li>\n</ul>\n<p>Query Params:</p>\n<ul>\n<li>&lt; first_name &gt;: First name</li>\n<li>&lt; last_name &gt;: Last name</li>\n<li>&lt; dob &gt;: Date of Birth</li>\n</ul>\n<p>Note: </p>\n<ul>\n<li>To get the record, both the passport_number, first_name, last_name and dob have to match each other.</li>\n<li>Please add your Api-Token to the Header in order to use the endpoint.</li>\n</ul>\n","urlObject":{"path":["identity","passport","nigeria","<passport_number>"],"host":["{{base_url}}"],"query":[{"key":"first_name","value":"<first_name>"},{"key":"last_name","value":"<last_name>"},{"description":{"content":"<p>format is Y-m-d e.g. 1978-03-01</p>\n","type":"text/plain"},"key":"dob","value":"<dob>"}],"variable":[]}},"response":[{"id":"5bd94381-60ca-47cf-b43a-8fd2f28457db","name":"Fetch Nigerian Passport Details","originalRequest":{"method":"GET","header":[{"key":"Api-Token","value":"your_api_token","type":"text"}],"url":{"raw":"{{base_url}}/identity/passport/nigeria/A12356?first_name=Georgiana&last_name=Prohaska&dob=1986-01-20","host":["{{base_url}}"],"path":["identity","passport","nigeria","A12356"],"query":[{"key":"first_name","value":"Georgiana"},{"key":"last_name","value":"Prohaska"},{"key":"dob","value":"1986-01-20"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sat, 10 Apr 2021 19:55:22 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"367"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"type\": \"response\",\n        \"data\": {\n            \"biodata\": {\n                \"image\": \"base64 image\"\n            },\n            \"contact\": {\n                \"main_phone_number\": \"07081234567\"\n            },\n            \"profile\": {\n                \"dob\": \"\",\n                \"gender\": \"\",\n                \"last_name\": \"Prohaska\",\n                \"first_name\": \"Georgiana\",\n                \"other_name\": \"Berenice\"\n            },\n            \"identity\": {\n                \"passport_id\": \"A12356\"\n            },\n            \"meta_data\": {\n                \"issued_at\": \"Creminmouth\",\n                \"expiry_date\": \"\",\n                \"issued_date\": \"\"\n            }\n        }\n    },\n    \"message\": null\n}"}],"_postman_id":"ad082e0c-34f0-41cc-82aa-b5012e2a8724"}],"id":"6cb5ada6-e11a-4eec-88f4-304c2267f336","_postman_id":"6cb5ada6-e11a-4eec-88f4-304c2267f336","description":""},{"name":"AuthX","item":[{"name":"OAuth","item":[{"name":"Get Access Token (Using Authorization Code)","id":"b53038ed-4727-4252-acdb-1d1e283bf3c0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"grant_type\": \"authorization_code\",\r\n    \"client_id\": \"{{app_client_id}}\",\r\n    \"client_secret\": \"{{app_client_secret}}\",\r\n    \"redirect_uri\": \"{{app_redirect_uri}}\",\r\n    \"code\": \"{{received_authorization_code}}\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{authx_base_url}}/oauth/access/token","description":"<p>This endpoint fetches an API token using OAuth Authorization Code. An API token obtained in this way, can only be used to perform actions on behalf of the logged-in user. This endpoint is to be called after the user has been redirected to the vendor site after a successful login using AuthX. </p>\n<p>Request Body Parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client_id</td>\n<td>string</td>\n<td>The App Client Id (obtained on AuthX App Creation)</td>\n</tr>\n<tr>\n<td>client_secret</td>\n<td>string</td>\n<td>The App Client Secret (obtained on AuthX App Creation)</td>\n</tr>\n<tr>\n<td>redirect_uri</td>\n<td>string</td>\n<td>Redirect URI specified in the AuthX App Configuration</td>\n</tr>\n<tr>\n<td>code</td>\n<td>string</td>\n<td>The Authorization Code provided as a URL parameter when redirecting to the vendor site after successful login with AuthX.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["oauth","access","token"],"host":["{{authx_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"b262f8c0-af78-45de-b51f-d96e39cd2446","name":"Get Access Token (Using Authorization Code)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"grant_type\": \"authorization_code\",\r\n    \"client_id\": \"CL5P7YL3dgCrhCMK26kemxvLw54Sn9Js4ouTU6e9\",\r\n    \"client_secret\": \"PCfafUebusXCmhU2sPm2lxFNdXF8W82Abrow6inHXoYLtVd45pDQjrZc6cGo\",\r\n    \"redirect_uri\": \"http://www.example.com/authorized\",\r\n    \"code\": \"def502008caf01987e24866ec26a7fd71628f6df10eb11c7d61e6ab10d33a2ff8c984a1b4c19807e79f6a49ff1fdc40355bc16150bc7230d186b17ecb9b8916ad38280b3867cc9452238070ea562dbcc35c2f09e0cfeb82279f9dc1c992cde781a337e34de7e38ceb93b3881050448eebe8d8736319cc896210a2d4df43b2ff99269b971bdc35e442f7d870e92c587ef0dd008eb88c29ae23158c6c5e7b73e722a232be4ff1c60a90fbe6f16dcec3479aefe566dd800ae9ab57b19db28747f46638223bb1ac8f18ca7eef85b2046837df74e4f53cd8850272fc40b6c1b8c6e691225e18714cc7be7c3e797da901347248feed2552fe1035a16eebec27ad1c6bd53e6582d4fb02a2175aa5f3f5fe04f3dc6846d7732cd0410283c751eada8cff78e9621043b7337c8f4cf7a5d4cb2842f5f85f1f0e79e97a923532398d0958aabe3837337519c23f4055ea8925093cc3a9542efc2b422eca66cba4b246be4ed70a044bae91197db07c2890a8540545aa69728ded770edb6e98fe0582163ec7eb85ca51b510123b8927d2bbc6b722d596c19d68e8a4420de46c0b9514df2561d78e8979731f23eee69fc8222afd913380ee7bcbf88760e82444bede60b35de3fc8bc4659de1d2c208b14f23adf2fbd865f9e966153fb3fc34eece5638a3790ce835e626fd8146b1c0a2c28c630c36edf4510f0\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{authx_base_url}}/oauth/access/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 30 Aug 2021 22:52:05 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Set-Cookie","value":"XDEBUG_SESSION=PHPSTORM; expires=Mon, 30-Aug-2021 23:52:05 GMT; Max-Age=3600; path=/"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"296"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"expires_in\": 3597,\n        \"access_token\": \"d7d1fe00fe38e7282d1ec4c6557dd4d6e1b8dbafb1a52bff32498947128468d914d87628c97f07eb\",\n        \"user\": {\n            \"identifier\": \"example@gmail.com\",\n            \"code\": \"e60dfb96-824d-42cc-a9ed-05d4837fa0ef\",\n            \"data\": {\n                \"field1\": \"value1\",\n                \"field2\": \"value2\"\n            }\n        }\n    },\n    \"message\": null\n}"}],"_postman_id":"b53038ed-4727-4252-acdb-1d1e283bf3c0"},{"name":"Get Access Token (Using Client Credentials)","id":"6bfe7f78-5143-4767-a47c-ca63f44cb56f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"grant_type\": \"client_credentials\",\r\n    \"client_id\": \"{{app_client_id}}\",\r\n    \"client_secret\": \"{{app_client_secret}}\",\r\n    \"scope\": \"authx.vendors\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{authx_base_url}}/oauth/access/token","description":"<p>This endpoint fetches an API token using OAuth Client Credentials. An API token obtained in this way has vendor level permission which means can access any data associated with the AuthX App.</p>\n<p>Request Body Parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>client_id</td>\n<td>string</td>\n<td>The App Client Id (obtained on AuthX App Creation)</td>\n</tr>\n<tr>\n<td>client_secret</td>\n<td>string</td>\n<td>The App Client Secret (obtained on AuthX App Creation)</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["oauth","access","token"],"host":["{{authx_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"994a5ee1-08a1-4e92-9809-6703843a6dd4","name":"Get Access Token (Using Client Credentials)","originalRequest":{"method":"POST","header":[{"key":"DATA-USER-ID","value":"{{data_user_id}}","type":"text"},{"key":"DATA-USER-TYPE","value":"{{data_user_type}}","type":"text"},{"key":"DATA-ORGANISATION-ID","value":"{{data_organisation_id}}","type":"text"},{"key":"DATA-SERVICE-PERMISSIONS","value":"{{data_service_permissions}}","type":"text"},{"key":"Api-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"grant_type\": \"client_credentials\",\r\n    \"client_id\": \"CL5P7YL3dgCrhCMK26kemxvLw54Sn9Js4ouTU6e9\",\r\n    \"client_secret\": \"PCfafUebusXCmhU2sPm2lxFNdXF8W82Abrow6inHXoYLtVd45pDQjrZc6cGo\",\r\n    \"scope\": \"authx.vendors\"\r\n}","options":{"raw":{"language":"json"}}},"url":"{{authx_base_url}}/oauth/access/token"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 30 Aug 2021 22:58:13 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"258"},{"key":"Keep-Alive","value":"timeout=5, max=99"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"expires_in\": 3600,\n        \"access_token\": \"d41b321b9b47dbb2e88cd4d40564c075e90373ef1e6c6f6aeb41dc3fd64c0e40c8089545fce9fe07\",\n        \"app\": {\n            \"name\": \"Aros App\",\n            \"code\": \"b85910af-0bed-414b-8c75-caac404efa6a\",\n            \"description\": \"blah blah\"\n        }\n    },\n    \"message\": null\n}"}],"_postman_id":"6bfe7f78-5143-4767-a47c-ca63f44cb56f"}],"id":"e3771ef2-b859-4f66-9a17-87696ce468e9","_postman_id":"e3771ef2-b859-4f66-9a17-87696ce468e9","description":""},{"name":"User","item":[{"name":"Fetched User Details","id":"064ad779-26c0-4baf-a8b2-7d895d66dbed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{authx_base_url}}/apps/{{app_code}}/users/{{user_code}}","description":"<p><code>vendor</code>, <code>user</code></p>\n<p>This endpoint fetches a user's details.</p>\n<p>URL Parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>app_code</td>\n<td>string</td>\n<td>The App Code (can be obtained on the AuthX dashboard)</td>\n</tr>\n<tr>\n<td>user_code</td>\n<td>string</td>\n<td>The User Code that identifies the user (it is generated when a user signs up).</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["apps","{{app_code}}","users","{{user_code}}"],"host":["{{authx_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"4619a361-62e0-49fb-a1c1-c8aaca0a9d1a","name":"Fetched User Details","originalRequest":{"method":"GET","header":[{"key":"Api-Token","value":"{{api_token}}","type":"text"}],"url":"{{authx_base_url}}/apps/8d529725-6a7f-4495-a5f9-2f408975c078/users/b89b0eab-1ff5-491c-bb55-5ea9c653472b"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 30 Aug 2021 17:41:58 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Set-Cookie","value":"XDEBUG_SESSION=PHPSTORM; expires=Mon, 30-Aug-2021 18:41:58 GMT; Max-Age=3600; path=/"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"367"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"identifier\": \"example@gmail.com\",\n        \"code\": \"b89b0eab-1ff5-491c-bb55-5ea9c653472b\",\n        \"app\": {\n            \"name\": \"New App\",\n            \"code\": \"8d529725-6a7f-4495-a5f9-2f408975c078\",\n            \"status\": \"active\"\n        },\n        \"signed_up_at\": \"2021-08-13 12:43:55\",\n        \"status\": \"active\",\n        \"main_data\": {\n            \"data\": {\n                \"field1\": \"value1\",\n                \"field2\": \"value2\"\n            },\n            \"modified_at\": \"2021-08-13 14:40:43\"\n        }\n    },\n    \"message\": null\n}"}],"_postman_id":"064ad779-26c0-4baf-a8b2-7d895d66dbed"},{"name":"Fetched User List","id":"f6ad755b-610a-4bd7-9e4e-03bff2089ba0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Api-Token","value":"{{api_token}}","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"{{authx_base_url}}/apps/{{app_code}}/users","description":"<p><code>vendor</code>, <code>user</code></p>\n<p>This endpoint fetches a list of users with their details. This list is paginated. The list can be altered with available URL Query Parameters. If this endpoint is used as a <code>user</code> then it will only return the user's record. </p>\n<p>URL Parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>app_code</td>\n<td>string</td>\n<td>The App Code (can be obtained on the AuthX dashboard)</td>\n</tr>\n<tr>\n<td>user_code</td>\n<td>string</td>\n<td>The User Code that identifies the user (it is generated when a user signs up).</td>\n</tr>\n</tbody>\n</table>\n</div><p>URL Query Parameters:</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Name</th>\n<th>Data Type</th>\n<th>Required ?</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>page_size</td>\n<td>integer</td>\n<td>No</td>\n<td>20</td>\n<td>The maximum number of records that can be returned at a time.</td>\n</tr>\n<tr>\n<td>page</td>\n<td>integer</td>\n<td>No</td>\n<td>1</td>\n<td>The current page for the record list</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["apps","{{app_code}}","users"],"host":["{{authx_base_url}}"],"query":[],"variable":[]}},"response":[{"id":"ad8a0437-c1c2-48a3-b3ce-b5edf3cd8e0d","name":"Fetched User List","originalRequest":{"method":"GET","header":[{"key":"Api-Token","value":"{{api_token}}","type":"text"}],"url":"{{authx_base_url}}/apps/8d529725-6a7f-4495-a5f9-2f408975c078/users"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Mon, 30 Aug 2021 17:41:41 GMT"},{"key":"Server","value":"Apache/2.4.29 (Ubuntu)"},{"key":"Set-Cookie","value":"XDEBUG_SESSION=PHPSTORM; expires=Mon, 30-Aug-2021 18:41:41 GMT; Max-Age=3600; path=/"},{"key":"Cache-Control","value":"no-cache, private"},{"key":"Content-Length","value":"780"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"data\": {\n        \"pagination\": {\n            \"total_count\": 1,\n            \"total_pages\": 1,\n            \"current_page\": 1,\n            \"count\": 1\n        },\n        \"list\": [\n            {\n                \"identifier\": \"example@gmail.com\",\n                \"code\": \"aa1abad3-5207-44c2-af44-2997c3d8b1a0\",\n                \"app\": {\n                    \"name\": \"New App\",\n                    \"code\": \"8d529725-6a7f-4495-a5f9-2f408975c078\",\n                    \"status\": \"active\"\n                },\n                \"signed_up_at\": \"2021-08-11 17:02:55\",\n                \"status\": \"active\",\n                \"main_data\": {\n                    \"data\": {\n                        \"field1\": \"value1\",\n                        \"field2\": \"value2\"\n                    },\n                    \"modified_at\": \"2021-08-11 17:19:54\"\n                }\n            }\n        ]\n    },\n    \"message\": null\n}"}],"_postman_id":"f6ad755b-610a-4bd7-9e4e-03bff2089ba0"}],"id":"62d96293-7e2d-4fcf-a8ad-f5f32bd98a58","_postman_id":"62d96293-7e2d-4fcf-a8ad-f5f32bd98a58","description":""}],"id":"0dae6539-dbb5-4ffa-ba99-8547ecd1e02a","description":"<p>This section explains API provided by the AuthX Service. Most AuthX API endpoints require an API token for authorization. </p>\n<p>The API token can be obtained into two ways:</p>\n<ul>\n<li>Using the Authorization Code obtained at the end of a successful login when the user is redirected to the vendor's site.</li>\n<li>Using the Client Credentials, which are obtained when creating the AuthX app for the vendor's site.</li>\n</ul>\n<p>The <code>OAuth</code> Section showcase the endpoints that use the above details to obtain the API token. </p>\n<p>It is important to note that if the API token is obtained using the Authorization Code, API requests can only be made on behalf of the logged-in user. This means that the API token can only be used to act as the user when performing an action, fetch and/or manipulate the user's data. An API token obtained in this manner cannot be used for another user. Any endpoint in this document which allows this type of access will be be tagged with <code>user</code></p>\n<p>If the API token is obtained using the App Client Credentials, it has the vendor access which means that it can access any data associated with the app. Any endpoint in this document which allows this type of access will be be tagged with <code>vendor</code></p>\n<p>In order to use an API token for an endpoint, it needs to be passed in the Request Headers using the following key: <code>Api-Token</code></p>\n<p>Note</p>\n","_postman_id":"0dae6539-dbb5-4ffa-ba99-8547ecd1e02a"}]}