settings
sync
ai
Ai Test Key
T2.4 — Test a BYOK API key without persisting it.
User pastes a key, clicks Test, gets a real validation result instead of guessing whether it'll work. Server makes a 1-token upstream call to the provider's API; the key is NEVER stored and NEVER logged.
Inherits the /api/ai/* rate limit (60/min per user) from middleware/rate_limit.py:_LIMITS.
post/api/ai/test-key
Request
- Base URL: https://www.oxfordledge.com (the document declares no server; this is the origin it was published from)
- URL: https://www.oxfordledge.com/api/ai/test-key
- Auth: none declared
Response
Successful Response
Settings Action Response required
Shared loose response_model for settings/AI-keys/sync/preferences routes. These routes have varied response shapes (per-action) + are user-private (not part of the public typed-client API). Declared for OpenAPI doc coverage.
Changes
No recorded changes to this operation across all 1 revision of this API.