# Zapier — Relayhook Integrations
> zapier.com/apps/relayhook/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Identity
Relayhook is a custom application that has custom webhooks and custom rresponse actions

- App slug: relayhook
- Operations published here: 4 (1 event, 3 functions)

## Authentication
Zapier connects to Relayhook via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection relayhook
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/relayhook/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect Relayhook through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · long_running_rest`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "relayhook", owner: "me" });

const { data } = await zapier.runAction({
  app: "relayhook",
  actionType: "write",
  action: "long_running_rest",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action relayhook write long_running_rest \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing Relayhook's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "relayhook" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions relayhook --page-size 50 --max-items 200 --json
```

### Events (1)

Events fire when something happens in Relayhook. Use them to start a run.

#### New Relayhook
Triggers when data is received from an external source.

- Type: read · Key: `new_relayhook`
- Requires: hookName
- SDK: `runAction({ app: "relayhook", actionType: "read", action: "new_relayhook" })`
- CLI: `npx zapier-sdk run-action relayhook read new_relayhook`

### Functions (3)

Functions change something in Relayhook.

#### Long Running Request
Creates a new long running rest request that can wait up to 28 minutes

- Type: write · Key: `long_running_rest`
- Requires: method, url
- Optional: params, body, add_custom_headers, headers
- SDK: `runAction({ app: "relayhook", actionType: "write", action: "long_running_rest" })`
- CLI: `npx zapier-sdk run-action relayhook write long_running_rest`

#### Redirect to a Destination
Redirects to a Destination

- Type: write · Key: `redirect_action`
- Requires: relayhook_name, url
- Optional: disclaimer, add_custom_headers
- SDK: `runAction({ app: "relayhook", actionType: "write", action: "redirect_action" })`
- CLI: `npx zapier-sdk run-action relayhook write redirect_action`

#### Send Webhook Response
Sends a response to a relayhook

- Type: write · Key: `respond_from_webhook`
- Requires: relayhook_name
- Optional: disclaimer, add_custom_headers, json_data
- SDK: `runAction({ app: "relayhook", actionType: "write", action: "respond_from_webhook" })`
- CLI: `npx zapier-sdk run-action relayhook write respond_from_webhook`

## Popular integrations
- [Relayhook + 2Chat](zapier.com/apps/relayhook/integrations/2chat.md)
- [Relayhook + Alegra](zapier.com/apps/relayhook/integrations/alegra.md)
- [Relayhook + WANotifier](zapier.com/apps/relayhook/integrations/wanotifier.md)
- [Relayhook + Google Drive](zapier.com/apps/relayhook/integrations/google-drive.md)
- [Relayhook + LeadConnector](zapier.com/apps/relayhook/integrations/leadconnector.md)
- [Relayhook + Flodesk](zapier.com/apps/relayhook/integrations/flodesk.md)
- [Relayhook + Google AI Studio (Gemini)](zapier.com/apps/relayhook/integrations/google-ai-studio.md)
- [Relayhook + Apollo](zapier.com/apps/relayhook/integrations/apollo.md)
- [Relayhook + Copper](zapier.com/apps/relayhook/integrations/copper.md)
- [Relayhook + Microsoft Exchange](zapier.com/apps/relayhook/integrations/microsoft-exchange.md)
- [Relayhook + Ko-fi](zapier.com/apps/relayhook/integrations/ko-fi.md)
- [Relayhook + Yardbook](zapier.com/apps/relayhook/integrations/yardbook.md)
- [Relayhook + Easymailing](zapier.com/apps/relayhook/integrations/easymailing.md)
- [Relayhook + Happy SMS](zapier.com/apps/relayhook/integrations/happy-sms.md)

## Links
- Full app page: zapier.com/apps/relayhook/integrations
- MCP: zapier.com/mcp/relayhook
- SDK: npmjs.com/package/@zapier/zapier-sdk