SDKS & CLIENTS
SDKs & clients
Choose clients for the REST API and SSE. Check the published package separately from API schemas and protocol types.
TypeScript / JavaScript
Checking npm…Official REST SDK with authentication, typed operations, pagination, resumable SSE, Problem Details and Webhook verification.
- Package
@orbitspace/sdk- Stable version
- —
- Node.js
- >=22.18.0
- Public API
- /api/v1
The install command appears after the npm release metadata is verified.
REST clients for other languages
Generate base HTTP clients for Go, Python, Java and other languages from public OpenAPI. These are not yet published official SDKs. Follow the guides for SSE, authentication and recovery.
Backend example after installation
Use an authorized Workspace, Agent binding and least-privilege Token. Keep credentials on your backend, persist SSE cursors and manage subscriptions with AbortSignal.
import { OrbitSpaceClient, taskServiceCreateTask } from "@orbitspace/sdk";
const client = new OrbitSpaceClient({
baseUrl: "https://api.orbitspace.dev",
token: () => process.env.ORBITSPACE_API_TOKEN,
headers: { "X-OrbitSpace-Tenant": process.env.ORBITSPACE_TENANT_ID ?? "" },
});
const { data: task } = await taskServiceCreateTask({
client: client.transport,
body: { workspace_id: process.env.ORBITSPACE_WORKSPACE_ID!,
workspace_agent_binding_id: process.env.ORBITSPACE_BINDING_ID!,
input: "Summarize the supplied document.",
idempotency_key: crypto.randomUUID() },
throwOnError: true,
});
console.log(task.id);
const stop = AbortSignal.timeout(60_000);
for await (const event of client.watchTaskEvents(task.id!, { signal: stop })) {
console.log(event.id, event.event, event.data);
}Protobuf schemas & types
Buf distributes schemas and generated types. This does not enable gRPC or Connect on the REST/SSE service. Select the needed schema version in Buf. SDK and API image releases are independent.