Overview
Official Sazabi SDK for JavaScript and TypeScript.
Sazabi provides official SDKs to simplify integration with the API. Use them to manage threads, send logs, and interact with your observability data programmatically.
Available SDKs
Installation
npm install @sazabi/sdkQuick example
import { Sazabi } from "@sazabi/sdk";
const client = new Sazabi({
secretKey: process.env.SAZABI_SECRET_KEY,
});
// List threads
const threads = await client.threads.list();
// Send a message
const thread = await client.threads.create({
title: "Error investigation",
});
await client.messages.create(thread.id, {
content: "What errors happened in the last hour?",
});Community SDKs
The community has created SDKs for additional languages. These are not officially maintained by Sazabi but may be useful for your use case.
Community SDKs are maintained by third parties and may not support all API features. Check the repository for compatibility and support information.
If you have created an SDK for Sazabi and would like it listed here, open a pull request or contact us.
Building your own integration
If there is no SDK for your language, you can integrate directly with the REST API. The API uses standard HTTP conventions and JSON payloads.
Key resources:
- API Authentication - API key setup and usage
- API Endpoints - Available endpoints and resources
- OpenAPI Spec - Machine-readable API definition for code generation
Most HTTP client libraries and code generators can work with the OpenAPI specification to create typed clients for any language.