This API endpoint allows you to log in to the system by sending a POST request with the necessary credentials.
//A code snippet on how to consume the APIvar raw ="";var requestOptions = { method:'POST', body: raw, redirect:'follow'};fetch("https://demo.backend.monicredit.com/api/v1/core/auth/login", requestOptions).then(response =>response.text()).then(result =>console.log(result)).catch(error =>console.log('error', error));
//A code snippet on how to consume the API<?php$curl =curl_init();curl_setopt_array($curl, array( CURLOPT_URL =>'https://demo.backend.monicredit.com/api/v1/core/auth/login', CURLOPT_RETURNTRANSFER =>true, CURLOPT_ENCODING =>'', CURLOPT_MAXREDIRS =>10, CURLOPT_TIMEOUT =>0, CURLOPT_FOLLOWLOCATION =>true, CURLOPT_HTTP_VERSION =>CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST =>'POST',));$response =curl_exec($curl);curl_close($curl);echo $response;
POST{{BaseURL}}/core/auth/login
If the login is successful, the API will return a response with a 200 status code and a JSON object containing the data of the authenticated user.