# Contractbook + URL Shortener by Zapier Integrations: Connect with Zapier MCP
> zapier.com/apps/contractbook/integrations/url-shortener
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Contractbook and URL Shortener by Zapier in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## 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

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

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

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action url-shortener write shortenUrl \
  --inputs '{}'
```

## Contractbook

### Identity
Contractbook is an easy signing and simple contract management tool for modern businesses.

- App slug: contractbook
- Operations published here: 16 (10 events, 6 functions)

### Authentication
Zapier connects to Contractbook 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 contractbook
```

### Capabilities

#### Events (10)

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

##### New Contract
Triggers when a new contract is sent.

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

##### Contract Updated
Triggers when a contract transitions to a new state.

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

##### Get Companies
Gets a list of companies.

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

##### Get Questionnaires
Gets a list of questionnaires

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

##### Drafter Questionnaire Has Been Completed
Triggers when a user has completed a questionnaire

- Type: read · Key: `drafter_questionnaire_completed_event`
- Requires: event, slug
- Optional: companyName
- SDK: `runAction({ app: "contractbook", actionType: "read", action: "drafter_questionnaire_completed_event" })`
- CLI: `npx zapier-sdk run-action contractbook read drafter_questionnaire_completed_event`

##### New Draft
Triggers when a new draft is created.

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

##### Draft Edited
Triggers when a draft is edited.

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

##### New Task
Triggers when a new task is created.

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

##### Task Updated
Triggers when a task is updated.

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

##### New Template
Triggers when a new template is created.

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

#### Functions (6)

Functions change something in Contractbook.

##### Create Contract
Creates and sends a new contract.

- Type: write · Key: `contract`
- Requires: template_id, recipient_type
- Optional: sender_signature_method, recipient_signature_method, title, attachments, subject, content, sender_reference, recipient_reference
- SDK: `runAction({ app: "contractbook", actionType: "write", action: "contract" })`
- CLI: `npx zapier-sdk run-action contractbook write contract`

##### Create Contract With Custom Parties
Creates and sends a new contract with advanced parties setup.

- Type: write · Key: `contract_custom_parties`
- Requires: template_id, signature_type
- Optional: title, attachments, subject, content, sender_reference
- SDK: `runAction({ app: "contractbook", actionType: "write", action: "contract_custom_parties" })`
- CLI: `npx zapier-sdk run-action contractbook write contract_custom_parties`

##### Create Draft
Creates a draft

- Type: write · Key: `draft`
- Requires: template_id, recipient_type
- Optional: sender_signature_method, recipient_signature_method, title, attachments, subject, content, sender_reference, recipient_reference
- SDK: `runAction({ app: "contractbook", actionType: "write", action: "draft" })`
- CLI: `npx zapier-sdk run-action contractbook write draft`

##### Pre-Fill Questionnaire
Pre-fills a questionnaire

- Type: write · Key: `drafter_pre_fill_questionnaire`
- Requires: companyId, questionnaireId
- Optional: owner
- SDK: `runAction({ app: "contractbook", actionType: "write", action: "drafter_pre_fill_questionnaire" })`
- CLI: `npx zapier-sdk run-action contractbook write drafter_pre_fill_questionnaire`

##### Create Draft With Custom Parties
Creates a new draft with advanced parties setup.

- Type: write · Key: `draft_custom_parties`
- Requires: template_id, signature_type
- Optional: title, attachments, content, sender_reference
- SDK: `runAction({ app: "contractbook", actionType: "write", action: "draft_custom_parties" })`
- CLI: `npx zapier-sdk run-action contractbook write draft_custom_parties`

##### Create Task
Creates and sends a new task.

- Type: write · Key: `task`
- Requires: title, description, document_id
- Optional: type, due_date, send_notification_on_due_date
- SDK: `runAction({ app: "contractbook", actionType: "write", action: "task" })`
- CLI: `npx zapier-sdk run-action contractbook write task`

## URL Shortener by Zapier

### Identity
Create ready-to-share links on the fly. Zapier's URL Shortener spits out a simplified version of any link you throw its way. Pass that link to Twitter, drop it in an email, or send it along to any Zapier-connected app.

- App slug: url-shortener
- Operations published here: 1 (1 function)

### Capabilities

#### Functions (1)

Functions change something in URL Shortener by Zapier.

##### Shorten URL
Shorten a long URL using zpr.io (Intended to provide convenience, not security).

- Type: write · Key: `shortenUrl`
- Requires: url
- SDK: `runAction({ app: "url-shortener", actionType: "write", action: "shortenUrl" })`
- CLI: `npx zapier-sdk run-action url-shortener write shortenUrl`

## Links
- Contractbook integrations: zapier.com/apps/contractbook/integrations.md
- URL Shortener by Zapier integrations: zapier.com/apps/url-shortener/integrations.md
- Full page: zapier.com/apps/contractbook/integrations/url-shortener
- SDK: npmjs.com/package/@zapier/zapier-sdk