Skip to content
LakeSharkDocumentation
API REFERENCE / DOCUMENTATION

Providers API

Provider catalog, connections, model discovery, testing, and credential rotation.

Base URL:

https://lakeshark.dev/api/providers

Endpoints

Method Path Permission
GET /v1/providers/catalog providers.read
GET /v1/providers/connections providers.read
POST /v1/providers/connections providers.write
PATCH /v1/providers/connections/{connection_id} providers.write
DELETE /v1/providers/connections/{connection_id} providers.write
POST /v1/providers/connections/{connection_id}/test providers.write
GET /v1/providers/connections/{connection_id}/models providers.read

Create

Field Required Notes
name Yes Workspace-unique display name
provider_id Yes Active provider catalog ID
protocol Provider dependent Protocol profile
api_token Provider dependent Secret, accepted but not returned
base_url Provider dependent Custom endpoint when supported

Example:

{
  "name": "Primary provider",
  "provider_id": "openai",
  "protocol": "openai",
  "api_token": "replace-with-provider-secret"
}

Do not store provider-secret request bodies in source control or logs.

Test and models

Use POST /test to verify the connection and GET /models to retrieve discoverable models.

Not every provider exposes model discovery.