---
title: "Set up destination schema"
method: POST
path: "/pipeline_setup"
tags: ["Stateless Sync API"]
---

# Set up destination schema

`POST /pipeline_setup`

Creates destination tables and applies migrations. Streams NDJSON messages (control, log, trace) tagged with _emitted_by.

## Response `200`

NDJSON stream of setup messages

## Other responses

- `400` — Invalid params

## Changes

- **2026-04-05** `1ea267682268` — 1 breaking, 51 warning
  - the `api_version` response property const value `2026-03-25.dahlia` was removed for the status `200`
  - added the new `2017-08-15` enum value to the `oneOf[#/components/schemas/ControlMessage]/control/oneOf[subschema #1]/source_config/api_version` response property for the response status `200`
  - added the new `2017-12-14` enum value to the `oneOf[#/components/schemas/ControlMessage]/control/oneOf[subschema #1]/source_config/api_version` response property for the response status `200`
  - added the new `2018-01-23` enum value to the `oneOf[#/components/schemas/ControlMessage]/control/oneOf[subschema #1]/source_config/api_version` response property for the response status `200`
  - …48 more
- **2026-04-05** `db172f650b83` — 3 breaking, 1 info
  - added `subschema #1, subschema #2` to the `oneOf[#/components/schemas/ControlMessage]/control` response property `oneOf` list for the response status `200`
  - removed the required property `oneOf[#/components/schemas/ControlMessage]/control/config` from the response with the `200` status
  - removed the required property `oneOf[#/components/schemas/ControlMessage]/control/control_type` from the response with the `200` status
  - added discriminator to `oneOf[#/components/schemas/ControlMessage]/control` response property for the response status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/stripe/apis/stripe-sync-engine/changes/pipeline_setup/post.md)

---

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