---
title: "Save a workflow"
method: POST
path: "/workflows"
---

# Save a workflow

`POST /workflows`

## Request

- Base URL: `https://marqpdf.com/v1`
- URL: `https://marqpdf.com/v1/workflows`
- Auth: HTTP bearer

A named chain of 1–10 operations. Each step works on the previous step's output files (a step that only makes data passes its inputs on). Steps are checked when saved.

## Request body

- object
  - `name` string, required
  - `steps` Step[], required
    - `operation` string, required
    - `options` object

## Response `201`

The workflow

- Workflow
  - `object` 'workflow'
  - `id` string
  - `name` string
  - `steps` Step[]
    - `operation` string, required
    - `options` object
  - `created_at` string, date-time

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key

---

[API](https://skmtc.dev/marqpdf/apis/marqpdf-api.md) · [All operations](https://skmtc.dev/marqpdf/apis/marqpdf-api/llms.txt) · [OpenAPI document](https://skmtc.dev/marqpdf/apis/marqpdf-api/revisions/9f614f17df46?raw)
