Operations
Find the organization ID in Organization settings > General.
Access
- Any member, and an API key of a project in the organization, can read the key status.
- Only an owner or admin, in a signed-in session, can set, test, or remove the key. An API key cannot change it, even with write scopes.
- A change and a test are written to the organization’s audit log. The log never holds the key.
Set a key
422 with the reason, and nothing is saved.
openrouter is the only provider.
Response
No response contains the key. Squasher stores it encrypted and returns only its last four characters.ai_provider_keyisnullwhen the organization has no key.statusisfailingafter OpenRouter refused the key during a run.last_errorsays why. A passing test setsactiveagain.month_to_date_cost_usdis the model cost that ran on your key this month (UTC).POST .../testalso returnstest: { "passed": true, "message": "..." }.