# Integrately

> Add the Leal app to Integrately with an API token, then use Leal triggers and actions in your automations.

Integrately builds automations between apps, and has ready-made ones you can switch on in a click. The Leal app lets an automation add customers, give stamps and redeem rewards, and react to what happens in your store, such as a customer joining, earning stamps or unlocking a reward. You need a Pro plan, because Integrately connects with an API token.

## Connect Leal to Integrately

1. In Leal, create an API token named "Integrately" on the [API page](https://app.getleal.com/api_tokens). See [API tokens](https://docs.getleal.com/integrations/api-tokens).
2. Click **Add to Integrately** on the Integrately card in Leal, or open the [Leal app on Integrately](https://integrately.com/integrations/leal).
3. Connect it with your API token.
4. Pick a ready-made automation, or build your own with a Leal trigger or action.

## Triggers

All Leal triggers on Integrately are instant:

- **Card is issued**
- **Customer is created**
- **Customer is updated**
- **Referral is created**
- **Referral is rewarded**
- **Reward is redeemed**
- **Reward is unlocked**
- **Stamp is earned**
- **Stamp is removed**

## Actions

- **Add stamps**
- **Create customer**
- **Redeem reward**
- **Search customers**

## Managing automations

Leal triggers add an endpoint on Leal's **Webhooks** page, labelled **Integrately**. Manage it from Integrately. If you delete the endpoint in Leal while the automation is running, the automation stops receiving events.

## Gotchas

- **Customers need an email or phone number.** An automation that creates customers without either fails.
- **The token acts as you.** If it's revoked, or you're removed from the store, the automation stops. Reconnect with a new token.

## Read more

[getleal.com/integrations/integrately](https://www.getleal.com/integrations/integrately)
