TypeScript SDK (Preview)
The TypeScript SDK for Taskade is in preview. Here's how to call the API today with plain HTTP, and what the generated client will look like.
Call the API today (no SDK required)
const token = process.env.TASKADE_TOKEN!;
// List your projects (RESTful v1)
const res = await fetch("https://www.taskade.com/api/v1/me/projects", {
headers: { Authorization: `Bearer ${token}` },
});
const { items } = await res.json();const token = process.env.TASKADE_TOKEN!;
// Prompt an agent (action-based v2 — every call is a POST)
const res = await fetch("https://www.taskade.com/api/v2/promptAgent", {
method: "POST",
headers: {
Authorization: `Bearer ${token}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ spaceId, agentId, prompt: "Summarize standup notes" }),
});
const { summary } = await res.json();async function taskade(operation: string, body: unknown) {
const res = await fetch(`https://www.taskade.com/api/v2/${operation}`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.TASKADE_TOKEN}`,
"Content-Type": "application/json",
},
body: JSON.stringify(body),
});
if (!res.ok) throw new Error(`${operation} failed: ${res.status}`);
return res.json();
}
const { items } = await taskade("listSpaces", {});cURL & Python
What the SDK will look like
Resources
Resource
Description
Last updated
Was this helpful?