Mettl is an Online Assessment Platform to conduct tests and measure talent. It provides content across psychometric assessments, aptitude tests and IT/Non-IT domain tests, along with a SaaS platform to conduct secure online assessments. It enables organizations to build winning teams by taking credible people decisions across two key areas: Hiring and Development.

Integration of Mettl in web application is quite easy and straight forward. For our integration, we will assume that a test has already been created in your Mettl Account. Please note that Mettl integration is a PAID API and can be purchased on https://mettl.com/
After paying for Mettl, we need to contact the Mettl Support who will provide us with a set of public and private API keys which we will be using to fetch the results of the test.

I have referred to the support documentation provided by them : DocumentationMettl provides us with many types of tests and test features but we are using only the basic test taking and fetching its result.

Mettl also provides us with a Demo Tool through which we can test our API Integration.

For the users to take the test, we will forward the users to the following link:

Please note that you need to have the email id used by the user to fetch the test results from Mettl.

To fetch the results from Mettl, we will use the following Javascript API :

Response on Success : JSON containing all details for a particular candidate

Response on Error : JSON containing all details for the error

Error Codes :

Complete example for getting Response via JavaScript API :