List keys
GEThttps://api.inferencebureau.com/v1/keys?project=inference-bureau
The team's project keys, newest first, with when each was last used and when it expires. Active keys only unless you ask for the rest.
Query
- projectstringoptional
A project id or slug.
- environmentstringoptional
An environment id or name, such as
production. - include_inactivebooleanoptional
trueadds revoked and expired keys. - limitintegeroptional
1 to 100; default 50.
- cursorstringoptional
The previous page's
next_cursor.
Response
- data[].statusstringrequired
active,paused(refused until resumed; listed with the active keys),revoked, orexpired(pastexpires_at). - data[].paused_at, data[].paused_reasonstring | nullrequired
When and why a paused key was paused:
manual,spend_anomaly(alerts.pauseOnAnomaly) orsecret_scanning(found in a public repository). - data[].key_hintstringrequired
Prefix and last four characters. The secret itself is never listed.
- data[].permissionsstring[]required
Extra permissions, such as
auditor:manage(Auditor Permissions). - data[].last_used_atstring | nullrequired
Last request made with the key.
- has_more, next_cursorrequired
Pass
next_cursorascursorfor the next page.