List your saved AI provider keys
Which providers your organisation has saved its own API key for, and when. Never the key. Owner or admin, signed in. Beta.
List your saved AI provider keys
curl --request GET \
--url https://app.mithunai.com/mithunai/api/v1/model-keys \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.mithunai.com/mithunai/api/v1/model-keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.mithunai.com/mithunai/api/v1/model-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"track": "<string>",
"data": [
{}
]
}Lists the providers your organisation has saved its own API key for, with when each was saved, replaced and last used. The response never contains a key, a prefix of one or its length.
track says whether answers use these keys (byok) or MITHUNAI’s (managed). Beta. See Your own AI provider keys.
Owner or admin only (credential.manage), from a signed-in console session: an API key is refused with 403.
Response
string
required
managed or byok.array
required
One entry per saved key:
provider (openai, anthropic or google), created_at,
updated_at, rotated_at and last_used_at.Last modified on November 12, 2026
List your saved AI provider keys
curl --request GET \
--url https://app.mithunai.com/mithunai/api/v1/model-keys \
--header 'Authorization: Bearer <token>'import requests
url = "https://app.mithunai.com/mithunai/api/v1/model-keys"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.mithunai.com/mithunai/api/v1/model-keys', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"track": "<string>",
"data": [
{}
]
}