# Connecting Zapier

Source: https://kirora.io/docs/api/zapier

Start Zaps from Kirora events, and create contacts, track events and send email from Zaps.

Kirora's Zapier app connects Kirora to the thousands of tools Zapier reaches: start a Zap
when something happens in Kirora, or have a Zap create contacts, track events and send
transactional email in Kirora.

> The Kirora app is listed in Zapier's directory once Kirora launches publicly, as
> Zapier requires.

## Connect

1. In Kirora, open **Integrations → Zapier** and create a key. It has the **Automation**
   permissions: contacts, events, lists, transactional email and webhooks.
2. In Zapier, add a Kirora step and paste the key when asked. Zapier checks it and shows
   your workspace's name.

## Triggers

Each trigger starts a Zap the moment it happens: the app subscribes a signed webhook for
it, and drops any delivery Kirora did not sign.

| Trigger | When |
| --- | --- |
| New contact | A contact is created |
| Contact unsubscribed | A contact unsubscribes |
| Form submitted | Someone submits a Kirora form |
| Message sent, opened, clicked | That happens to an email or push message |
| Message delivered, bounced | That happens to an email |

## Actions and search

| Action | What it does |
| --- | --- |
| Create or update contact | Identify a contact by your ID or email, with attributes and consent |
| Track event | Record an event on a contact, for journeys and segments |
| Add contact to list | Add a contact to one of your lists |
| Send transactional email | Send one email, such as a receipt, from a stored template or your own subject and HTML |
| Find contact by email | Look a contact up, or create it ("find or create") |

- **Consent** needs how they agreed: granting consent asks for the legal basis and where
  and how they agreed, and Kirora refuses a grant without them.
- **Idempotency key**: map something that identifies the action, such as an order ID
  followed by `-receipt`, so a replayed Zap does not send or record twice.

## Pause and disconnect

On **Integrations → Zapier**, **Pause** holds the Zapier key and its triggers without
deleting anything: Zaps calling Kirora get 403 `INTEGRATION_PAUSED`, and its triggers
receive no events until you resume. Events from the pause are not sent later.
**Disconnect** revokes the key and removes its triggers' webhooks; Zapier then asks you to
reconnect.

## Requirements

- **Plan**: the integrations feature (Starter and above).
- **Role**: workspace admins and developers create the key.

## Next steps

- [Webhooks](https://kirora.io/docs/api/webhooks): the events behind each trigger and their payloads
- [Idempotency](https://kirora.io/docs/api/reference/idempotency): how a repeated action is recognised