Docs

Docs

cPod SDK

The typed access layer for the cPod platform.

One SDK for your organization’s entire data model and operations — in TypeScript, Python, Go, and .NET. Authenticated, authorized, masked, and audited by the platform automatically.

42EDM domains123entities4languages
first call
$pnpm add "github:ZySec-AI/cpod-sdk#path:sdks/typescript"
import { CpodClient } from "@cpod/sdk";

// 1. Open Keycloak — your app starts the login (the SDK builds the URL):
const { loginUrl } = CpodClient.beginLogin({
  backendUrl: "https://api.cyberpod.app",
  returnTo: "https://app.example.com/auth/callback",
});
// → redirect the browser to loginUrl (Keycloak)

// 2. Back on /auth/callback?code=… — swap the one-time code for a token:
const { accessToken, refreshToken } = await CpodClient.exchangeCode({
  backendUrl: "https://api.cyberpod.app",
  code, // from the callback query
});

// 3. Zero credentials: build the client and run as that user.
const client = CpodClient.fromToken(accessToken, { refreshToken });
const people = await client.people.persons.list();
console.log(people.data);

What you can do

Browse the docs