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.
POST/api/get-access-token
POST https://api.amlwatcher.com/api/get-access-token HTTP/1.1Host: api.amlwatcher.comContent-Type: application/jsonContent-Length: 68{"email":"email","password":"password"}
Request
Parameters | Required | Type | Description |
---|---|---|---|
Yes | String | Email of registered user. Example: [email protected] | |
password | Yes | String | Password assigned against registered email of user. Min: 8 characters Example: amlWatcher@!# |
Response
Parameters | Description |
---|---|
error | Whenever there is an error in your request, this param will have details of that error; otherwise it’ll remain empty. |
status | The status field is set to either “SUCCESS” or “FAIL”, indicating that the API request resulted in a successful or failure/error condition respectively. |
data | An array containing the actual response elements. |
Sample Response
{
"error": false,
"status": "SUCCESS",
"data": {
"access_token": "Random Access Token"
}
}