Skip to main content

Get API Keys

Users can access a list of their all existing API keys by sending a request to this endpoint. This feature allows them to manage and monitor the API keys associated with their account.

Endpoint: https://api.amlwatcher.com/api/api-keys

Method: GET

Sample Request
GET /api/api-keys HTTP/1.1
Host: api.amlwatcher.com
Authorization: Bearer Token

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
{
"data": {
"api_keys": [
{
"created_at": "Wed, 04 Oct 2023 09:31:44 GMT",
"expires_at": "Fri, 10 Sep 2123 09:31:44 GMT",
"key": "sr-4d634862658df53e618b486924d634862658df53e618b48692"
},
{
"created_at": "Wed, 04 Oct 2023 09:31:58 GMT",
"expires_at": "Thu, 05 Oct 2023 09:31:58 GMT",
"key": "sr-4d634862658df53e618b486924d634862658df53e618b48692"
},
{
"created_at": "Mon, 09 Oct 2023 15:05:53 GMT",
"expires_at": "Wed, 11 Oct 2023 15:05:53 GMT",
"key": "sr-4d634862658df53e618b486924d634862658df53e618b48692"
}
]
},
"error": false,
"status": "SUCCESS"
}