Backend REST API
JobHax Backend REST API
Overview
JobHax is a platform that allows you to track your job applications, their statuses, take some notes about them and see some metrics about your job seeking process. The JobHax API provides functionality to developers to create users, add job applications and all the related endpoints to manage them. All of the API endpoints work with JSON bodies and responses.
Postman Collection
You can explore all the endpoints of the JobHax API and their usage using this Postman collection.
Authentication
The JobHax API uses Django framework's OAuth system. In order to get an access_token to access the endpoints, you'll need to have a JobHax client_id and a JobHax client_secret. You can get an access_token either using email&password or using a third party access token like (Google access token, LinkedIn access token etc.)
How to generate Google access_token for test purposes:
For testing purposes Google's playground system can be used for generating dummy access tokens to use on JobHax API.
You will need to grant following permissions:
To generate a Google access token, please use this link
Get an access_token with using 3rd party provider
Request
Authenticates the user and returns JobHax access_token and refresh_token related datas.
Request Body
Response
Get an access_token with using email&password
Request
Authenticates the user and returns JobHax access_token and refresh_token related datas.
Request Body
Response
API ENDPOINTS
USER RELATED API ENDPOINTS
Request
Registers a new user with using the details provided in the body
Request Body
Response
Request
To logout the current user
Request Body
Response
Request
To refresh the JobHax access_token if its expired.
Request Body
Response
Request
To refresh user's GMAIL token. (In such case; user's gmail token refreshed or mail_read permission granted after login)
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Request Body
Response
Request
To get user's linkedinIn basic profile if the user logged in with their linkedIn profile.
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Response
Request
To sync user job application emails to JobHax DB if the user logged in with their google account
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Response
Request
To get all the emails that read from user's inbox which are related with the job applications
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Response
JOB APPLICATION RELATED API ENDPOINTS
Request
To get user's all job applications from JobHax DB.
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Response
Request
To get all the job application statuses from JobHax DB.
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Response
Request
To get status change history of a specific job application
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
URI Parameters
Key
Value
Required
jobapp_id
job-app-id
Y
Response
Request
To add a new Job Application.
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Request Body
Response
Request
To update a Job Application's status or rejection status. 'status_id' and 'rejected' parameters are optional but at least one of them should be sent.
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Request Body
Response
Request
To delete a specific Job Application.
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Request Body
Response
Request
To get details of a Job Application
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
URI Parameters
Key
Value
Required
jobapp_id
job-app-id
Y
Response
Request
To add a note to a specific Job Application
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Request Body
Response
Request
To update a note of a specific Job Application
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Request Body
Response
Request
To delete a note from a Job Application
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Request Body
Response
Request
To get details of a Job Application
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
URI Parameters
Key
Value
Required
jobapp_id
job-app-id
Y
Response
METRICS RELATED API ENDPOINTS
Request
To get count of user's job application
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Response
Request
To get count of user's job application by month
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Response
Request
To get count of user's job application by month with total
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Response
Request
To get count of user's job application by its statuses
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Response
Request
To get unique words in job applications
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Response
Request
To get job application count by job title and status
Request Headers
Key
Value
Required
Authorization
Bearer jobhax-access-token
Y
Response
ERROR CODES
Error Code
Description
Explanation
0
-
-
1
Invalid credentials
-
2
User profile not found.
-
3
Error occured while updating the google token.
-
4
Google token has expired. Please refresh Google token.
-
5
Couldnt logout user...
-
6
Could not login... Please check your credentials...
-
7
Passwords do not match
-
8
That username is taken
-
9
That email is being used
-
10
Invalid parameters...
-
11
Record not found...
-
Last updated
Was this helpful?