Skip to content
LakeSharkDocumentation
PROVIDERS / DOCUMENTATION

Connected Providers

Create, health-check, discover models for, update, and retire provider connections.

Provider connections belong to the active workspace.

Console workflow

  1. Open Providers → Provider Catalog.
  2. Choose a provider and select Connect.
  3. Enter a recognizable Connection name.
  4. Enter the required credential and endpoint fields.
  5. Save the connection.
  6. Open Connected Providers.
  7. Select Check health. The console first requests model discovery for that connection.
  8. 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 (requires providers.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 calls POST /v1/providers/connections/{connection_id}/test (requires providers.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

  1. Update the provider connection with the new credential.
  2. Run Check health.
  3. Confirm model discovery.
  4. Test representative questions in Try it out.
  5. 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.