Skip to main content

API - Authenticate requests

Steps to update your API integration following the mandatory authentication changes implemented on 1st May 2024.

Tom Higgs avatar
Written by Tom Higgs
Updated this week

Important: This authentication change is now live and mandatory as of 1st May 2024. The legacy GET authentication method and URL apikey parameter are no longer supported. If you have not updated your integrations, you will receive 401 unauthorised responses.

If you're receiving the error The user is using a deprecated API Authentication method. Please refer to the Help Guides for API Authentication before this is deactivated and impacts connectivity, you need to update your API integration.

Our API authentication method has changed as part of an update to our security policies. If you have any third-party integrations using the public API, please advise them that they need to apply this update. These changes do not apply to Courier Developer Portal integrations.

The changes affect how you authenticate and authorise API requests:

  • Authentication (Getting an API Key) – Now uses a POST endpoint where the username and password are sent in the request body (not in the URL)

  • Authorisation (Using the API Key) – The API key must now be passed in the request header named ms-apikey (not in the URL)

Quick migration checklist

If you have existing integrations using the old authentication method, follow these steps:

  • Update your authentication call from GET to POST

  • Move username and password from URL parameters to JSON body

  • Update all API requests to pass the API key in the ms-apikey header

  • Remove any apikey= parameters from your URLs

  • Test your integration in a development environment

  • Deploy the updated integration to production

  • Monitor for any 401 unauthorised errors


Deprecated API - Mintsoft WMS app

If you're using the legacy Mintsoft WMS mobile app, you'll see the above error message. To resolve these error messages in the Import Errors screen, you need to migrate to the Access Mintsoft app.


Obtaining an API Key

To get an API key please complete these steps:

{
"Username": "Mintsoft username",
"Password": "login password"
}
  • Click Try it out!.

  • The response will contain the API key.

    • Your API key will have a 24-hour expiry on it.


Setting a static API Key

These next steps need to be completed by the 3PL/ Admin of the database. To extend the 24-hour expiry and set a static API Key, please do the following:

  1. Go to Settings then either Warehouse User Accounts or Client User Accounts.

  2. Search for the user that needs a static API Key.

  3. Click Actions then Set API Key to Never Expire.

If you cannot see the API Key column on the account page:

  1. Click the Column Visibility dropdown (located in the middle of the page).

  2. Find and select the API Key option.

  3. Click Apply to show the column.


Authorising your API request

Each request needs to pass the API key in the header for other endpoints.
Example: Creating an order via GET /api/Order/{id}.

Header name

Header value

ms-apikey

62e649a6-b48b-4e27-adbf-ebb0430451cc

Note: Please unsure you are using the most recent version of the Mintsoft app and courier print tool.

Did this answer your question?