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

# Create backfill

> Starts a job that delivers historical data from an Allium table to your destination.

Delivers historical data from an Allium table to exactly one destination for the window you specify. The job moves through `staging → transporting → completed`, or ends as `failed` or `cancelled`.

> [!NOTE]
>
> Backfills read from stream-compatible views, so delivered records match the live Beam stream for the same source. Supported tables:
>
> | Table | Chains |
> | :- | :- |
> | `intermediate.{chain}_assets.int_{chain}_assets__erc20_token_transfers_stream_compat` | `arbitrum`, `arbitrum_sepolia`, `avalanche`, `base`, `base_sepolia`, `bsc`, `bsc_testnet`, `ethereum`, `megaeth`, `monad`, `monad_testnet`, `optimism`, `optimism_sepolia`, `plasma`, `polygon`, `polygon_amoy`, `sei` |
> | `intermediate.{chain}_assets.int_{chain}_assets__native_token_transfers_stream_compat` | Same chains as above |
> | `intermediate.solana_assets.int_solana_assets__token_transfers_stream_compat` | `solana` |
> | `intermediate.solana_raw.int_solana_raw__instructions_stream_compat` | `solana` |
>
> Contact [support@allium.so](mailto:support@allium.so) to request additional tables.

```bash theme={null}
curl -X POST https://api.allium.so/api/v1/beam/backfills \
  -H "X-API-Key: ${ALLIUM_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "job_name": "USDC transfers on Base — Sep 2026",
    "table": "intermediate.base_assets.int_base_assets__erc20_token_transfers_stream_compat",
    "backfill_window": {
      "partition_key": "block_timestamp",
      "start": "2026-09-01T00:00:00Z",
      "end": "2026-10-01T00:00:00Z"
    },
    "filter": {
      "column": "token_address",
      "values": ["0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"]
    },
    "destinations": [
      { "type": "kafka", "name": "base-usdc-transfers-backfill" }
    ]
  }'
```

**Response:**

```json theme={null}
{
  "job_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
  "workflow_id": "beam-backfill-org123-f47ac10b-58cc-4372-a567-0e02b2c3d479"
}
```

Use `job_id` to track the job with [List backfills](https://docs.allium.so/beam/api-reference/backfills/list-backfills.md) or stop it with [Cancel backfill](https://docs.allium.so/beam/api-reference/backfills/cancel-backfill.md).

***

**Request body:**

```js theme={null}
{
  "job_name": str,
  "table": str,
  "backfill_window": { ... },
  "filter": { ... },
  "transforms": [ ... ],
  "destinations": [ ... ],
  "static_egress_ip": bool
}
```

| Field | Type | Required | Description |
| :- | :- | :- | :- |
| `job_name` | `string` | Yes | Display name for the job |
| `table` | `string` | Yes | Fully qualified `DATABASE.SCHEMA.TABLE` name. Must be one of the supported tables above |
| `backfill_window` | `object` | Yes | Time range to deliver. See [`backfill_window`](#backfill_window) |
| `filter` | `object` | No | Restrict delivery to matching rows. See [`filter`](#filter-optional). Default: `null` |
| `transforms` | [`Transform[]`](https://docs.allium.so/beam/api-reference/configuration#transforms) | No | Transforms applied to each row before delivery. Default: `[]` |
| `destinations` | [`Sink[]`](https://docs.allium.so/beam/api-reference/configuration#sinks) | Yes | Exactly one destination |
| `static_egress_ip` | `boolean` | No | Send webhook traffic from a static outbound IP. Default: `false` |

## `backfill_window`

Backfills select rows by block timestamp. `start` is inclusive, `end` is exclusive, and `start` must be earlier than `end`. `start` must be within the last 90 days. Timestamps without a timezone are treated as UTC.

```json theme={null}
{
  "partition_key": "block_timestamp",
  "start": "2026-09-01T00:00:00Z",
  "end": "2026-10-01T00:00:00Z"
}
```

| Field | Type | Required | Description |
| :- | :- | :- | :- |
| `partition_key` | `"block_timestamp"` | Yes | `block_timestamp` for all currently supported tables |
| `start` | string | No | Inclusive ISO 8601 start timestamp. Default: now − 90 days + 1 minute |
| `end` | string | No | Exclusive ISO 8601 end timestamp. Default: now |

## `filter` (optional)

```json theme={null}
{
  "column": "token_address",
  "values": ["0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"]
}
```

| Field | Type | Required | Description |
| :- | :- | :- | :- |
| `column` | `string` | Yes | Column to match. Letters, digits, `_` and `.` only (`^[A-Za-z0-9_.]+$`) |
| `values` | `string[]` | Yes | At least one value |

Only rows where `column` matches one of `values` are delivered.

## `transforms` (optional)

Transforms use the same `v8` shape as pipeline transforms. See the [transforms reference](https://docs.allium.so/beam/api-reference/configuration.md#transforms). Datasets referenced with `beam.contains()` must belong to your organization.

## `destinations`

`destinations` takes exactly one entry, using the same types as pipeline sinks. See the [sinks reference](https://docs.allium.so/beam/api-reference/configuration.md#sinks).
