---
title: "Deploying to Production"
description: "Publish pipelines, integrate with API, and monitor production usage"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.reducto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploying to Production

Deploying a pipeline creates a stable endpoint that your applications can call. You configure everything in Studio and deployment packages it into a single Pipeline ID. Your code stays simple: upload a document, pass the Pipeline ID, receive results.

## Pipeline vs Direct API

Every pipeline has a **Code** tab next to **Configure** and **Result** with the Direct API call for the current configuration (Edit pipelines show it under **View pipeline**). Pipelines that already have a published version also show **Deploy** in the header, which offers the Pipeline ID option.

![Deploy Pipeline](/images/deploy_pipeline.png)

*Direct API Call dialog with Python, TypeScript, and REST snippets*

**Pipeline ID** encapsulates your entire workflow behind a single identifier. Whether you built a parse-only pipeline or a multi-step flow (parse → extract → edit), your API call looks the same:

```python
result = client.pipeline.run(
    input=upload,
    pipeline_id="k9xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
)
```

Benefits of Pipeline ID:

- **Simple integration**: One ID, one call, any complexity
- **Update without code changes**: Modify settings in Studio, redeploy, and all API calls use the new configuration automatically
- **Team collaboration**: Non-engineers can iterate on configurations without touching code

**Direct API Call** exports the raw configuration as code. You get the exact settings you configured, embedded in your application. For multi-step workflows, this means separate calls for each step:

```python
# Direct API: multiple calls, explicit config
parse_result = client.parse.run(input=upload, settings={"model": "r-1", ...})
extract_result = client.extract.run(input=f"jobid://{parse_result.job_id}", instructions={"schema": {...}})
```

Use Direct API when you need runtime flexibility (changing settings per-request) or want configuration in version control.

> **Note:** For most production use cases, Pipeline ID is the better choice. It keeps your code clean and lets you iterate on document processing independently from your application releases.

---

## Using your Pipeline ID

Once deployed, integrate the Pipeline ID into your application:

**Python**

```python
from pathlib import Path
from reducto import Reducto

client = Reducto()
upload = client.upload(file=Path("fidelity-example.pdf"))

result = client.pipeline.run(
    input=upload,
    pipeline_id="k9798h9mwt0wmq5qz5e45qxbfx7yj4bq"
)

# Access results based on your pipeline type
print(result.result)
```

**Node.js**

```javascript
import Reducto from "reductoai";
import fs from "fs";

const client = new Reducto();
const upload = await client.upload({
  file: fs.createReadStream("fidelity-example.pdf"),
});

const result = await client.pipeline.run({
  input: upload,
  pipelineId: "k9798h9mwt0wmq5qz5e45qxbfx7yj4bq"
});

console.log(result.result);
```

**cURL**

```bash
# Upload document
UPLOAD=$(curl -s -X POST "https://platform.reducto.ai/upload" \
  -H "Authorization: Bearer $REDUCTO_API_KEY" \
  -F "file=@fidelity-example.pdf")

FILE_ID=$(echo $UPLOAD | jq -r '.file_id')

# Run pipeline
curl -X POST "https://platform.reducto.ai/pipeline" \
  -H "Authorization: Bearer $REDUCTO_API_KEY" \
  -H "Content-Type: application/json" \
  -d "{\"input\": \"$FILE_ID\", \"pipeline_id\": \"k9798h9mwt0wmq5qz5e45qxbfx7yj4bq\"}"
```

For high-volume processing, use the async endpoint:

```python
job = client.pipeline.run_job(
    input=upload,
    pipeline_id="k9798h9mwt0wmq5qz5e45qxbfx7yj4bq"
)

# Poll for completion or use webhooks
result = client.job.get(job.job_id)
```

See [Async Pipeline API](/api-reference/api/sections/pipeline/operations/pipeline-async) and [Async invocation pattern](/workflows/async-overview) for webhook configuration and batch processing patterns.

---

## Managing deployed pipelines

Studio provides tools to manage your pipelines after deployment. Access them from the **Three dotted** menu in the top-right corner of any pipeline.

### Execution logs

Track API calls made to your deployed pipeline. Click **... → Execution logs** to view recent executions. Use this to verify your integration is working and to debug failed requests.

> **Note:** Execution logs appear once the pipeline has been called via the API. Testing in Studio (clicking Run) doesn't create execution logs.

### Duplicate Pipeline

Create a copy of your pipeline to experiment with different settings without affecting production. The duplicate is independent, so you can modify and deploy it separately.

### Delete Pipeline

Remove a pipeline permanently. This invalidates the Pipeline ID; any API calls using it will fail. Delete only pipelines you're certain are no longer in use.

---

## Updating deployed pipelines

To update a deployed pipeline:

1. Open the pipeline in Studio
2. Modify your configuration (settings, schema, instructions)
3. Test with representative documents
4. Click **Deploy** again

A new version is created. The Pipeline ID stays the same, so existing integrations automatically use the updated configuration on their next call.

> **Warning:** Changes take effect immediately after deployment. Test thoroughly before redeploying production pipelines.

---

## Troubleshooting

**API returns 'pipeline not found'**

- Verify the Pipeline ID is copied correctly (no extra spaces or missing characters)
- Confirm the pipeline is deployed, not just saved—check for the deployed indicator in Studio
- Ensure your API key belongs to the same organization that owns the pipeline

**Results differ from Studio testing**

- Check you're using the correct Pipeline ID (you may have multiple pipelines)
- Verify no runtime overrides are being passed in your API call
- Compare the document format—Studio and API should receive identical files

**Processing takes longer than expected**

- Complex documents (many pages, dense tables) take longer to process
- Multi-step pipelines (parse → extract → edit) have cumulative processing time
- For batch processing, use the async endpoint to avoid timeout issues

**How do I debug a failing extraction?**

1. Check **Execution logs** to confirm the API call reached Reducto
2. Run the same document in Studio to see results interactively
3. Review the underlying Parse results—if Parse misses content, Extract can't find it

---

## Related

- [Pipeline Basics](/workflows/pipeline-basics): How pipelines orchestrate multi-step document workflows.

- [Pipeline API Reference](/api-reference/api/sections/pipeline/operations/pipeline): Full API documentation for synchronous pipeline calls.

- [Async Pipeline API](/api-reference/api/sections/pipeline/operations/pipeline-async): Process large documents and batches asynchronously.

- [Studio Quickstart](/studio-quickstart): Build and test your first pipeline from scratch.

Source: https://docs.reducto.ai/studio-deploy-pipeline/index.mdx
