PBJ SDK documentation

Projects & tasks

Create project workspaces, add rich tasks, and move execution through a typed Kanban workflow.

Projects

ts
const project = await pbj.projects.create({
  name: "PBJ SDK",
  description: "Type-safe access to the PBJ platform",
});

const projects = await pbj.projects.list({ limit: 20 });
await pbj.projects.update(project.id, { description: "SDK v1" });

Tasks

ts
const task = await pbj.tasks.create({
  projectId: project.id,
  title: "Prepare SDK release",
  description: {
    format: "markdown",
    content: "**Review** the release checklist.",
  },
  priority: "high",
  status: "todo",
  dueDate: "2026-12-01T00:00:00Z",
});

await pbj.tasks.updateStatus(task.id, "in_progress");

Task workflow

Task statuses are todo, in_progress, and done. The SDK validates status values but does not force a transition order.

todoin_progressdone

Rich text

Descriptions explicitly identify markdown or html content. Sanitize rich text before rendering it in a browser.