Skip to content

Overview

The Imbrace SDK is the official client for the Imbrace Gateway, available in TypeScript and Python. Both SDKs wrap the same Gateway API with the same resource namespaces, the same auth model, and the same retry/error semantics — pick whichever language fits your stack.

Toggle the language tabs anywhere on this site once and the rest of the docs remember your choice.

Key Features

FeatureDetail
Type safetyTypeScript types and Python type hints across every resource
Two credential typesapiKey or accessToken — see Authentication
Auto retry429 and 5xx retry with exponential backoff, no config needed
Streaming AISSE / async iterator for streamChat and AI completions
Async & sync (Py)ImbraceClient (sync) and AsyncImbraceClient (async)
Cancellation (TS)AbortSignal propagation for in-flight cancellation

Install

Terminal window
npm install @imbrace/sdk

Hello, world

import { ImbraceClient } from "@imbrace/sdk"
const client = new ImbraceClient({ accessToken: "acc_your_token" })
const me = await client.platform.getMe()

Available resources

Every namespace is on both SDKs. Methods follow the language conventions — client.aiAgent.streamChat() in TS, client.ai_agent.stream_chat() in Python.

NamespacePurpose
client.aiAgent / client.ai_agentStreaming AI chat, embeddings, parquet, chat-client sub-API
client.chatAi / client.chat_aiAssistant CRUD (create/update/delete/list assistants)
client.activepiecesWorkflow automation — flows, triggers, runs
client.boardsCRM boards — CRUD, items, fields, search, segments, CSV; KH folders & files
client.platformUsers, organizations, permissions
client.contacts, client.conversations, client.messages, client.channelContact / channel layer
client.aiOpenAI-compatible completions and embeddings

For the complete list and method reference, see Resources.

When to pick which credential

API KeyAccess Token
Whose backend is Imbrace?A feature inside your backendImbrace IS your backend
Whose users?YoursImbrace’s
Best forServer-to-server, internal scripts, CRM integrationsUser-facing apps where each end-user logs in

Full decision tree: Authentication →.

Next steps