If you want to auto-login for an Operator/Contact in the Output Desk application in a browser using their API Access Key, follow the steps below:
1. Obtain the Login Token by utilizing the API Access Key.
2. Embed the Login Token in the URL of the Login page to enable the user to automatically log in to the browser.
Url: /api/getlogintoken
Method: GET
curl Example Requests
curl -k -X GET -H “Accesskey-od:{accesskey}” ‘{your domain url}/api/getlogintoken‘
Response:
“result”:”2CLMO8NkEChaFErf”
}
Now pass this login token and the operator’s email address generated by the token in your domain URL like this:
{domain url}/login?token={login token}&email={operator email address}.
Ex: http://localhost:8234/login?token=2CLMO8NkEChaFErf&email=raga@srimax.com
It will automatically redirect you to the OutputDesk tickets page.
**Note: The login token is valid for a one-time login only. For subsequent logins, you will need to generate a new login token using the curl command.