# Zapier — AntsRoute Integrations
> zapier.com/apps/antsroute/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
AntsRoute is an innovative software that smartly schedules deliveries, operations and appointments, optimizes routes and improves customer relations. The needed solutions to boost your performance and improve your team productivity.

- App slug: antsroute
- Operations published here: 8 (4 functions, 3 queries, 1 search-or-write action)

## Authentication
Zapier connects to AntsRoute 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 antsroute
```

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

### Getting Started
- **MCP**: connect AntsRoute 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_customer`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action antsroute write create_customer \
  --inputs '{}'
```

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

### Functions (4)

Functions change something in AntsRoute.

#### Create a New Customer
Create a new customer in AntsRoute

- Type: write · Key: `create_customer`
- Requires: lastName, address
- Optional: externalId, firstName, phoneNumber, mobileNumber, email, comments, customer_customFields_name_1, customer_customFields_value_1, customer_customFields_name_2, customer_customFields_value_2, customer_customFields_name_3, customer_customFields_value_3
- SDK: `runAction({ app: "antsroute", actionType: "write", action: "create_customer" })`
- CLI: `npx zapier-sdk run-action antsroute write create_customer`

#### Create an Order
This action allows to create a SERVICE/DELIVERY/COLLECT type of the ORDER in the PLANNING at the corresponding given date

- Type: write · Key: `create_order`
- Requires: type, scheduleDate, duration, lastName, address
- Optional: externalId, comments, start, end, customer_externalId, firstName, phoneNumber, mobileNumber, email, customer_comments, capacityName_1, capacityValue_1, capacityName_2, capacityValue_2, capacityName_3, capacityValue_3, mandatoryAgent, skill, loading_location_name, loading_location_address, loading_duration, loading_timeSlot_start, loading_timeSlot_end, loading_comments, unloading_location_name, unloading_location_address, unloading_duration, unloading_timeSlot_start, unloading_timeSlot_end, unloading_comments, customFields_name_1, customFields_value_1, customFields_name_2, customFields_value_2, customFields_name_3, customFields_value_3, customFields_name_4, customFields_value_4, customFields_name_5, customFields_value_5
- SDK: `runAction({ app: "antsroute", actionType: "write", action: "create_order" })`
- CLI: `npx zapier-sdk run-action antsroute write create_order`

#### Create an Order in Basket
This action allows to create a SERVICE/DELIVERY/COLLECT type of the ORDER in the BASKET of AntsRoute. Please verify that the basket option is activated in settings of the corresponding site

- Type: write · Key: `create_order_in_basket`
- Requires: type, dueDate, duration, lastName, address
- Optional: externalId, comments, start, end, customer_externalId, firstName, phoneNumber, mobileNumber, email, customer_comments, capacityName_1, capacityValue_1, capacityName_2, capacityValue_2, capacityName_3, capacityValue_3, mandatoryAgent, skill, loading_location_name, loading_location_address, loading_duration, loading_timeSlot_start, loading_timeSlot_end, loading_comments, unloading_location_name, unloading_location_address, unloading_duration, unloading_timeSlot_start, unloading_timeSlot_end, unloading_comments, customFields_name_1, customFields_value_1, customFields_name_2, customFields_value_2, customFields_name_3, customFields_value_3, customFields_name_4, customFields_value_4, customFields_name_5, customFields_value_5
- SDK: `runAction({ app: "antsroute", actionType: "write", action: "create_order_in_basket" })`
- CLI: `npx zapier-sdk run-action antsroute write create_order_in_basket`

#### Update Customer
Update attributes for customer with specified AntsRoute ID

- Type: write · Key: `update_customer`
- Requires: id, externalId, lastName, address
- Optional: firstName, phoneNumber, mobileNumber, email, comments, customer_customFields_name_1, customer_customFields_value_1, customer_customFields_name_2, customer_customFields_value_2, customer_customFields_name_3, customer_customFields_value_3
- SDK: `runAction({ app: "antsroute", actionType: "write", action: "update_customer" })`
- CLI: `npx zapier-sdk run-action antsroute write update_customer`

### Queries (3)

Queries read from AntsRoute and return data. They change nothing.

#### Find a Customer by External ID
This method allow to get a customer by external ID

- Type: search · Key: `find_customer_by_external_id`
- Requires: externalId
- SDK: `runAction({ app: "antsroute", actionType: "search", action: "find_customer_by_external_id" })`
- CLI: `npx zapier-sdk run-action antsroute search find_customer_by_external_id`

#### Find an Order by External ID
This method allow to get a service/delivery/collect order with externalId.

- Type: search · Key: `find_order_external_id`
- Requires: externalId
- SDK: `runAction({ app: "antsroute", actionType: "search", action: "find_order_external_id" })`
- CLI: `npx zapier-sdk run-action antsroute search find_order_external_id`

#### Find an Order by AntsRoute ID
This method allow to get a service/delivery/collect with AntsRoute unique Order ID

- Type: search · Key: `find_order_id`
- Requires: id
- SDK: `runAction({ app: "antsroute", actionType: "search", action: "find_order_id" })`
- CLI: `npx zapier-sdk run-action antsroute search find_order_id`

### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

#### Find or Create New Customer
This method allow to get a customer by external ID

- Type: search_or_write · Key: `find_customer_by_external_id`
- Requires: externalId, lastName, address
- Optional: firstName, phoneNumber, mobileNumber, email, comments, customer_customFields_name_1, customer_customFields_value_1, customer_customFields_name_2, customer_customFields_value_2, customer_customFields_name_3, customer_customFields_value_3
- SDK: `runAction({ app: "antsroute", actionType: "search_or_write", action: "find_customer_by_external_id" })`
- CLI: `npx zapier-sdk run-action antsroute search_or_write find_customer_by_external_id`

## Popular integrations
- [AntsRoute + Gmail](zapier.com/apps/antsroute/integrations/gmail.md)
- [AntsRoute + SQL Server](zapier.com/apps/antsroute/integrations/sql-server.md)

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