Crewmojo API
The Crewmojo API is a RESTful based API that allows uploading of employee data as well as accessing reports. The OAuth2 authorisation framework is used to grant access to the Crewmojo API.
Last updated
The Crewmojo API is a RESTful based API that allows uploading of employee data as well as accessing reports. The OAuth2 authorisation framework is used to grant access to the Crewmojo API.
Last updated
Please speak to us if you are interested in enabling this feature.
Once we have configured your API access, your Crewmojo Admin users will have access to the Client ID and Secret Key within Crewmojo.
Log on to Crewmojo web app
Go to Company Settings (under hamburger menu in top left hand corner)
Click on the 'Integrations' Icon:
Locate the API Authentication card:
Copy the Client ID, then view the Secret Key by clicking the 'eye' icon and copy that. Note that each access to the Secret Key is logged.
To access a Crewmojo API endpoint you will firstly use the Client ID and Secret Key to get a short-lived Access Token. The Access Token is valid for 30 minutes after which time you will need to retrieve another Access Token.
Each time you request a new Access Token, all previous Access Tokens are invalidated.
A valid access methodology is to request a new Access Token before each API call to Crewmojo.
Endpoints:
Test
https://api.test.crewmojo.com/v1/oauth/token
Production
https://api.crewmojo.com/v1/oauth/token
Request Type:
POST
Content Type:
application/x-www-form-urlencoded
or
application/json
Crewmojo API will accept either.
Request Body:
grant_type
string, must be client_credentials
client_id
string, retrieved from Crewmojo Admin (above)
client_secret
string, retrieved from Crewmojo Admin (above)
Response:
200
Success
Content-Type: application/json
400
Invalid Data error
Content-Type: application/json
401
Unauthorized error
Content-Type: application/json
500
Internal Server Error
Content-Type: application/json