All requests to MachShip API require a valid API token. This token can be generated by logging in to MachShip and adding a new token to your user account.
Generate a valid API token
Firstly, you need to access your user list by navigating to the Admin menu and View Users.
Alternatively, you can access the page via the following link.
Note: Should your user do not have the permission to access this page then you will be unable to successfully access this link.
You can then see the user list that you can see with your logged in user.
Click on the cog corresponding to the user you want to create the API token and choose View User.
On the View User screen, please scroll down to the bottom until you see below section. This sample screenshot shows that there is no API Token for the user yet. To create one, please click on Create Api Token button.
It will pop up a dialog like the below image.
You will need to type in a Token Name, it needs to be unique as it will be a way for MachShip to identify and show up in the history logs.
Click on Create Token button to generate the API Token.
If you see this message, it means the name is already taken, please enter another name.
When the token is generated successfully, you will see a screen similar to the below:
Note down the Token value and you are ready to connect to the MachShip API. Should you need to obtain the Token value at a later date simply select View Api Token from the cog.
The Token information will then appear as below: