Install the SDK
Add The package ships with full TypeScript type definitions — no separate
@abloatai/decks to your project. The package is published to npm and works with any Node.js project that supports ES modules or CommonJS.@types package is required.Get your API key
The SDK authenticates every request with a server-side API key tied to your Ablo workspace.For persistent configuration, add the line above to your shell profile (e.g.
- Sign in to tryablo.com and open your workspace.
- Navigate to Settings → API.
- Copy your API key.
~/.zshrc) or use a .env file with a tool like dotenv.Create your first deck
Create a file called The
deck.ts (or deck.mjs for plain JavaScript) and paste the following code. It creates a deck with one slide that contains a headline text layer and a bar chart showing two quarters of revenue data.at object positions each layer on the 1920 × 1080 slide canvas using pixel coordinates: x and y set the top-left corner, w and h set the width and height.Run the script
Execute the script with Node.js. If you are using TypeScript, compile first with A successful run prints the new deck’s ID to your console:Open your Ablo workspace — the deck named Q3 Board Update will appear in your library, ready to preview, share, or refine.
tsc or run directly with ts-node or tsx:What’s next
Now that you have a working deck, explore the rest of the SDK:Authentication
Learn all the ways to pass your API key and keep it secure.
API Reference
Browse the full surface area — decks, slides, layers, themes, and more.