api-keys
List API key versions
List non-secret rotation and validity metadata for a logical API key.
GET
/
api
/
api-keys
/
{api_key_id}
/
versions
List API key versions
curl --request GET \
--url https://api.aixy-gateway.com/api/api-keys/{api_key_id}/versions \
--cookie gateway_session=import requests
url = "https://api.aixy-gateway.com/api/api-keys/{api_key_id}/versions"
headers = {"cookie": "gateway_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'gateway_session='}};
fetch('https://api.aixy-gateway.com/api/api-keys/{api_key_id}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"api_key_id": "<string>",
"version": 123,
"key_prefix": "<string>",
"key_hint": "<string>",
"created_at": "<string>",
"valid_until": "<string>",
"status": "current",
"object": "gateway.api_key_version"
}
],
"object": "list"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}⌘I
List API key versions
curl --request GET \
--url https://api.aixy-gateway.com/api/api-keys/{api_key_id}/versions \
--cookie gateway_session=import requests
url = "https://api.aixy-gateway.com/api/api-keys/{api_key_id}/versions"
headers = {"cookie": "gateway_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'gateway_session='}};
fetch('https://api.aixy-gateway.com/api/api-keys/{api_key_id}/versions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"api_key_id": "<string>",
"version": 123,
"key_prefix": "<string>",
"key_hint": "<string>",
"created_at": "<string>",
"valid_until": "<string>",
"status": "current",
"object": "gateway.api_key_version"
}
],
"object": "list"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}