---
title: "Create pipeline"
method: POST
path: "/v2/{ledger}/pipelines"
tags: ["ledger.v2"]
---

# Create pipeline

`POST /v2/{ledger}/pipelines`

## Request body

- V2CreatePipelineRequest
  - `exporterID` string, required — Identifier of the exporter this pipeline feeds

## Response `201`

Created ipeline

- object
  - `data` V2Pipeline, required
    - `ledger` string, required — Name of the ledger the pipeline reads from
    - `exporterID` string, required — Identifier of the exporter the pipeline feeds
    - `id` string, required
    - `createdAt` string, date-time, required
    - `lastLogID` integer
    - `enabled` boolean

## Other responses

- `default` — Error

---

[API](https://skmtc.dev/formancehq/apis/ledger-api.md) · [All operations](https://skmtc.dev/formancehq/apis/ledger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/formancehq/ledger-api/revisions/fe945da1b75d/schema)
