Best Practices
Follow best practices to avoid being rate-limited and triggering unnecessary updates.
Rate Limits
Header
Description
Size Limits
Property type
Limit
const client = new PineClient({ accessToken: "YOUR_TOKEN" });
const card = await client.cards.create.mutate({
data: {
title: [
{
// depth of 1
type: "heading",
heading: { color: "gray" },
children: [
// depth of 2
{
type: "heading",
heading: { color: "gray" },
children: [
// depth of 3
{
type: "heading",
heading: { color: "gray" },
children: [
// depth of 4 (exceeds depth limit of 4)
{
type: "heading",
heading: { color: "gray" },
content: [
// element 1
{ type: "text", text: { text: "..." } },
// ...
// element 101 (exceeds element limit of 100)
{
type: "text",
text: {
// text (exceeds character limit of 1000 characters)
text: ".".repeat(1001)
}
}
],
children: []
}
]
}
]
}
]
}
]
// ...
}
});
Last updated