Auth API
A user has to get an authentication token before process any API.
User can generate an authentication token. He can use that token to authenticate all the other apis.
This Authentication token will be valid for 1 hour.
This Authentication token will be valid for 1 hour.
Host
- URL:
How to Generate Authentication token?
Auth token generation request has to be sent to our REST endpoint i.e. /accountServices/AccountService/authToken
using POST method.
Sample Request
{ "authentication": { "customerId":"189433", "sKey":"iqNkzaea", "username":"test docs" } }
Sample Response
{ "customerId": "189433", "status": "success", "responseCode": "1", "result": { "code": "200", "description": "Token generated successfully" }, "username": "test docs", "authToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxODk0MzMiLCJyb2xlIjoiQ3VzdG9tZXIiLCJpc3MiOiJQWiIsImV4cCI6MTY1MzQxODg2Nywia2V5IjoiaXFOa3phZWEifQ.Kvova1lFK23LQialoPeIRw2XVaL5ikenZOJXNuNe9bI", "timestamp": "2022-05-24 23:31:10" }