---
updatedAt: 2026-10-25T18:24:53.000Z
agentTools:
  projectIndex: https://docs.yotpo.com/llms.txt
---

# Set up webhooks end to end

```shell Shell
# 1. Create a target — where Yotpo sends events
curl -X POST "https://api.yotpo.com/core/v3/stores/YOUR_STORE_ID/webhooks/targets" \
  -H "Content-Type: application/json" \
  -H "X-Yotpo-Token: YOUR_ACCESS_TOKEN" \
  -d '{
    "webhook_target": {
      "url": "https://example.com/webhooks/yotpo"
    }
  }'
# Response: { "webhook_target": { "yotpo_id": 1234 } }

# 2. Create a filter — which events you want
curl -X POST "https://api.yotpo.com/core/v3/stores/YOUR_STORE_ID/webhooks/filters" \
  -H "Content-Type: application/json" \
  -H "X-Yotpo-Token: YOUR_ACCESS_TOKEN" \
  -d '{
    "webhook_filter": {
      "events": ["review_create", "review_updated"]
    }
  }'
# Response: { "webhook_filter": { "yotpo_id": 6792 } }

# 3. Subscribe the target to the filtered events
curl -X POST "https://api.yotpo.com/core/v3/stores/YOUR_STORE_ID/webhooks/subscriptions" \
  -H "Content-Type: application/json" \
  -H "X-Yotpo-Token: YOUR_ACCESS_TOKEN" \
  -d '{
    "webhook_subscription": {
      "target_id": 1234,
      "filter_id": 6792,
      "active": true
    }
  }'
```

```json Response Example
{
  "webhook_subscription": { "yotpo_id": 1234 }
}
```

# Create a target

<!-- shell@1-10 -->

A target is the HTTPS URL where Yotpo delivers events — your endpoint. Only `url` is required. Keep the returned `yotpo_id`; it becomes the subscription's `target_id`.

# Create a filter

<!-- shell@11-21 -->

A filter is the list of event types you want. See [Webhook events](https://docs.yotpo.com/docs/topics) for every event name; each links to its payload. Keep the returned `yotpo_id` for the subscription's `filter_id`.

# Create the subscription

<!-- shell@22-23 -->

The subscription ties it together: `target_id`, `filter_id` and `active` are all required. Set `active` to `false` to create the subscription paused. A 422 with "related <entity-name> not found" means one of the IDs doesn't exist — recheck the values from steps 1 and 2.