FlowDot API Client
@flowdot.ai/api is the official TypeScript API client and shared type definitions for the FlowDot platform. It's used internally by the FlowDot CLI, MCP Server, and Native app — and you can install it directly if you are building your own integration on top of the FlowDot REST API.
TL;DR - Quick Summary
- Install:
npm install "@flowdot.ai/api" - Package: npmjs.com/package/@flowdot.ai/api
- Source: github.com/ElliotTheGreek/flowdot-api
- What it is: TypeScript HTTP client + strict types for every FlowDot REST endpoint
- Who uses it: Anyone building a custom integration; the CLI and MCP Server depend on it transitively
Installation
Install via npm:
npm install "@flowdot.ai/api"
Or with yarn / pnpm:
yarn add "@flowdot.ai/api"
pnpm add "@flowdot.ai/api"
Requires Node.js 20 or newer. The package ships as ESM with TypeScript declarations.
Quick Start
Create a client instance with your API token and make your first call:
import { FlowDotApiClient } from '@flowdot.ai/api';
const client = new FlowDotApiClient({
baseUrl: 'https://flowdot.ai',
token: process.env.FLOWDOT_TOKEN,
});
// List your workflows
const workflows = await client.listWorkflows();
// Execute a workflow by ID
const run = await client.executeWorkflow(workflows[0].id, {
inputs: { prompt: 'Hello from the API client' },
});
console.log(run.outputs);
Get an API Token
- Sign in at flowdot.ai
- Go to Settings → API Tokens
- Create a new token with the scopes you need
- Store it in an environment variable (never commit it to source control)
When to Use This
Install @flowdot.ai/api directly if:
- You're building a custom integration — a Next.js app, a Slack bot, a backend service — that needs to call FlowDot programmatically.
- You want full TypeScript types for every workflow, app, recipe, custom node, and toolkit API response.
- You're writing an internal tool and want the same HTTP layer the official FlowDot CLI uses.
You probably don't need to install this directly if:
- You're using the FlowDot CLI — it already bundles the API client.
- You're using the FlowDot MCP Server — same story, the server depends on this package internally.
- You just want to call FlowDot from an AI assistant — install the MCP Server instead.