Using the JS SDK

The Syncd SDK offers the most flexibility for integrating with the Figma API directly in your codebase.

Installation

Choose your preferred package manager to install the SDK:

pnpm add syncd-sdk
npm install syncd-sdk
yarn add syncd-sdk

Overview

The Syncd JS SDK provides a simple and intuitive way to interact with the 3rd party API’s. It offers a set of classes and functions that allow you to create, update, and delete webhooks, as well as retrieve data.

Note: each customer can have multiple webhooks. You will need to store the ID’s of each endpoint we return on every request. This will be how you preform CRUD operations the webhook in the future.

Initializing the SDK:

import { SyncdSdk } from "syncd-sdk";

const syncdClient = new SyncdSdk({
  apiKey: "YOUR_API_KEY",
});