{"activeVersionTag":"latest","latestAvailableVersionTag":"latest","collection":{"info":{"_postman_id":"ffe35b7c-8c6e-43cd-b3a8-d62251be0ceb","name":"JobHax Backend API Documentation","description":"This postman collection and documentation represents the endpoints for the JobHax backend API.\n\n# Overview\nBase URL of the JobHax backend is [https://backend.jobhax.com/api](https://backend.jobhax.com/api). All the endpoints should be concatenated to this base url.\n\n\nIf you want to run this Postman collection on your local machine, click on \"Run in Postman\" button and save this collection to your local. After cloning the collection, please review [this](https://learning.getpostman.com/docs/postman/environments_and_globals/manage_environments/) link for how to set environment variables for yourself.\n\n# Authentication\nJobHax backend uses [oAuth2](https://oauth.net/2/) authentication mechanism, to access most of the endpoints, a [Bearer token](https://tools.ietf.org/html/rfc6750) should be gotten by using one of the authentication endpoints.\n\n# Response Format\nAll the successful responses (HTTP 200 or 201) are JSON formatted like below;\n\n``` json\n{\n    \"success\": boolean,\n    \"error_code\": int,\n    \"error_message\": string,\n    \"data\": JSON object or JSON array depending on the endpoint\n}\n```  \n\n# Pagination \nSome of the endpoints includes pagination data. In order to keep the performance high for some services, pagination is required. If the endpoint has a pagination, the following JSON object will be added to the root of the JSON response;\n\n```\n\"pagination\": {\n        \"current_page\": 1,\n        \"page_count\": 1,\n        \"total_count\": 3\n    }\n```    \n\nFor possible error codes and HTTP responses please check the error handling section.\n\n# Error Handling\n## HTTP responses\nYou can check the possible HTTP responses in [this](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status) link.\n\n## Error Codes\nError Code | Description | Explanation\n--- | --- | ---\n0 | - | -\n1 | Invalid credentials | -\n2 | User profile not found. | -\n3 | Error occured while updating the google token. | -\n4 | Google token has expired. Please refresh Google token. | -\n5 | Couldnt logout user... | -\n6 | Could not login... Please check your credentials... | -\n7 | Passwords do not match | -\n8 | That username is taken | -\n9 | That email is being used | -\n10 | Invalid parameters... | -\n11 | Record not found... | -\n12 | Invalid username... | -\n13 | Email verification required. | -\n14 | Email already verified. | -\n15 | Activation key expired. | -\n16 | Account already linked... | -\n17 | User not supported for this action... | -\n99 | You didn't pass reCAPTCHA challenge! You'll need to sigin again! | -\n101 | Poll could not be found... | -\n102 | Missing item_id parameter... | -\n103 | Poll answer could not be found... | -\n104 | Blog could not be found... | -\n\n\n\n# Endpoints","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","isPublicCollection":false,"owner":"3396184","team":507760,"collectionId":"ffe35b7c-8c6e-43cd-b3a8-d62251be0ceb","publishedId":"SVtTzUiz","public":true,"publicUrl":"https://documenter-api.postman.tech/view/3396184/SVtTzUiz","privateUrl":"https://go.postman.co/documentation/3396184-ffe35b7c-8c6e-43cd-b3a8-d62251be0ceb","customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"documentationLayout":"classic-double-column","version":"8.11.6","publishDate":"2019-10-09T20:33:44.000Z","activeVersionTag":"latest","documentationTheme":"light","metaTags":{},"logos":{}},"statusCode":200},"environments":[{"name":"Production","id":"b04aec80-fcab-41ed-8baf-1927a2c79c69","owner":"3396184","values":[{"key":"url","value":"https://backend.jobhax.com/api","enabled":true},{"key":"jobhax_client_id","value":"jobhax_client_id","enabled":true},{"key":"jobhax_client_secret","value":"jobhax_client_secret","enabled":true},{"key":"jobhax_access_token","value":"jobhax_access_token","enabled":true}],"published":true}],"user":{"authenticated":false,"permissions":{"publish":false}},"run":{"button":{"js":"https://run.pstmn.io/button.js","css":"https://run.pstmn.io/button.css"}},"web":"https://www.getpostman.com/","team":{"logo":"https://res.cloudinary.com/postman/image/upload/t_team_logo_pubdoc/v1/team/ebe29cbc75bd528693441067681a26cb309ecf49b11d7c61a6173768f9515140","favicon":""},"isEnvFetchError":false,"languages":"[{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"HttpClient\"},{\"key\":\"csharp\",\"label\":\"C#\",\"variant\":\"RestSharp\"},{\"key\":\"curl\",\"label\":\"cURL\",\"variant\":\"cURL\"},{\"key\":\"dart\",\"label\":\"Dart\",\"variant\":\"http\"},{\"key\":\"go\",\"label\":\"Go\",\"variant\":\"Native\"},{\"key\":\"http\",\"label\":\"HTTP\",\"variant\":\"HTTP\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"OkHttp\"},{\"key\":\"java\",\"label\":\"Java\",\"variant\":\"Unirest\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"Fetch\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"jQuery\"},{\"key\":\"javascript\",\"label\":\"JavaScript\",\"variant\":\"XHR\"},{\"key\":\"c\",\"label\":\"C\",\"variant\":\"libcurl\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Axios\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Native\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Request\"},{\"key\":\"nodejs\",\"label\":\"NodeJs\",\"variant\":\"Unirest\"},{\"key\":\"objective-c\",\"label\":\"Objective-C\",\"variant\":\"NSURLSession\"},{\"key\":\"ocaml\",\"label\":\"OCaml\",\"variant\":\"Cohttp\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"cURL\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"Guzzle\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"HTTP_Request2\"},{\"key\":\"php\",\"label\":\"PHP\",\"variant\":\"pecl_http\"},{\"key\":\"powershell\",\"label\":\"PowerShell\",\"variant\":\"RestMethod\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"http.client\"},{\"key\":\"python\",\"label\":\"Python\",\"variant\":\"Requests\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"httr\"},{\"key\":\"r\",\"label\":\"R\",\"variant\":\"RCurl\"},{\"key\":\"ruby\",\"label\":\"Ruby\",\"variant\":\"Net::HTTP\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"Httpie\"},{\"key\":\"shell\",\"label\":\"Shell\",\"variant\":\"wget\"},{\"key\":\"swift\",\"label\":\"Swift\",\"variant\":\"URLSession\"}]","languageSettings":[{"key":"csharp","label":"C#","variant":"HttpClient"},{"key":"csharp","label":"C#","variant":"RestSharp"},{"key":"curl","label":"cURL","variant":"cURL"},{"key":"dart","label":"Dart","variant":"http"},{"key":"go","label":"Go","variant":"Native"},{"key":"http","label":"HTTP","variant":"HTTP"},{"key":"java","label":"Java","variant":"OkHttp"},{"key":"java","label":"Java","variant":"Unirest"},{"key":"javascript","label":"JavaScript","variant":"Fetch"},{"key":"javascript","label":"JavaScript","variant":"jQuery"},{"key":"javascript","label":"JavaScript","variant":"XHR"},{"key":"c","label":"C","variant":"libcurl"},{"key":"nodejs","label":"NodeJs","variant":"Axios"},{"key":"nodejs","label":"NodeJs","variant":"Native"},{"key":"nodejs","label":"NodeJs","variant":"Request"},{"key":"nodejs","label":"NodeJs","variant":"Unirest"},{"key":"objective-c","label":"Objective-C","variant":"NSURLSession"},{"key":"ocaml","label":"OCaml","variant":"Cohttp"},{"key":"php","label":"PHP","variant":"cURL"},{"key":"php","label":"PHP","variant":"Guzzle"},{"key":"php","label":"PHP","variant":"HTTP_Request2"},{"key":"php","label":"PHP","variant":"pecl_http"},{"key":"powershell","label":"PowerShell","variant":"RestMethod"},{"key":"python","label":"Python","variant":"http.client"},{"key":"python","label":"Python","variant":"Requests"},{"key":"r","label":"R","variant":"httr"},{"key":"r","label":"R","variant":"RCurl"},{"key":"ruby","label":"Ruby","variant":"Net::HTTP"},{"key":"shell","label":"Shell","variant":"Httpie"},{"key":"shell","label":"Shell","variant":"wget"},{"key":"swift","label":"Swift","variant":"URLSession"}],"languageOptions":[{"label":"C# - HttpClient","value":"csharp - HttpClient - C#"},{"label":"C# - RestSharp","value":"csharp - RestSharp - C#"},{"label":"cURL - cURL","value":"curl - cURL - cURL"},{"label":"Dart - http","value":"dart - http - Dart"},{"label":"Go - Native","value":"go - Native - Go"},{"label":"HTTP - HTTP","value":"http - HTTP - HTTP"},{"label":"Java - OkHttp","value":"java - OkHttp - Java"},{"label":"Java - Unirest","value":"java - Unirest - Java"},{"label":"JavaScript - Fetch","value":"javascript - Fetch - JavaScript"},{"label":"JavaScript - jQuery","value":"javascript - jQuery - JavaScript"},{"label":"JavaScript - XHR","value":"javascript - XHR - JavaScript"},{"label":"C - libcurl","value":"c - libcurl - C"},{"label":"NodeJs - Axios","value":"nodejs - Axios - NodeJs"},{"label":"NodeJs - Native","value":"nodejs - Native - NodeJs"},{"label":"NodeJs - Request","value":"nodejs - Request - NodeJs"},{"label":"NodeJs - Unirest","value":"nodejs - Unirest - NodeJs"},{"label":"Objective-C - NSURLSession","value":"objective-c - NSURLSession - Objective-C"},{"label":"OCaml - Cohttp","value":"ocaml - Cohttp - OCaml"},{"label":"PHP - cURL","value":"php - cURL - PHP"},{"label":"PHP - Guzzle","value":"php - Guzzle - PHP"},{"label":"PHP - HTTP_Request2","value":"php - HTTP_Request2 - PHP"},{"label":"PHP - pecl_http","value":"php - pecl_http - PHP"},{"label":"PowerShell - RestMethod","value":"powershell - RestMethod - PowerShell"},{"label":"Python - http.client","value":"python - http.client - Python"},{"label":"Python - Requests","value":"python - Requests - Python"},{"label":"R - httr","value":"r - httr - R"},{"label":"R - RCurl","value":"r - RCurl - R"},{"label":"Ruby - Net::HTTP","value":"ruby - Net::HTTP - Ruby"},{"label":"Shell - Httpie","value":"shell - Httpie - Shell"},{"label":"Shell - wget","value":"shell - wget - Shell"},{"label":"Swift - URLSession","value":"swift - URLSession - Swift"}],"layoutOptions":[{"value":"classic-single-column","label":"Single Column"},{"value":"classic-double-column","label":"Double Column"}],"versionOptions":[],"environmentOptions":[{"value":"0","label":"No Environment"},{"label":"Production","value":"3396184-b04aec80-fcab-41ed-8baf-1927a2c79c69"}],"canonicalUrl":"https://documenter.gw.postman.com/view/metadata/SVtTzUiz"}