List a customer's keys
curl --request GET \
--url https://api.aireserve.com/v1/customers/{customerId}/keys \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aireserve.com/v1/customers/{customerId}/keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aireserve.com/v1/customers/{customerId}/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"customer_id": "<string>",
"keys": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"customer_id": "<string>",
"org_id": "<string>",
"key_prefix": "<string>",
"key_suffix": "<string>",
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}Customer keys
List a customer's keys
Every key minted for this end customer — customer-level keys and sub keys (org_id set) — newest first, revoked keys included with status: "revoked". Never returns key material: only the prefix and suffix you would use to tell keys apart.
GET
/
v1
/
customers
/
{customerId}
/
keys
List a customer's keys
curl --request GET \
--url https://api.aireserve.com/v1/customers/{customerId}/keys \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aireserve.com/v1/customers/{customerId}/keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aireserve.com/v1/customers/{customerId}/keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"customer_id": "<string>",
"keys": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"customer_id": "<string>",
"org_id": "<string>",
"key_prefix": "<string>",
"key_suffix": "<string>",
"status": "active",
"created_at": "2023-11-07T05:31:56Z",
"last_used_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z"
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"param": "<string>",
"code": "<string>"
}
}Authorizations
Your AI Reserve API key (aireserve_api_…) from the API Keys page in the portal (https://portal.aireserve.com/keys).
Path Parameters
Your end-customer id, URL-encoded — the same opaque id you would otherwise send as x-aireserve-customer (1–128 printable characters).
Required string length:
1 - 128