# Create a workflow | Parsium Docs

Source: https://docs.parseium.com/api/operations/createworkflow/

# Create a workflow

POST

/v1/workflows

Create a linear 1–4 stage workflow. Every stage needs a description. Non-final stages require a `follow` field.

## Authorizations

 Section titled “Authorizations ”

- **[apiKeyHeader](/api/#apikeyheader)**
- **[apiKeyQuery](/api/#apikeyquery)**

## Request Body
required

 Section titled “Request Body
required
 ”

 Select media type application/json

 object

 name

required

 string

 <= 100 characters

 description

required

 string

 url

 string format: uri

 definition

required

 object

 stages

required

 Array<object>

 >= 1 items <= 4 items

 object

 name

required

 string

 /^[a-z0-9_]{1,48}$/

 description

required

 string

 parser_id

required

 string

 scrape_config

Fetch override. Credit price depends on browser and proxy settings.

 object

 useBrowser

 boolean

 waitSeconds

 number

 waitForBrowser

 string

 proxy

`default`, `highquality`, `hardcore`, `premium`, or `premium:<country code>`.

 string

 sink

Return data or write rows to an owned database.

 object

 mode

required

 string

 default: return

Allowed values: return database

 database

 string

 /^[a-z0-9-]{1,32}$/

 table

 string

 /^[a-z0-9_]{1,48}$/

 key

Upsert key columns; defaults to `_url` for parser jobs.

 Array<string>

 follow

Required except on the final stage.

 string

 follow_limit

 integer

 <= 10000

 dedupe

 string

 default: per_run

Allowed values: per_run per_workflow

## Responses

 Section titled “
Responses
”

### 201

 Section titled “201 ”

Workflow created.

 Select media type application/json

 object

 id

 string

### 401

 Section titled “401 ”

Missing or invalid API key.

 Select media type application/json

 object

 error

required

 string

##### Example

```
invalid request
```

 field

Field that failed validation.

 string

 detail

 string

 hint

 string

### 422

 Section titled “422 ”

Validation failed.

 Select media type application/json

 object

 error

required

 string

##### Example

```
invalid request
```

 field

Field that failed validation.

 string

 detail

 string

 hint

 string

### 429

 Section titled “429 ”

Request, concurrency, or plan limit exceeded.

 Select media type application/json

 One of:

- [object](#tab-panel-28)
- [object](#tab-panel-29)

 object

 error

required

 string

##### Example

```
invalid request
```

 field

Field that failed validation.

 string

 detail

 string

 hint

 string

 object

 error

required

 string

##### Example

```
pending limit
```

 pending

required

 integer

 limit

required

 integer

 accepted

required

 integer

0

#### Headers

 Section titled “Headers ”

 Retry-After

 integer

Seconds to wait when supplied.
