-
Notifications
You must be signed in to change notification settings - Fork 0
API Reference JavaScript
drrobl0xx edited this page Jul 28, 2026
·
3 revisions
Pure ESM, no build step. Requires Node.js 18+.
import { JokelboardClient } from '@jokelboard/js';
const client = new JokelboardClient({ token: process.env.JOKELBOARD_TOKEN });| Option | Type | Default | Description |
|---|---|---|---|
token |
string |
required | API token (jkb_...) |
baseUrl |
string |
https://api.jokelboard.com/api/v1 |
Override base URL |
timeout |
number |
10000 |
Request timeout in ms |
retryOnRateLimit |
boolean |
true |
Auto-retry on 429 |
maxRetries |
number |
3 |
Max retry attempts |
Returns all boards accessible with your token.
const boards = await client.listBoards();Returns a single board.
const board = await client.getBoard('board-id');Returns all lists on a board.
const lists = await client.getLists('board-id');const card = await client.getCard('board-id', 'card-id');const card = await client.createCard('board-id', 'list-id', 'Fix login', {
categoryId: 'P1',
labels: [{ name: 'bug', color: '#ff5e5e' }],
description: 'Steps to reproduce...',
});Updates card fields including custom field values.
await client.updateCard('board-id', 'card-id', {
title: 'Updated title',
fieldValues: { 'discord-id': '123456789' },
});await client.moveCard('board-id', 'card-id', 'done-list-id');await client.deleteCard('board-id', 'card-id');Returns the shareable URL for a card.
const link = await client.getCardLink('board-id', 'card-id');
console.log(link.url);await client.addComment('board-id', 'card-id', 'On it.');const items = await client.getVaultItems('board-id');const plugin = client.plugin('plugin-id', 'plugin-token');
await plugin.getData(boardId, cardId);
await plugin.setData(boardId, cardId, { key: 'value' });