> ## Documentation Index
> Fetch the complete documentation index at: https://uselora.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Lora API — Zapier

> Start a Zap when a shortcut is created, updated, or deleted in a Lora workspace. What each trigger sends and how to stop a Zap from running twice for the same event.

> [!NOTE]
>
> The Lora integration for Zapier is not available yet. This page describes what it will send and require.

The Lora integration for Zapier has three triggers. Each one starts a Zap when something happens to a shortcut in one workspace.

| Trigger | Starts when |
| - | - |
| `New Shortcut` | A shortcut that everyone in the workspace can see is created, or becomes visible to them. |
| `Updated Shortcut` | A shortcut that everyone in the workspace can see is changed. |
| `Deleted Shortcut` | A shortcut that everyone in the workspace could see is deleted, or becomes hidden from them. |

There are no actions yet. A Zap can read shortcut events but cannot create or change shortcuts.

## Requirements

* The workspace is on the Basic plan or above. If it drops to Free, triggers stop sending events and nothing is deleted. Upgrading to Basic or above resumes them.
* You are an owner or admin of the workspace. Members can't connect Zapier, because a trigger sends the workspace's shortcut content to Zapier.
* The workspace has at most 5 Zapier triggers turned on. Turning on a sixth fails with `quota_exceeded`.

Lora sends only shortcuts that everyone in the workspace can see. Private and unlisted shortcuts are never sent.

## Connect Zapier

Zapier connects to Lora with OAuth, so you don't copy an API key.

**1. Add a Lora trigger to a Zap**

In Zapier, choose Lora as the trigger app and connect your Lora account.

**2. Choose the workspace**

One connection is bound to one workspace. If you are an owner or admin on Basic or above in more than one workspace, Lora asks which one. Connect again to use another workspace.

**3. Approve**

Review the consent screen and approve. Zapier can then subscribe to the workspace's shortcut events.

To end a connection, open **Settings > Security and access** in the workspace and revoke the application under **Authorized applications**. Revoking turns off the connection's triggers. Logging out of Lora does not end it.

A connection also ends, with its triggers, when the person who made it is no longer an owner or admin of the workspace: they leave, are removed or suspended, or their role changes to moderator or member. Restoring their access or role does not restore the connection. To bring the triggers back, the person connects Zapier again and turns each Zap off and on. That subscribes the triggers again.

## What a trigger sends

A trigger sends one item per event.

| Field | Description |
| - | - |
| `id`, `event_id` | The ID of the event, starting with `evt_`. Both fields hold the same value. |
| `event_type` | `shortcut.created`, `shortcut.updated`, or `shortcut.deleted`. |
| `reason` | Why the event was sent, or empty. `New Shortcut`: `inserted` or `became_visible`. `Deleted Shortcut`: `removed` or `became_hidden`. `Updated Shortcut` has none. |
| `event_created_at` | When Lora recorded the event. |
| `shortcut_id` | The ID of the shortcut. |
| `slug`, `url` | The shortcut's slug and its Lora link. |
| `destination` | The URL the shortcut points to. |
| `title`, `description` | The shortcut's title and description. |
| `visibility`, `archived`, `passwordProtected`, `expiresAt` | The shortcut's settings. |
| `createdAt`, `updatedAt` | When the shortcut was created and last changed. |
| `folderId`, `additionalFolderIds`, `tagIds`, `aliases` | The shortcut's folders, tags, and aliases. |

`Deleted Shortcut` sends the event fields and `shortcut_id` only.

Event fields are in snake\_case. The shortcut's own fields keep the names they have in the Lora API, which are camelCase.

The event ID and the shortcut ID are different fields. Two changes to the same shortcut are two events with two event IDs, so both start the Zap.

## Events can arrive twice

Lora delivers each event at least once. If Lora can't confirm that Zapier received an event, it sends the event again with the same event ID. Zapier does not drop a repeated event from an instant trigger, so the Zap runs twice for that event.

Most Zaps can run twice without harm. If a step must not run twice, for example posting a message or creating a row, add a de-duplication step that checks `event_id`:

**1. Look up the event ID**

Add **Storage by Zapier** with the action **Get Value**. For the key, map the trigger's **Event ID** field (`event_id`), not the text "event\_id".

**2. Stop repeats**

Add a **Filter** that continues only if the value from the previous step does not exist.

**3. Remember the event ID**

Add **Storage by Zapier** with the action **Set Value**. Map the **Event ID** field as the key again and use any text as the value.

**4. Add your steps**

Put the steps that must run once after these three.

Two copies that arrive at the same moment can both pass the filter before either one stores the ID. A repeat sent after a failed delivery arrives later, so this recipe catches it in most cases.

## When Zapier stops answering

Lora sends events only to Zapier hook URLs on `hooks.zapier.com`. Lora has no fixed IP addresses to allow-list.

A `410 Gone` answer from Zapier means the Zap was turned off. Lora deletes that trigger's subscription, sends nothing more to it, and doesn't email anyone.

For other failures, Lora makes up to eight delivery attempts over about 27 hours. If a trigger has no successful delivery for five days and at least five deliveries ran out of retries, Lora disables the trigger and emails the workspace's owners and admins. To bring it back, turn the Zap off and on again in Zapier.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.