PROVIDERS / DOCUMENTATION
Connected Providers
Create, health-check, discover models for, update, and retire provider connections.
Provider connections belong to the active workspace.
Console workflow
- Open Providers → Provider Catalog.
- Choose a provider and select Connect.
- Enter a recognizable Connection name.
- Enter the required credential and endpoint fields.
- Save the connection.
- Open Connected Providers.
- Select Check health. The console first requests model discovery for that connection.
- If discovery is supported, inspect the returned models. For protocols without discovery, the console falls back to a connection test; it cannot populate a discovered-model list.
Provider credentials are protected by LakeShark and are not returned through the customer API after storage.
What the console check verifies
Check health is a two-path diagnostic, not a model-generation test:
- The console first calls
GET /v1/providers/connections/{connection_id}/models(requiresproviders.read). For discovery-capable protocols, a successful nonempty model list is displayed as ready. The console does not additionally call the connection-test endpoint in that case. - When the discovery response explicitly says
discovery_supported: false, the console callsPOST /v1/providers/connections/{connection_id}/test(requiresproviders.write) and reports the test result. It does not infer model names for that protocol. - A failed discovery request is reported as an error; it does not automatically fall back to the test endpoint. A successful discovery or test does not prove that a later generation request for a particular model will succeed.
The test endpoint can also be called directly by an authorized client. The backend uses outbound destination validation for these requests, so a blocked destination is distinct from a missing model or provider rate limit. See provider troubleshooting.
API
Base URL:
https://lakeshark.dev/api/providers
| Operation | Endpoint | Permission |
|---|---|---|
| Provider Catalog | GET /v1/providers/catalog |
providers.read |
| Connected Providers | GET /v1/providers/connections |
providers.read |
| Connect | POST /v1/providers/connections |
providers.write |
| Update | PATCH /v1/providers/connections/{connection_id} |
providers.write |
| Remove | DELETE /v1/providers/connections/{connection_id} |
providers.write |
| Check health | POST /v1/providers/connections/{connection_id}/test |
providers.write |
| Discover models | GET /v1/providers/connections/{connection_id}/models |
providers.read |
Credential rotation
- Update the provider connection with the new credential.
- Run Check health.
- Confirm model discovery.
- Test representative questions in Try it out.
- Revoke the old credential at the provider.
Question Keys are separate from provider credentials, so application Question API credentials do not change during provider credential rotation.