Skip to main content

Get Access Token

The /get-access-token endpoint provides a JWT authentication token for authorization. To acquire a valid token, the user must make a request to the /get-access-token endpoint of AML Watcher using their email and password.

info

Each access token is valid for three hours (180 minutes)

After availing the token, the user needs to create or get API key using the access token.

Endpoint: https://api.amlwatcher.com/api/get-access-token

Method: POST

Sample Request
POST /api/get-access-token HTTP/1.1
Host: api.amlwatcher.com
Content-Type: application/json
Content-Length: 68

{
"email":"email",
"password":"password"
}

Request

ParametersRequiredTypeDescription
emailYesStringEmail of registered user.
Example: [email protected]
passwordYesStringPassword assigned against registered email of user.
Min: 8 characters
Example: amlWatcher@!#

Response

ParametersDescription
errorWhenever there is an error in your request, this param will have details of that error; otherwise it’ll remain empty.
statusThe status field is set to either “SUCCESS” or “FAIL”, indicating that the API request resulted in a successful or failure/error condition respectively.
dataAn array containing the actual response elements.
Sample Response
{
"error": false,
"status": "SUCCESS",
"data": {
"access_token": "Random Access Token"
}
}