List Api Keys
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/api-keys \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/api-keys"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"key_prefix": "<string>",
"scopes": [
"<string>"
],
"allowed_cidrs": [
"<string>"
],
"is_active": true,
"expires_at": "2023-11-07T05:31:56Z",
"rotated_at": "2023-11-07T05:31:56Z",
"locked_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"object": "api_key"
}
],
"has_more": true,
"total": 123,
"object": "list"
}API keys
List Api Keys
The keys your key created, newest first. An admin session lists every key of the workspace.
GET
/
api
/
v1
/
api-keys
List Api Keys
curl --request GET \
--url https://{tenant_id}.api.useago.com/api/v1/api-keys \
--header 'X-API-Key: <api-key>'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/api-keys"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://{tenant_id}.api.useago.com/api/v1/api-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"key_prefix": "<string>",
"scopes": [
"<string>"
],
"allowed_cidrs": [
"<string>"
],
"is_active": true,
"expires_at": "2023-11-07T05:31:56Z",
"rotated_at": "2023-11-07T05:31:56Z",
"locked_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"created_at": "2023-11-07T05:31:56Z",
"object": "api_key"
}
],
"has_more": true,
"total": 123,
"object": "list"
}