Projects
A workspace is the tenant: members, billing, and API tokens. Owners and admins invite people by email. The invited address must match a verified account. Roles are owner, admin, and member. A project is the namespace inside that workspace for Programs and Executions.
Every workspace has a default project. Clients and the CLI use it when you omit a project. Pass projectId to createClient, or send X-Trigora-Project-Id, to target another project.
import { createClient } from "@trigora/client";
const trigora = createClient({ token: process.env.TRIGORA_TOKEN, projectId: "proj_...",});
const { projects } = await trigora.listProjects();createProject creates another project in the workspace the token can access. The dashboard project picker lists projects and can create one. Local trigora dev starts with a default project. Projects created through the local /v1/projects API are persisted in the local SQLite state.