---
title: "Create a backfill job"
method: POST
path: "/api/{org_id}/pipelines/{pipeline_id}/backfill"
tags: ["Pipelines"]
---

# Create a backfill job

`POST /api/{org_id}/pipelines/{pipeline_id}/backfill`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/pipelines/{pipeline_id}/backfill`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/pipelines/:pipeline_id/backfill/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new backfill job to fill gaps in summary streams.

## Path parameters

- `org_id` string, required
- `pipeline_id` string, required

## Request body

- BackfillRequest
  - `chunk_period_minutes` integer, nullable
  - `delay_between_chunks_secs` integer, nullable
  - `delete_before_backfill` boolean
  - `end_time` integer, required: End time in microseconds
  - `start_time` integer, required: Start time in microseconds

## Response `200`

Backfill job created successfully

- BackfillResponse
  - `job_id` string, required
  - `message` string, required

## Other responses

- `400`: Bad request
- `404`: Pipeline not found
- `500`: Internal server error

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
