MicroticaMicrotica

Projects (SDK)

List and read the Microtica projects your credential can access with the SDK's projects namespace, the entry point for every other resource.

The projects namespace lists and reads the projects your credential can access. A project id is the first argument to almost every other namespace method, so you'll often start here.

Methods

MethodReturns
projects.list()The projects your credential can access.
projects.get(projectId)One project's full record.

Examples

List your projects and use the first id elsewhere:

TypeScript
import { Microtica } from "@microtica/sdk";

const microtica = new Microtica({ token: process.env.MICROTICA_TOKEN! });

const projects = await microtica.projects.list();
const projectId = projects[0].id;

const project = await microtica.projects.get(projectId);
console.log(project.name, project.paymentPlan?.name);

Next steps

On this page