Hi.
I’m trying to retrieve the list of Keys generated and I’m able to do so using the cURL command:
curl --location --request GET ‘http://localhost:8080/tyk/keys’ --header ‘x-tyk-authorization: your_secret_defined_in_tyk.conf’.
I’m returned with a list of Keys:
{
“keys”: [
“0b32f3f109d15656”,
“54154fb538185c0a”,
“df8813a90f90e6fa”
]
}
Now, I’m trying to access the quotas and the rate limiting data setup for that particular key using the cURL command:
curl --location --request GET ‘http://localhost:8080/tyk/keys/0b32f3f109d15656’ --header ‘x-tyk-authorization: your_secret_defined_in_tyk.conf’.
Ideally, I’m supposed to be returned with the rate limiting and quotas set for that particular Key, but instead i get a 404(Not Found) Error. API Call Response:
{
“status”: “error”,
“message”: “Key not found”
}
One thing to note here is that when I’m using the GUI, to get the Key using the Key hash, it works perfectly, but when I’m trying to get it using REST API, it fails and returns 404.
Help would be really appreciated.
Thanks,
Prashanth (@selvamp)