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

# Recovery and redundancy

> This page covers Powerstream-specific recovery and redundancy features. Reference for the X API v2 standard tier covering powerstream.

This page covers Powerstream-specific recovery and redundancy features. For comprehensive guidance on recovery and redundancy across all streaming endpoints, see the [Recovery and redundancy fundamentals guide](/x-api/fundamentals/recovery-and-redundancy).

## Powerstream recovery features

The core concepts for recovery and redundancy apply to all streaming endpoints. See the fundamentals guide for:

* Redundant connections
* Backfill vs. Recovery decision tree
* Best practices

## Backfill

For disconnections of **5 minutes or less**, use the `backfillMinutes` parameter:

```bash theme={null}
curl 'https://api.x.com/2/powerstream?backfillMinutes=5' \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

<Note>
  Older Posts are delivered first. Posts are **not** deduplicated — your system should be tolerant of duplicates.
</Note>

## Recovery

For disconnections **longer than 5 minutes** (up to 24 hours), use the `startTime` and `endTime` parameters:

| Parameter   | Type          | Description                      |
| :---------- | :------------ | :------------------------------- |
| `startTime` | ISO 8601 date | Start time to recover from (UTC) |
| `endTime`   | ISO 8601 date | End time to recover to (UTC)     |

```bash theme={null}
curl 'https://api.x.com/2/powerstream?startTime=2022-07-12T15:10:00Z&endTime=2022-07-12T15:20:00Z' \
  -H "Authorization: Bearer $ACCESS_TOKEN"
```

Once connected, Recovery will re-stream the specified time period, then disconnect.

***

## Next steps

<CardGroup cols={2}>
  <Card title="Recovery and redundancy" icon="shield" href="/x-api/fundamentals/recovery-and-redundancy">
    Complete recovery guide
  </Card>

  <Card title="Handling disconnections" icon="plug" href="/x-api/fundamentals/handling-disconnections">
    Handle streaming disconnections
  </Card>

  <Card title="Consuming streaming data" icon="stream" href="/x-api/fundamentals/consuming-streaming-data">
    Build robust streaming clients
  </Card>
</CardGroup>
