# Zapier SDK: Connect your code files to 10,000+ apps

> Source: <https://zapier.com/blog/zapier-sdk-guide>
> Published: 2026-12-01 05:00:00+00:00

**Key takeaway:** The Zapier SDK is a TypeScript library that connects AI coding agents to 10,000+ app integrations with built-in OAuth, token refresh, and retries, and its code steps run up to 10 minutes on paid plans.

The Zapier SDK is a TypeScript library that gives AI coding agents access to more than 10,000+ pre-built app integrations in the Zapier directory. If you're an engineer, you already know why that's clutch. You can write loops, handle edge cases, and chain complex logic across your apps, while Zapier handles the OAuth, token refresh, retries, and each API's quirks.

Don't click away if you're non-technical, though. You don't need to know how to write code—or even know what an SDK is—to benefit. When you pair the Zapier SDK with something like Claude Code or Cursor, you can describe what you want in plain language, and your agent will write the code for you. That means you can do things in your apps that Zapier doesn't have a pre-built action for yet.

In this article, I'll explain what the Zapier SDK does, share prompts you can borrow to put it to work, and show you how to equip your coding agents with it.

**Tip:** The Zapier SDK is one of three ways to build Zaps and use 90,000+ triggers and actions from Zapier's catalog, directly from your AI tools. Use the Zapier SDK when you're working in code files. Use [__Zapier CLI__](https://docs.zapier.com/sdk/using-the-cli) when you're working in a terminal. And use [__Zapier MCP__](https://zapier.com/blog/zapier-mcp-guide/) to build using natural-language prompts from your AI agent. You get the same secure access to 10,000+ apps in every option. It's just that the surfaces differ.

**Table of contents:**

## What is the Zapier SDK?

In case you're not a developer, let's take a beat to untangle the terminology. [__SDK__](https://zapier.com/blog/sdk-meaning/) stands for software development kit, and anyone can build one. It's a collection of pre-built resources like APIs, sample code, and debugging tools that make it easier to write code.

The Zapier SDK is our flavor of that. It gives you connections to 10,000+ apps in our ecosystem, so you can carry out actions in your other tools or build Zaps that keep running on a schedule, a webhook, or an app event, all from your AI coding agent. You can also use it directly from a terminal and text editor.

Already have a Zap and just need more flexible logic? The SDK can be accessed inside [__Code by Zapier__](https://zapier.com/apps/code/integrations) steps, too (which you can edit from your AI agent or directly in Zapier). On paid plans, code steps can run for up to 10 minutes, so you don't have to worry about your requests timing out.

Just like a Zap begins when something happens in an app, triggers in the Zapier SDK let your code react to an event in real time without you writing integration glue for every new event source. And with actions, you can handle all the other work—like updating records, sending messages, and running whole sequences. The SDK also comes with authentication (verifying that your app has permission to access others), token refresh (auto-renewing those permissions before they expire), retries (re-running failed requests, so you don't have to), and API quirks (so you can call every app the same way).

Without something like the Zapier SDK, developers would have to wire up a separate [__API__](https://zapier.com/blog/sdk-vs-api) for every app they wanted their coding agent to work with. They'd also have to manually handle authentication: a process that takes time and could expose sensitive data or break integrations if anything's misconfigured.

You know how AI sometimes interprets the same prompt in different ways, or shifts its behavior over time? One advantage of building a code-based workflow with the SDK is that you can take AI out of the equation at runtime. Your coding agent writes the workflow once, and the code follows those instructions on subsequent runs, without asking an AI model to reinterpret your prompt every time.

For compliance-sensitive teams like HR, that predictability matters. Processes like offer letter generation, background check triggers, and I-9 initiations can follow consistent rules, while the SDK handles the app connections. Deploy that code as a Zap, and Zapier also watches every run, diagnosing failures and proposing fixes, which you can approve or let Zapier apply automatically.

Key features of Zapier SDK include:

- **More than 10,000 app integrations:** Access Zapier's full app ecosystem from your code. And if you need to go beyond pre-built actions,`fetch` gives you raw API endpoint access to around 3,600 apps. (Note: Direct API calls to raw endpoints aren't yet subject to org-level app and action restrictions.)
- **Deploy Zaps from code:** Turn your script into a code-backed Zap that Zapier hosts and runs on a schedule, webhook, or app event.
- **Flexible logic:** Write scripts with loops, conditionals, and error handling so your coding agent can make decisions, repeat tasks, and recover from failures without you babysitting it.
- **Built-in authentication:** Zapier verifies your app's permission to access other apps automatically, so you never have to handle auth yourself.
- **Portable connections:** Your agent works through your Zapier app connections, so it never handles an app's API keys. And you can switch coding agents anytime without rewiring auth.
- **Type-safe actions:** Full TypeScript support with generated types for every app and action gives you autocomplete and catches errors before runtime.
- **Automatic reliability:** The Zapier SDK handles token refresh, retries, and API differences across apps, so your code doesn't have to.
- **Triggers:** Your code can react to events in your apps without you having to poll each app's API.

Zapier SDK is available on [__all plans__](https://zapier.com/pricing), but Enterprise accounts need to opt in. Generally, each action, external call, and inbox-lease trigger costs one [__Zapier task__](https://zapier.com/blog/what-is-a-task-in-zapier). Learn more about __how the Zapier SDK is billed.__

## What you can do with Zapier SDK

Here are some ideas for putting the Zapier SDK to work.

### Run a nightly reconciliation

Say you're a founder who needs to match Stripe charges to HubSpot deals every night, flag mismatches, and route exceptions to Slack—across hundreds of records, with branching logic, hitting a Stripe endpoint Zapier doesn't have a pre-built action for.

With the Zapier SDK, you can use this prompt: "Every night at 2 a.m., pull the last 24 hours of Stripe charges, match each to a HubSpot deal by customer email, tag matches as 'reconciled,' and post mismatches to #finance-exceptions with the deal owner tagged." Your coding agent can deploy this as a Zap, so it runs every night on Zapier, with no server or cron job to manage.

### Build auth into your AI product without building auth

If you're a developer shipping an AI product, you need your users' apps to talk to each other. But building and maintaining auth infrastructure for every integration is a project in itself. With [__Zapier White Label__](https://zapier.com/developer-platform/white-label) (in limited access), your users connect their own app accounts through Zapier, and your code uses the Zapier SDK to act on their behalf.

With the Zapier SDK, you can build the integration from a prompt like this: "When a user connects their project management tool, sync tasks to their calendar and send a Slack summary at the end of each day."

### Get your vibe-coded creations to actually do things

Say you're using AI to vibe code a tool. The problem is it's running in a vacuum, disconnected from your other apps.

With the Zapier SDK, you can use prompts like these:

- "I built a morning briefing script. Make it pull from my email, calendar, and task manager and post a summary to Slack every day at 8 a.m. Deploy it as a Zap."
- "My project status dashboard captures updates but doesn't act on them. When the status of a project changes, automatically notify the right people in Slack."
- "Build a Zap that hooks up my content calendar so every time I add a new entry, it creates a draft in my CMS and adds a task to my project management tool."

### Automate HR workflows without exposing sensitive data

If you're in HR, you want to automate recruiting pipelines, onboarding workflows, and employee data syncs. But your data is too sensitive to send through AI every time a candidate is hired. With the Zapier SDK, your agent builds the workflow once. Then the data moves between your HRIS and ATS through your Zapier app connections. No AI model touches it on each run. And org-level app and action restrictions apply automatically to pre-built actions.

Try this prompt: "Build a Zap that triggers when a candidate is marked hired in our ATS. It should then create their profile in our HRIS and kick off the onboarding sequence."

### Use the Zapier SDK in a Code by Zapier step

You're building a Zap that checks open deals in your CRM against your accounting tool. Then it flags past-due accounts in your chat app. All this has to happen on a schedule, with pagination and retries, and without hard-coded credentials.

To get this up and running, enable the Zapier SDK in a Code by Zapier step. If you're on a paid plan, you'll be able to call your connected apps with up to 10 minutes of runtime. Zapier will handle the token refresh, retries, and credential security for you automatically.

What this might look like:

1. [__Schedule by Zapier__](https://zapier.com/apps/schedule/integrations) triggers the Zap every Monday morning.
2. Code by Zapier (with SDK enabled) runs the orchestration: 
  - Every open deal is pulled from HubSpot, paginating through results automatically.
  - For each deal, the code step looks up the account's latest invoice in QuickBooks.
  - Then it posts a single summary of past-due accounts to #collections in Slack.

If your code step grows to run the whole workflow, you can build it as a Zap instead.

For more information about enabling the SDK in Code by Zapier steps, visit our [__help docs__](https://help.zapier.com/hc/en-us/articles/44955499643917-Use-the-Zapier-SDK-in-Code-steps).

## How to get started with Zapier SDK

If you're new to Zapier, before you do anything else, [__create a Zapier account__](https://zapier.com/sign-up). You'll have access to the Zapier SDK on the free tier. Then head to the [__app connections__](http://zapier.com/app/assets/connections) page in the Zapier member home and connect at least one app. And make sure Node.js 20+ is installed on your device.

New to Node.js? It's a software platform that lets you run code. To install it, go to [__nodejs.org/en/download__](https://nodejs.org/en/download), scroll down to "Or get a prebuilt Node.js," and download the installer for your operating system, which the page should detect automatically. If you run into trouble, you can ask your coding agent to walk you through the installation process.

Once those prerequisites are taken care of, you can get started with your AI tool's help or go through manual steps.

Choose the **AI-guided** path if you want to get started fast and don't mind letting your AI coding agent handle the details. On the [__Zapier SDK Quickstart page__](https://docs.zapier.com/sdk/quickstart#step-1-install-the-sdk), click the AI tool you want to add Zapier to. A setup prompt will open, which will walk your agent through each step, including browser login.

## Use this prompt

Paste this prompt into your IDE agent, whether that's Cursor, VS Code with Copilot, Claude Code, Windsurf, or something else:

Set up the Zapier SDK for me. Work through these steps one at a time, running each command in the terminal and telling me what happened before moving on:

1. Check what folder I'm in and whether a package.json already exists. - If there's already a package.json, use this project as-is. - If there's no package.json, create one, run: npm init -y

2. Check Node.js is installed and is version 20 or higher: node -v - If Node is not found: tell me to install it from https://nodejs.org or run brew install node, then stop. - If Node is older than 20: tell me to upgrade it, then stop.

3. Install the SDK: npm install @zapier/zapier-sdk - An EPERM error on ~/.npm/_cacache usually means the command sandbox is blocking npm's cache writes, not a file permissions issue.

4. Install dev dependencies: npm install -D @zapier/zapier-sdk-cli @types/node typescript

5. Log in to Zapier: npx zapier-sdk login - This opens a browser window. A permissions or sandbox error here typically means the command sandbox is preventing credentials from being written to disk. - If login fails for another reason, try again.

6. List my connected apps: npx zapier-sdk list-connections --owner me --json 2>/dev/null | head -n 1000 - Read the output and show only the first 10 results as a markdown table with columns: ID, App Key, Expired. Do not show Title. Always tell me how many total connections there are, and if there are more than 10, note that you are only showing the first 10. - The page size is 100. If the output contains exactly 100 connections, there may be additional connections beyond this first page. Just note that and move on — do not fetch additional pages. - If the list is empty: tell me to connect at least one app at https://zapier.com/app/assets/connections and come back.

Once all steps are done, tell me I am ready and explain:

Zapier has pre-built connectors for 9,000+ apps — Slack, Google Sheets, Salesforce, GitHub, and thousands more. The Zapier SDK and CLI expose that same integration layer to code. Instead of building OAuth flows, handling token refresh, and reverse-engineering each app's API yourself, you get a single consistent interface that already knows how to talk to all of them. Your users' existing Zapier connections are authenticated and ready to use.

- **CLI — explore, run one-offs, or let an agent act:** the CLI is for exploration and ad-hoc action. Use it to see what an app can do, inspect the exact inputs an action expects, and run actions interactively — whether that's you in a terminal or an agent executing a task on demand. See the CLI reference: https://docs.zapier.com/sdk/cli-reference - **TypeScript SDK — build production integrations and agent tools:** the SDK is for shipping. Use it when you need something repeatable, embedded, or in production — a scheduled workflow, a backend service, a tool inside an AI agent. It's type-safe, handles token refresh and retries automatically, and uses the same app keys, action keys, and input shapes you already discovered via the CLI. See the SDK reference: https://docs.zapier.com/sdk/reference

**Want to run a quick test?**

If I have a Slack connection, offer to send a DM to yourself on Slack. Describe the steps that will happen and end with: "Want to run this quick test?" Then STOP. Do not output anything else. Do not continue to the next section. Wait for my reply before proceeding.

When I reply to the quick test, only proceed if my response is a clear, unambiguous affirmative (e.g. "yes", "go ahead"). If ambiguous or unclear, skip the test and continue.

If I don't have a Slack connection, skip the test and continue.

---

When I reply yes to the quick test, run these exact commands in order:

1. Look up my Slack username: npx zapier-sdk run-action slack search user_by_email --connection-id ID --inputs '{"email":"ZAPIER_EMAIL"}'

2. Send a direct message to yourself using the username from step 1: npx zapier-sdk run-action slack write direct_message --connection-id ID --inputs '{"channel":"USERNAME","text":"Hello via Zapier SDK 👋"}'

Replace ID with my Slack connection ID from the table above. Replace ZAPIER_EMAIL with my Zapier login email. Replace USERNAME with the username returned from step 1.

If user_by_email fails, ask me for my Slack email and try again.

---

After the test completes (or if I skip it, or if there's no Slack connection):

Pick 1–3 apps from the connections table and show me the commands I could use to explore what actions they support. Do not run these commands — just display them so I can try on my own. For example: npx zapier-sdk list-actions APP_KEY

**All set! Now, a few ideas to start exploring what the Zapier SDK can do:**

Suggest 3 ideas worth exploring — good starting points based on my connected apps. Each idea reads from one app, optionally processes it, and writes to another. Do not suggest anything event-driven. Keep each idea to one sentence. Examples: "get all your Jira issues still In Progress and DM yourself a tidy table on Slack"; "pull every HubSpot deal that closed this week and drop it into a Google Sheet". Make the ideas specific to my connected apps — not generic.

If you want more control, especially over how the SDK authenticates, go **manual**. In addition to browser login, this path covers a non-interactive option for situations where no one is available to click through a browser window: client credentials (for server-side apps). This is also the better path if you're not using an AI coding agent, since you only need a terminal and a text editor. The manual path uses the Zapier SDK CLI, so you'll run commands like `npx zapier-sdk login` and `npx zapier-sdk add slack` directly in your terminal.

For the full manual setup instructions, visit the [__Zapier SDK Quickstart guide__](https://docs.zapier.com/sdk/quickstart#step-1-install-the-sdk).

## Add Zapier SDK to your AI

Zapier SDK gives you programmatic access to our full app ecosystem, with auth, governance, and reliability built right in. Your agent can also use it to deploy Zaps that keep running after the chat ends. If you're ready to start and want more guidance, head to our [__SDK help docs__](https://docs.zapier.com/sdk).

*This article was originally written in April 2026. It was most recently updated in December 2026.*
