Docs

TypeScript quickstart

Create a task with the Beta TypeScript SDK. The SDK is version 0.x and is in Beta; its interface may change.

import { Quill } from "@quillstack/sdk";

const quill = new Quill({ token: process.env.QUILL_TOKEN });
const task = await quill.tasks.create({ queue: "emails", payload: { template: "welcome", userId: "u_123" } });
console.log(task.id);

Related: tasks · retry policy · API reference