Documentation Index
Fetch the complete documentation index at: https://docs.zapier.com/llms.txt
Use this file to discover all available pages before exploring further.
Set up with your AI
Your agent runs the commands for youOpen in Codex
Open in Claude Code
Open in Cursor
Open in VS Code Copilot
Open in ChatGPT
Open in Claude
Open in Perplexity
Prerequisites
- Node.js 20+ installed
- A Zapier account (free tier works)
- At least one app connected to your Zapier account
Step 1: Install the SDK
Create a new project (or use an existing one) and install the required packages:Step 2: Install the SDK skill
Install the Zapier SDK skill so your coding agent knows how to use the SDK across every future session:Step 3: Authenticate
The SDK CLI provides a simple browser-based authentication flow:Want approvals on these credentials? Pass
--use-approvals to provision the credential with an empty permission policy. Every request will prompt you to approve (or deny) the action until you’ve built the policy up. See Permissions for the full flow.Alternative: Client Credentials
Alternative: Client Credentials
The client credentials guide covers creation, secure storage, and how to use them across platforms.
Alternative: Direct Token
Alternative: Direct Token
You can also provide a token directly:
Step 4: Generate Types for Your Apps
The SDK can generate TypeScript types for any app, giving you full autocomplete and type safety:src or lib folder by default. You can customize the output location:
Step 5: Initialize the SDK
Create a new file (e.g.,index.ts) and initialize the SDK:
Step 6: List Your Connected Apps
Let’s verify everything works by listing available apps:Step 7: Run Your First Action
Now let’s execute an action. First, you’ll need a connection for the app you want to use:Step 8: Use the Proxy Pattern (Optional)
For a cleaner syntax, use the app proxy pattern:Step 9: Make Custom API Calls with fetch (Optional)
Note on governance: The
.fetch() method makes authenticated API calls
directly, giving you access to any supported endpoint. Unlike pre-built
actions, these direct API calls are not currently subject to your org’s app or
action restriction policies. If your org has governance requirements, use
pre-built actions where possible. Direct API governance is on the roadmap.fetch to make authenticated requests through the Zapier SDK:
Complete Example
Here’s a full example that sends a Slack message:Next Steps
- API Reference — full documentation of all SDK methods and patterns
- CLI Reference — command-line tools including list-apps, add, and view-policy
- Browse integrations — apps you can connect
- Try the demo use case — the meeting reschedule example on the overview page is a confirmed working end-to-end scenario, good for testing your setup
- Hit a problem? — tell us what broke via the feedback form