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

# roark connections agent backfill create

> Import past calls

Starts a backfill that imports up to `maxCalls` of the most recent past calls from a Retell, Vapi, ElevenLabs or Leaping connection. Other platforms return 400.

```bash Synopsis theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark connections agent backfill create <connection-id> [options]
```

> [!NOTE]
>
> Calls `POST /v1/connections/agent/{connectionId}/backfills`

## Arguments

**connection-id** `string` *required*

The connection-id.

## Options

**--max-calls** `integer` *required*

How many of the most recent past calls to import, up to 1000.

## Example

```bash theme={"theme":{"light":"everforest-light","dark":"everforest-dark"}}
roark connections agent backfill create <connection-id> --max-calls <value>
```

Every command also takes the [global options](https://docs.roark.ai/cli-reference/overview.md#global-options) and sets one
of the [exit codes](https://docs.roark.ai/cli-reference/overview.md#exit-codes).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.