# Zapier — Treffas Integrations
> zapier.com/apps/treffas/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
Treffas is a platform that helps service-based businesses manage their operations by offering tools for scheduling, client management, and more.

- App slug: treffas
- Operations published here: 24 (12 events, 12 functions)

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

- Auth type: oauth
- 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 treffas
```

## 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/treffas/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect Treffas 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 · create_appointment`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action treffas write create_appointment \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing Treffas'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: "treffas" }).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 treffas --page-size 50 --max-items 200 --json
```

### Events (12)

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

#### New Appointment
Triggers when an appointment is created.

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

#### Appointment Deleted
Triggers when an appointment is deleted.

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

#### Updated Appointment
Triggers when an appointment is updated.

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

#### New Client
Triggers when an client is created.

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

#### Client Deleted
Triggers when a client is deleted.

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

#### Updated Client
Triggers when an client is updated.

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

#### New Offer
Triggers when an offer is created.

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

#### Offer Deleted
Triggers when an offer is deleted.

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

#### Updated Offer
Triggers when an offer is updated.

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

#### New Post
Triggers when a post is created.

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

#### Post Deleted
Triggers when a post is deleted.

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

#### Updated Post
Triggers when a post is updated.

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

### Functions (12)

Functions change something in Treffas.

#### Create Appointment
Creates a new appointment.

- Type: write · Key: `create_appointment`
- Requires: organization, offer_id, utc_bookingdate, coach_bookingdate, firstname, lastname, email, notes, timezone_utc
- Optional: mobile, address
- SDK: `runAction({ app: "treffas", actionType: "write", action: "create_appointment" })`
- CLI: `npx zapier-sdk run-action treffas write create_appointment`

#### Create Client
Creates a new client.

- Type: write · Key: `create_client`
- Requires: organization, firstname, lastname, email, mobile, address, address_2, country, city, state, zipcode, notes, timezone
- SDK: `runAction({ app: "treffas", actionType: "write", action: "create_client" })`
- CLI: `npx zapier-sdk run-action treffas write create_client`

#### Create Offer
Creates a new offer.

- Type: write · Key: `create_offer`
- Requires: organization, name, description, price, duration, interval, status, visibility, available, enable_payments
- Optional: stripe_config, paypal_config, payment_flow, landing_page
- SDK: `runAction({ app: "treffas", actionType: "write", action: "create_offer" })`
- CLI: `npx zapier-sdk run-action treffas write create_offer`

#### Create Post
Creates a new post. 

- Type: write · Key: `create_post`
- Requires: organization, title, post, extras
- SDK: `runAction({ app: "treffas", actionType: "write", action: "create_post" })`
- CLI: `npx zapier-sdk run-action treffas write create_post`

#### Delete Appointment
Deletes an appointment.

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

#### Delete Client
Deletes a client.    

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

#### Delete Offer
Deletes a offer.    

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

#### Delete Post
Deletes a post.     

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

#### Update Appointment
Updates an appointment.

- Type: write · Key: `update_appointment`
- Requires: organization, offer_id, utc_bookingdate, coach_bookingdate, firstname, lastname, email, notes, timezone_utc, reason
- Optional: mobile, address
- SDK: `runAction({ app: "treffas", actionType: "write", action: "update_appointment" })`
- CLI: `npx zapier-sdk run-action treffas write update_appointment`

#### Update Client
Updates a client.    

- Type: write · Key: `update_client`
- Requires: organization, firstname, lastname, email, mobile, address, address_2, country, city, state, zipcode, notes, timezone
- SDK: `runAction({ app: "treffas", actionType: "write", action: "update_client" })`
- CLI: `npx zapier-sdk run-action treffas write update_client`

#### Update Offer
Updates an offer.   

- Type: write · Key: `update_offer`
- Requires: organization, name, description, price, duration, interval, visibility, available
- Optional: status, enable_payments, stripe_config, paypal_config, payment_flow, landing_page
- SDK: `runAction({ app: "treffas", actionType: "write", action: "update_offer" })`
- CLI: `npx zapier-sdk run-action treffas write update_offer`

#### Update Post
Updates an post.    

- Type: write · Key: `update_post`
- Requires: organization, title, post, extras
- SDK: `runAction({ app: "treffas", actionType: "write", action: "update_post" })`
- CLI: `npx zapier-sdk run-action treffas write update_post`

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