/api/orgs/{org_id}/keys/{key_id}/storageGet a key's storage setting
One key's storage mode, its expiry cap and what it stores today. Its creator or an org admin.
Authentication: Bearer API key in the Authorization header
Path parameters
org_idstringrequiredYour organization id (uuid).
GET /api/whoamireturns it.key_idstringrequiredThe API key id.
Responses
200The setting.
Response
key_idstringmodeenumfollowstores what the organization stores;do_not_storestores nothing for this key.expiry_daysinteger | nullThe key's expiry cap.
org_storage_onbooleanorg_default_daysinteger | nullmax_expiry_daysintegereffectiveobjectWhat the key does today.
effective
storesbooleanexpiry_daysinteger | null
401Missing, unknown or revoked API key.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
404No such key.
Response
errorstringrequiredHuman-readable message.
codestringStable machine reason, when the route defines one (for example
pro_required).actionstringStable remediation action, when the route defines one.
detailsobjectCustomer-safe string facts the caller needs to act (for example a suggested identifier).
Request
curl 'https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/keys/6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33/storage' \
-H "Authorization: Bearer <YOUR_API_KEY>"Response
{
"key_id": "6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33",
"mode": "do_not_store",
"expiry_days": null,
"org_storage_on": true,
"org_default_days": 30,
"max_expiry_days": 3650,
"effective": {
"stores": false,
"expiry_days": null
}
}https://api.experientiallabs.ai/api/orgs/3f6c2a1e-8b7d-4c2a-9e51-6a0d4b2f7c10/keys/6b1d2f4e-3c8a-4f0e-9a21-7e5c0d9b4a33/storage