# Listing Push Notification

Listing-related push notifications notify users when important **listing activities** occur in your Sharetribe marketplace.

These notifications help keep users engaged and informed about changes without requiring them to open the app.

### What Are Listing Push Notifications?

Listing push notifications are sent when events related to listings occur, such as:

* Listing created
* Listing updated
* Listing published
* Listing deleted

Each event triggers a **one-time push notification** to the relevant user’s mobile device.

### 📌 Important Notes

* **Each push notification must be triggered from one Zap**
* You must create **two separate Zaps**:
  * **Zap 1:** Listing Events
  * **Zap 2:** Transaction Events
* Each Zap must send data to **Twinr’s Push Notification Webhook Endpoint**
* Both Zaps work independently and must be published separately

## Create Zap for Listing Events

Create this Zap **only if you want push notifications for listing-related events**.

### Step 1: Create a New Zap

1. Log in to **Zapier**
2. Click **Create Zap**

![](https://help.twinr.dev/assets/Screenshot%202026-01-16%20at%2011.22.59%E2%80%AFAM.png)

### Step 2: Select Sharetribe as Trigger App

1. Choose **Sharetribe**
2. Click **Continue**
3. Connect your Sharetribe account
4. Select the correct marketplace

![](https://help.twinr.dev/assets/Screenshot%202026-01-16%20at%2011.23.44%E2%80%AFAM.png)

![](https://help.twinr.dev/assets/Screenshot%202026-01-16%20at%2011.24.12%E2%80%AFAM.png)

### Step 3: Choose Trigger Event (Listing Events)

1. Select **Listing Events**
2. Click **Continue**
3. Choose an **Event Type**, such as:
   * Listing created
   * Listing updated
   * Listing deleted
   * Listing published
4. Test the trigger and continue

![](https://help.twinr.dev/assets/Screenshot%202026-01-16%20at%2011.25.02%E2%80%AFAM.png)

5. Select Account&#x20;
6. Enter Client ID and Client Secret (Available in Sharetribe Application)

![](https://help.twinr.dev/assets/Screenshot%202026-01-16%20at%205.10.55%E2%80%AFPM.png)

![](https://help.twinr.dev/assets/Screenshot%202026-01-16%20at%205.17.20%E2%80%AFPM.png)

### Step 4: (Optional) Format Date/Time

1. Click "Action" or "+"
2. Add **Formatter by Zapier**&#x20;

![](https://help.twinr.dev/assets/Screenshot%202026-01-16%20at%205.25.16%E2%80%AFPM.png)

1. Select **Date / Time**
2. Go to **Configure**
3. Format the timestamp if required
4. Continue

![](https://help.twinr.dev/assets/Screenshot%202026-01-16%20at%205.26.42%E2%80%AFPM.png)

![](https://help.twinr.dev/assets/Screenshot%202026-01-16%20at%205.27.45%E2%80%AFPM.png)

### Step 5: Send Push Notification to Twinr

1. Add **Webhooks by Zapier**

![](https://help.twinr.dev/assets/Screenshot%202026-01-16%20at%205.36.17%E2%80%AFPM.png)

2. Choose **any HTTP method**:

* POST
* GET
* PUT
* Custom Request

![](https://help.twinr.dev/assets/Screenshot%202026-01-16%20at%205.38.27%E2%80%AFPM.png)

3. Click "Continue"&#x20;
4. Click **Method** and Select **POST**&#x20;
5. Enter the **Twinr Push Notification Webhook Endpoint** in **URL** field

> **Tip:** [https://msengageapi.twinr.dev/v3/send-one-time-notifications](https://msengageapi-stage.twinr.dev/v3/send-one-time-notifications)

Each field in the request body controls how and where the push notification is delivered.

| Field               | Description                                                                                                                                                                                                                    |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `app_id`            | <p>Unique App ID of your Twinr application. This ensures the notification is sent to the correct app. (You will find App ID from  URL)<br><img src="../../.gitbook/assets/Screenshot 2026-01-20 at 3.53.12 PM.png" alt=""></p> |
| `push_title`        | Title text shown at the top of the push notification.                                                                                                                                                                          |
| `push_message`      | Main message content displayed in the notification.                                                                                                                                                                            |
| `push_image`        | Optional image URL to display in the notification (if supported by the platform).                                                                                                                                              |
| `is_android`        | Set to `true` to send the notification to Android devices.                                                                                                                                                                     |
| `is_ios`            | Set to `true` to send the notification to iOS devices.                                                                                                                                                                         |
| `segment_id`        | Target a specific user segment (optional).                                                                                                                                                                                     |
| `click_action.type` | Defines what happens when the user taps the notification (for example, open a screen or deep link).                                                                                                                            |

6. Map required fields (listing data + `app_id`)&#x20;

OR

6. Enter API Request body in the **Data** field if you choose "Custom Request"
7. In **Headers**, add `Authorization` with the value `Bearer <your account secret>`. Create the secret at **My Profile → Account secrets** and scope it to this app; see [Account Secrets](https://help.twinr.dev/twinr-account/account-secrets). Without it, Twinr refuses the request.
8. Make **Data Pass -Through?** - **False**
9. Click **Continue**
10. Test the request

### Step 6: Publish Zap

* Click **Publish**
* Your Listing Events push notification is now live

***

### Alternative: Store the Token Yourself

By default, Twinr writes the device token to the user's Sharetribe profile metadata, and the Zap reads it with **Show User**. If you prefer to manage the token yourself, call `twinr_push_token_fetch()` on your marketplace page and save the returned `token` to the user's own profile data in your own code. Then map that field in the Zap instead of `metadata.device_push_token`. See [Push Notification - Device Token](https://help.twinr.dev/js-bridge/push-notification-device-token).

Twinr writes the token for you only when your app is built with the latest Twinr version and has a paid app subscription. The JS bridge needs [Personalized Push Notification](https://help.twinr.dev/push/personalized-push-notification) enabled.

Source: https://help.twinr.dev/plugins/sharetribe/listing-push-notification
