Server Library
Process workspace data by using Pine's API client.
npm install @pinecards/serverimport { PineClient } from "@pinecards/server";
const client = new PineClient({ accessToken: "YOUR_TOKEN" });client.cards.list.query({ where: { limit: 500 } });Queries
const deck = await client.decks.read.query({ where: { id: "..." } });
const card = await client.cards.read.query({ where: { id: "..." } });const response = await client.decks.list.query({ where: { limit: 500 } });
if (response.cursor) {
const { data } = await client.decks.list.query({
where: { cursor: response.cursor }
});
}
Mutations
Fields
Field type
Value type
Webhooks
Field
Description
Last updated