SDKs
Official SDKs let you integrate Clarive into your applications with typed responses, automatic retries, and built-in error handling. Available for C#, Python, and TypeScript.
Installation
| Language | Install | Runtime |
|---|---|---|
| C# | dotnet add package ClariveSDK |
.NET 9+ |
| Python | pip install clarive-sdk |
Python 3.10+ |
| TypeScript | npm install clarive-sdk |
Node 18+ |
Quick Start
C#
var client = new ClariveClient(httpClient, new ClariveOptions { ApiKey = "cl_..." });
var entry = await client.GetEntryAsync(entryId);
Python
async with ClariveClient(api_key="cl_...") as client:
entry = await client.get_entry(entry_id)
TypeScript
const client = new ClariveClient({ apiKey: "cl_..." });
const entry = await client.getEntry(entryId);
Features
- Typed errors — catch
ClariveNotFoundError,ClariveValidationError, andClariveRateLimitErrorby name instead of parsing status codes. - Automatic retries — exponential backoff with jitter and a circuit breaker to avoid hammering failing services. On by default, easy to turn off.
- Credential safety — API keys are omitted from logs and serialization output.
- HTTPS enforced — with an opt-out for local development.
Source and docs: github.com/pinkroosterai/ClariveSDK