---
title: "Simulate webhook sync by fetching events from the Stripe API"
method: POST
path: "/pipelines/{id}/simulate_webhook_sync"
tags: ["Pipelines"]
---

# Simulate webhook sync by fetching events from the Stripe API

`POST /pipelines/{id}/simulate_webhook_sync`

Fetches events from /v1/events using the pipeline's Stripe API key, then pipes them as input into the sync engine's push mode. This exercises the same code path as real webhooks without needing webhook delivery.

## Path parameters

- `id` string, required — Unique pipeline identifier (e.g. pipe_abc123).

## Query parameters

- `created_after` number — Only fetch events created after this Unix timestamp (default: 24 hours ago)
- `limit` integer — Max events to fetch (default: all)

## Response `200`

Streaming NDJSON sync output

## Other responses

- `400` — Pipeline source is not Stripe
- `404` — Pipeline not found

## Changes

- **2026-04-22** `d27c818295f0` — 1 warning
  - changed the pattern of the `path` request parameter `id` from `^[a-z][a-z0-9_-]*$` to `^[a-zA-Z][a-zA-Z0-9_-]*$`
- **2026-04-20** `56f3fb50abb5` — 1 info
  - endpoint added
- **2026-04-02** `131345353e38` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/stripe/apis/stripe-sync-service/changes/pipelines/:id/simulate_webhook_sync/post.md)

---

[API](https://skmtc.dev/stripe/apis/stripe-sync-service.md) · [All operations](https://skmtc.dev/stripe/apis/stripe-sync-service/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stripe/stripe-sync-service/revisions/0fb02347c6cc/schema)
