Skip to main content
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.

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:
curl 'https://api.x.com/2/powerstream?backfillMinutes=5' \
  -H "Authorization: Bearer $ACCESS_TOKEN"
Older Posts are delivered first. Posts are not deduplicated — your system should be tolerant of duplicates.

Recovery

For disconnections longer than 5 minutes (up to 24 hours), use the startTime and endTime parameters:
ParameterTypeDescription
startTimeISO 8601 dateStart time to recover from (UTC)
endTimeISO 8601 dateEnd time to recover to (UTC)
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