{"info":{"_postman_id":"d80a647c-f272-4af5-b832-2b8d1a55cc7c","name":"Home Space Background Check APIs","description":"<html><head></head><body><h2>Introduction</h2>\nHome Space is the leading digital background checks platform in Africa.\n<br><br>\nWe have exposed our core background check capabilities as RESTful APIs to make it easy for developers to integrate our services and create world-class user on-boarding experiences.\n\n<h2>Developer Account Registration:</h2>\nTo create a developer account, please contact our team at <b>admin@gethomespace.com</b> with the following information:\n<ul>\n<li>First &amp; Last name</li>\n<li>Phone number</li>\n<li>Business name</li>\n<li>Business email address</li>\n<li>Business type</li>\n<li>Job title</li>\n</ul>\n\n<p>Once we have successfully created your account, we will issue you with an access token that will allow you to use our APIs.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"99936","collectionId":"d80a647c-f272-4af5-b832-2b8d1a55cc7c","publishedId":"UUxxfT7s","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-09-24T11:17:25.000Z"},"item":[{"name":"Verifications","id":"d923d110-f48a-4e30-a48b-bd6432855670","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"username\": \"254797168810\",\n        \"first_name\": \"Antony\",\n        \"last_name\": \"Kaguara\",\n        \"national_id\": \"27657762\",\n        \"date_of_birth\": null,\n        \"email\": \"support@gethomespace.com\",\n        \"service_type_code\": \"OTH\",\n        \"is_consent_provided\": true\n        },\n    \"verifications\": {\n        \"run_id_verification\": true,\n        \"run_phone_verification\": true\n        }\n}"},"url":"{{hostname}}/api/v1/verifications","description":"<p>This API is used to request for ID and phone number verification on a given candidate. The candidate information is passed in the body of the request along with the flags that indicate which checks to run on the candidate.</p>\n<h6>Request Body</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user.username</td>\n<td>string (required)</td>\n<td>The candidate's phone number.</td>\n</tr>\n<tr>\n<td>user.first_name</td>\n<td>string (required)</td>\n<td>The candidate's first name.</td>\n</tr>\n<tr>\n<td>user.last_name</td>\n<td>string (required)</td>\n<td>The candidate's last name.</td>\n</tr>\n<tr>\n<td>user.national_id</td>\n<td>string (required)</td>\n<td>The candidate's national identity number.</td>\n</tr>\n<tr>\n<td>user.date_of_birth</td>\n<td>string (required)</td>\n<td>The candidate's date of birth.</td>\n</tr>\n<tr>\n<td>user.email</td>\n<td>string (optional)</td>\n<td>The candidate's email address.</td>\n</tr>\n<tr>\n<td>user.service_type_code*</td>\n<td>string (optional)</td>\n<td>The type of service being provided by the candidate.</td>\n</tr>\n<tr>\n<td>user.is_consent_provided</td>\n<td>boolean (required)</td>\n<td>Flag indicating whether the candidate has provided consent for account creation.</td>\n</tr>\n<tr>\n<td>verifications.run_id_verification</td>\n<td>boolean (required)</td>\n<td>Flag indicating whether to run identity verification on the candidate.</td>\n</tr>\n<tr>\n<td>verifications.run_phone_verification</td>\n<td>boolean (required)</td>\n<td>Flag indicating whether to run phone number verification on the candidate.</td>\n</tr>\n</tbody>\n</table>\n</div><p><b>Notes:</b>\n<br />\n* Please reference the /config API response to retrieve the mapping of service names to service_type_code.</p>\n<h6>Success Response Body</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>The candidate's account_id.</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>The candidate's first name.</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>string</td>\n<td>The candidate's last name.</td>\n</tr>\n<tr>\n<td>username</td>\n<td>string</td>\n<td>The candidate's phone number.</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>string</td>\n<td>The candidate's date of brith.</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>The candidate's email</td>\n</tr>\n<tr>\n<td>national_id</td>\n<td>string</td>\n<td>The candidate's national identity number.</td>\n</tr>\n<tr>\n<td>certificate_of_good_conduct_serial_number</td>\n<td>string</td>\n<td>The serial number listed in the candidate's certificate of good conduct. Extracted from the document via OCR.</td>\n</tr>\n<tr>\n<td>is_id_verified</td>\n<td>boolean</td>\n<td>Flag that indicates whether the candidate's ID number has been verified.</td>\n</tr>\n<tr>\n<td>is_confirmed</td>\n<td>boolean</td>\n<td>Flag that indicates whether the candidate's phone number and account details have been verified.</td>\n</tr>\n<tr>\n<td>is_consent_provided</td>\n<td>boolean</td>\n<td>Flag that indicates whether the candidate provided consent when their account was being created.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","verifications"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"d923d110-f48a-4e30-a48b-bd6432855670"},{"name":"Phone Confirmation Code","id":"6155c67d-c8c1-43bd-91d8-242fee74a7e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"username\": \"254797168810\"\n        },\n    \"phone_verification_token\": \"545874\"\n}"},"url":"{{hostname}}/api/v1/verifications/confirm","description":"<p>This API takes a candidate's phone number and the phone confirmation code and verifies that the candidate's phone number belongs to them.</p>\n<h6>Request Body</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user.username</td>\n<td>string (required)</td>\n<td>The candidate's phone number.</td>\n</tr>\n<tr>\n<td>phone_verification_token</td>\n<td>string (required)</td>\n<td>The 6-digit code that was sent to the candidate's phone number.</td>\n</tr>\n</tbody>\n</table>\n</div><h6>Success Response Body</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>message</td>\n<td>string</td>\n<td>Message confirming that the candidate's account has been verified.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","verifications","confirm"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"6155c67d-c8c1-43bd-91d8-242fee74a7e3"},{"name":"Account","id":"e844d903-a420-4795-9c53-ebb92b140ab2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"url":"{{hostname}}/api/v1/candidates?user_phone_number=254797168810","description":"<p>This API takes a candidate's phone number and returns their account information.</p>\n<h6>Request Parameter</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user_phone_number</td>\n<td>integer (required)</td>\n<td>The candidate's phone number. Format: country_code_phone_number. Example: 254722124560.</td>\n</tr>\n</tbody>\n</table>\n</div><h6>Success Response Body</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>The candidate's account_id.</td>\n</tr>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>The candidate's first name.</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>string</td>\n<td>The candidate's last name.</td>\n</tr>\n<tr>\n<td>username</td>\n<td>string</td>\n<td>The candidate's phone number.</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>string</td>\n<td>The candidate's date of brith.</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>The candidate's email</td>\n</tr>\n<tr>\n<td>national_id</td>\n<td>string</td>\n<td>The candidate's national identity number.</td>\n</tr>\n<tr>\n<td>certificate_of_good_conduct_serial_number</td>\n<td>string</td>\n<td>The serial number listed in the candidate's certificate of good conduct. Extracted from the document via OCR.</td>\n</tr>\n<tr>\n<td>is_id_verified</td>\n<td>boolean</td>\n<td>Flag that indicates whether the candidate's ID number has been verified.</td>\n</tr>\n<tr>\n<td>is_confirmed</td>\n<td>boolean</td>\n<td>Flag that indicates whether the candidate's phone number and account details have been verified.</td>\n</tr>\n<tr>\n<td>is_consent_provided</td>\n<td>boolean</td>\n<td>Flag that indicates whether the candidate provided consent when their account was being created.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","candidates"],"host":["{{hostname}}"],"query":[{"key":"user_phone_number","value":"254797168810"}],"variable":[]}},"response":[],"_postman_id":"e844d903-a420-4795-9c53-ebb92b140ab2"},{"name":"References","id":"d1130c85-32a6-437a-be9c-c682992866b5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"raw","raw":"{\n    \"user\": {\n        \"username\": \"254797168810\",\n        \"first_name\": \"Antony\",\n        \"last_name\": \"Kaguara\",\n        \"national_id\": \"27657762\",\n        \"date_of_birth\": null,\n        \"email\": \"support@gethomespace.com\",\n        \"service_type_code\": \"OTH\",\n        \"is_consent_provided\": true\n        },\n    \"references\": [\n            {\n            \"first_name\": \"Antony\",\n            \"last_name\": \"Kaguara\",\n            \"phone_number\": \"12154601124\",\n            \"work_place_name\": \"HomeSpace\",\n            \"reference_role\": \"P\"\n            },\n            {\n            \"first_name\": \"Jane\",\n            \"last_name\": \"Doe\",\n            \"phone_number\": \"254797168810\",\n            \"work_place_name\": \"Amazon\",\n            \"reference_role\": \"DM\"\n            }\n        ]\n}","options":{"raw":{"language":"json"}}},"url":"{{hostname}}/api/v1/references","description":"<p>This API is used to request for reference feedback on a given candidate. The candidate information is passed in the body of the request along with the contact information for the candidate's two references.</p>\n<h6>Request Body</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user.username</td>\n<td>string (required)</td>\n<td>The candidate's phone number.</td>\n</tr>\n<tr>\n<td>user.first_name</td>\n<td>string (required)</td>\n<td>The candidate's first name.</td>\n</tr>\n<tr>\n<td>user.last_name</td>\n<td>string (required)</td>\n<td>The candidate's last name.</td>\n</tr>\n<tr>\n<td>user.national_id</td>\n<td>string (required)</td>\n<td>The candidate's national identity number.</td>\n</tr>\n<tr>\n<td>user.date_of_birth</td>\n<td>string (required)</td>\n<td>The candidate's date of birth.</td>\n</tr>\n<tr>\n<td>user.email</td>\n<td>string (optional)</td>\n<td>The candidate's email address.</td>\n</tr>\n<tr>\n<td>user.service_type_code*</td>\n<td>string (optional)</td>\n<td>The type of service being provided by the candidate.</td>\n</tr>\n<tr>\n<td>user.is_consent_provided</td>\n<td>boolean (required)</td>\n<td>Flag indicating whether the candidate has provided consent for account creation.</td>\n</tr>\n<tr>\n<td>references.first_name</td>\n<td>string (required)</td>\n<td>The first name of the candidate's reference.</td>\n</tr>\n<tr>\n<td>references.last_name</td>\n<td>string (required)</td>\n<td>The last name of the candidate's reference.</td>\n</tr>\n<tr>\n<td>references.phone_number</td>\n<td>string (required)</td>\n<td>The phone number of the candidate's reference.</td>\n</tr>\n<tr>\n<td>references.work_place_name</td>\n<td>string (required)</td>\n<td>The name of the business where the candidate's reference currently works.</td>\n</tr>\n<tr>\n<td>references.reference_role</td>\n<td>string (required)</td>\n<td>A key describing the nature of the reference's relationship to the candidate. Accepted values are: (\"DM\"=Direct Manager), (\"P\"=Peer).</td>\n</tr>\n</tbody>\n</table>\n</div><p><b>Notes:</b>\n<br />\n* Please reference the /config API response to retrieve the mapping of service names to service_type_code.\n<br />\n** Feedback quality is generated from the rating submitted by the reference\n<br />\n-We support exactly 2 references per candidate.</p>\n<h6>Success Response Body</h6>\nList of reference objects.\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>The reference's first name.</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>string</td>\n<td>The reference's last name.</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td>string</td>\n<td>The reference's phone number.</td>\n</tr>\n<tr>\n<td>feedback_rating</td>\n<td>string</td>\n<td>The rating provided by the candidate's reference.</td>\n</tr>\n<tr>\n<td>feedback_comments</td>\n<td>string</td>\n<td>The comments submitted by the this reference.</td>\n</tr>\n<tr>\n<td>feedback_quality</td>\n<td>string</td>\n<td>A summary of the general sentiment from the reference's feedback comments. Available values are: Positive | Neutral | Negative.</td>\n</tr>\n<tr>\n<td>work_place_name</td>\n<td>string</td>\n<td>The name of the business where the candidate's reference currently works.</td>\n</tr>\n<tr>\n<td>reference_role</td>\n<td>string</td>\n<td>A key describing the nature of the reference's relationship to the candidate. Accepted values are: (\"DM\"=Direct Manager), (\"P\"=Peer).</td>\n</tr>\n<tr>\n<td>national_id</td>\n<td>string</td>\n<td>The reference's national identification number.</td>\n</tr>\n<tr>\n<td>is_reference_national_id_verified</td>\n<td>boolean</td>\n<td>Flag indicating whether the reference's national ID number has been verified.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","references"],"host":["{{hostname}}"],"query":[{"disabled":true,"key":"user","value":"254797168810"}],"variable":[]}},"response":[],"_postman_id":"d1130c85-32a6-437a-be9c-c682992866b5"},{"name":"References","id":"9026462b-b76f-44b5-8b71-f0504556a830","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{hostname}}/api/v1/references?user_phone_number=12154601124","description":"<p>This API takes a candidate's phone number and returns the list of their references.</p>\n<h6>Request Parameter</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user_phone_number</td>\n<td>integer (required)</td>\n<td>The candidate's phone number. Format: country_code_phone_number. Example: 254722124560.</td>\n</tr>\n</tbody>\n</table>\n</div><h6>Success Response Body</h6>\nList of reference objects.\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>first_name</td>\n<td>string</td>\n<td>The reference's first name.</td>\n</tr>\n<tr>\n<td>last_name</td>\n<td>string</td>\n<td>The reference's last name.</td>\n</tr>\n<tr>\n<td>phone_number</td>\n<td>string</td>\n<td>The reference's phone number.</td>\n</tr>\n<tr>\n<td>feedback_rating</td>\n<td>string</td>\n<td>The rating provided by the candidate's reference.</td>\n</tr>\n<tr>\n<td>feedback_comments</td>\n<td>string</td>\n<td>The comments submitted by the this reference.</td>\n</tr>\n<tr>\n<td>feedback_quality</td>\n<td>string</td>\n<td>A summary of the general sentiment from the reference's feedback comments. Available values are: Positive | Neutral | Negative.</td>\n</tr>\n<tr>\n<td>work_place_name</td>\n<td>string</td>\n<td>The name of the business where the candidate's reference currently works.</td>\n</tr>\n<tr>\n<td>reference_role</td>\n<td>string</td>\n<td>A key describing the nature of the reference's relationship to the candidate. Accepted values are: (\"DM\"=Direct Manager), (\"P\"=Peer).</td>\n</tr>\n<tr>\n<td>national_id</td>\n<td>string</td>\n<td>The reference's national identification number.</td>\n</tr>\n<tr>\n<td>is_reference_national_id_verified</td>\n<td>boolean</td>\n<td>Flag indicating whether the reference's national ID number has been verified.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","references"],"host":["{{hostname}}"],"query":[{"key":"user_phone_number","value":"12154601124"}],"variable":[]}},"response":[],"_postman_id":"9026462b-b76f-44b5-8b71-f0504556a830"},{"name":"Background Checks","id":"5451cc6b-aab2-4cd3-8623-ac99d2cc80d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{hostname}}/api/v1/background-checks?user_phone_number=254797168810","description":"<p>This API takes a candidate's phone number and returns their background check status information.</p>\n<h6>Request Parameter</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user_phone_number</td>\n<td>integer (required)</td>\n<td>The candidate's phone number. Format: country_code_phone_number. Example: 254722124560.</td>\n</tr>\n</tbody>\n</table>\n</div><h6>Success Response Body</h6>\nList of background check objects.\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>integer</td>\n<td>The object id for this background check object.</td>\n</tr>\n<tr>\n<td>user_id</td>\n<td>integer</td>\n<td>The candidate's user_id</td>\n</tr>\n<tr>\n<td>id_verification_status</td>\n<td>string</td>\n<td>The current status of the candidate's ID verification check. Expected values are: (\"A\"=\"Approved\"),(\"D\"=\"Declined\"),(\"U\"=\"Unknown\").</td>\n</tr>\n<tr>\n<td>police_verification_status</td>\n<td>string</td>\n<td>The current status of the candidate's certificate of good conduct serial number verification check. Expected values are: (\"A\"=\"Approved\"),(\"D\"=\"Declined\"),(\"U\"=\"Unknown\").</td>\n</tr>\n<tr>\n<td>references_verification_status</td>\n<td>string</td>\n<td>The current status of the candidate's reference feedback submission. Expected values are: (\"A\"=\"Approved\"),(\"U\"=\"Unknown\").</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>string</td>\n<td>The date the background check object was created.</td>\n</tr>\n<tr>\n<td>updated_at</td>\n<td>string</td>\n<td>The date the background check object was last updated.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","background-checks"],"host":["{{hostname}}"],"query":[{"key":"user_phone_number","value":"254797168810"}],"variable":[]}},"response":[],"_postman_id":"5451cc6b-aab2-4cd3-8623-ac99d2cc80d0"},{"name":"Document","id":"c7d3e613-b27f-4ec5-8ce8-332118f39834","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"},{"warning":"This is a duplicate header and will be overridden by the Content-Type header generated by Postman.","key":"Content-Type","value":"multipart/form-data","type":"text"}],"body":{"mode":"formdata","formdata":[{"key":"name","value":"sample_id","type":"text"},{"key":"type_code","value":"CGC","type":"text"},{"key":"file","type":"file","src":"/Users/antonykaguara/Documents/Jobs/HomeSpace/Product/Sample Documents/sample_cgc.jpg"},{"key":"username","value":"254797168810","type":"text"}]},"url":"{{hostname}}/api/v1/documents","description":"<p>This API supports uploading candidate files for digital storage and OCR(optional).</p>\n<h6>Request Parameter (Form Data)</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>name</td>\n<td>string (optional)</td>\n<td>The user-friendly name of the document.</td>\n</tr>\n<tr>\n<td>type_code*</td>\n<td>string (required)</td>\n<td>The type_code that describes the type of document being uploaded.</td>\n</tr>\n<tr>\n<td>file</td>\n<td>string (required)</td>\n<td>The file to be uploaded.</td>\n</tr>\n<tr>\n<td>username</td>\n<td>string (required)</td>\n<td>The candidate's phone number.</td>\n</tr>\n</tbody>\n</table>\n</div><p><b>Notes:</b></p>\n<p>*Supported type codes are:</p>\n<ul>\n<li>\"IDD\" = \"ID Document\"</li>\n<li>\"CGC\" = \"Certificate of Good Conduct\"</li>\n<li>\"R\" = \"Curriculum Vitae\"</li>\n<li>\"CI\" = \"Certification Level I\"</li>\n<li>\"CII\" = \"Certification Level II\"</li>\n<li>\"CIII\" = \"Certification Level III\"</li>\n<li>\"NSSF\" = \"NSSF Card\"</li>\n<li>\"NHIF\" = \"NHIF Card\"</li>\n<li>\"WP\" = \"Work Photo\"</li>\n<li>\"WC\" = \"Work Contract\"</li>\n<li>\"ICD\" = \"Incorporation Document\"</li>\n<li>\"TD\" = \"Tax Document\"</li>\n</ul>\n\n<p>We currently support OCR on Certificate of Good Conduct documents. To request for OCR support for a new document type listed above, please send us 5 samples of that document to <a href=\"mailto:admin@gethomespace.com\">admin@gethomespace.com</a>.</p>\n<h6>Success Response Body</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user_id</td>\n<td>integer</td>\n<td>The candidate's user_id.</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>The user-friendly name of the document.</td>\n</tr>\n<tr>\n<td>type_code</td>\n<td>string</td>\n<td>The type_code that describes the type of document being uploaded.</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>string</td>\n<td>The date the file was created.</td>\n</tr>\n<tr>\n<td>url</td>\n<td>string</td>\n<td>The URL that contains the document ID.</td>\n</tr>\n<tr>\n<td>view_url</td>\n<td>string</td>\n<td>The file download URL.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","documents"],"host":["{{hostname}}"],"query":[],"variable":[]}},"response":[],"_postman_id":"c7d3e613-b27f-4ec5-8ce8-332118f39834"},{"name":"Documents","id":"c490f448-1b06-41ce-b7f4-ada077b1180d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{hostname}}/api/v1/documents?user_phone_number=254797168810","description":"<p>This API returns the list of documents associated with the candidate.</p>\n<h6>Request Parameter</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user_phone_number</td>\n<td>integer (required)</td>\n<td>The candidate's phone number. Format: country_code_phone_number. Example: 254722124560.</td>\n</tr>\n</tbody>\n</table>\n</div><h6>Success Response Body</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user_id</td>\n<td>integer</td>\n<td>The candidate's user_id.</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>The user-friendly name of the document.</td>\n</tr>\n<tr>\n<td>type_code</td>\n<td>string</td>\n<td>The type_code that describes the type of document being uploaded.</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>string</td>\n<td>The date the file was created.</td>\n</tr>\n<tr>\n<td>url</td>\n<td>string</td>\n<td>The URL that contains the document ID.</td>\n</tr>\n<tr>\n<td>view_url</td>\n<td>string</td>\n<td>The file download URL.</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["api","v1","documents"],"host":["{{hostname}}"],"query":[{"key":"user_phone_number","value":"254797168810"}],"variable":[]}},"response":[],"_postman_id":"c490f448-1b06-41ce-b7f4-ada077b1180d"},{"name":"Document Image","id":"6de94da5-d9f0-4bce-92bc-036cfabe0295","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","type":"text","value":"Bearer {{token}}"}],"body":{"mode":"formdata","formdata":[]},"url":"{{hostname}}/api/v1/document-image?document_id=76&user_phone_number=254797168810","description":"<p>This API returns the file object for the document associated with the document_id and the candidate provided in the request.</p>\n<h6>Request Parameter</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>document_id</td>\n<td>integer (required)</td>\n<td>The candidate's document id.</td>\n</tr>\n<tr>\n<td>user_phone_number</td>\n<td>integer (required)</td>\n<td>The candidate's phone number. Format: country_code_phone_number. Example: 254722124560.</td>\n</tr>\n</tbody>\n</table>\n</div><h6>Success Response Body</h6>\n\n<p>File Object.</p>\n","urlObject":{"path":["api","v1","document-image"],"host":["{{hostname}}"],"query":[{"key":"document_id","value":"76"},{"key":"user_phone_number","value":"254797168810"}],"variable":[]}},"response":[],"_postman_id":"6de94da5-d9f0-4bce-92bc-036cfabe0295"},{"name":"Background Report PDF","id":"07eb6341-e428-4c25-a3b5-99ace23bf3dd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"Bearer {{token}}","type":"text"}],"url":"{{hostname}}/api/v1/report/pdf?user_phone_number=254797168810","description":"<p>This API returns the candidate's background check report as a PDF file.</p>\n<h6>Request Parameter</h6>\n\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field Name</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>user_phone_number</td>\n<td>integer (required)</td>\n<td>The candidate's phone number. Format: country_code_phone_number. Example: 254722124560.</td>\n</tr>\n</tbody>\n</table>\n</div><h6>Success Response Body</h6>\n\n<p>PDF File.</p>\n","urlObject":{"path":["api","v1","report","pdf"],"host":["{{hostname}}"],"query":[{"key":"user_phone_number","value":"254797168810"}],"variable":[]}},"response":[],"_postman_id":"07eb6341-e428-4c25-a3b5-99ace23bf3dd"}]}