api-keys
List API keys
List the signed-in user’s non-secret logical API key metadata.
GET
/
api
/
api-keys
List API keys
curl --request GET \
--url https://api.aixy-gateway.com/api/api-keys \
--cookie gateway_session=import requests
url = "https://api.aixy-gateway.com/api/api-keys"
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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"name": "<string>",
"workload": "<string>",
"project_id": "<string>",
"team_id": "<string>",
"key_prefix": "<string>",
"key_hint": "<string>",
"current_version": 123,
"status": "active",
"created_at": "<string>",
"expires_at": "<string>",
"disabled_at": "<string>",
"last_used_at": "2023-11-07T05:31:56Z",
"object": "gateway.api_key"
}
],
"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": {}
}
}⌘I
List API keys
curl --request GET \
--url https://api.aixy-gateway.com/api/api-keys \
--cookie gateway_session=import requests
url = "https://api.aixy-gateway.com/api/api-keys"
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', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "<string>",
"name": "<string>",
"workload": "<string>",
"project_id": "<string>",
"team_id": "<string>",
"key_prefix": "<string>",
"key_hint": "<string>",
"current_version": 123,
"status": "active",
"created_at": "<string>",
"expires_at": "<string>",
"disabled_at": "<string>",
"last_used_at": "2023-11-07T05:31:56Z",
"object": "gateway.api_key"
}
],
"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": {}
}
}