Source: https://dinakar-rewind.docs.pageloop.ai/api-reference/admin/adminattendingbackfillfeed

# Backfill activity_feed rows for existing attended events

POST `https://api.rewind.rest/v1/admin/attending/backfill-feed`

One-shot backfill: walks `attended_events`, builds an activity-feed row for each, and inserts via the standard cross-domain insert path. Idempotent — feed-side dedupe on (domain, source\_id) means re-running is safe. Used once on PR rollout to populate historical events; new events get feed rows automatically via loadCanonicalEvent.

## Authorization

#### Authorization (header, string, required)

API key. Read keys (rw\_live\_...) access GET endpoints. Admin keys (rw\_admin\_...) access all endpoints.

## Body

#### limit (body, integer)

#### dry\_run (body, boolean)

## Response

#### 200

Backfill completed

#### status (enum (string), required) — allowed: completed

#### scanned (integer, required)

#### inserted (integer, required)

#### skipped (integer, required)

#### 401

Unauthorized

#### error (string, required)

#### status (integer, required)

#### 500

Internal server error

#### error (string, required)

#### status (integer, required)

#### Request

```bash cURL
curl -X POST 'https://api.rewind.rest/v1/admin/attending/backfill-feed' \
  -H 'Authorization: Bearer <token>' \
  -H 'Content-Type: application/json' \
  -d '{"limit": 0, "dry_run": true}'
```

```javascript JavaScript
const res = await fetch('https://api.rewind.rest/v1/admin/attending/backfill-feed', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <token>',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({"limit": 0, "dry_run": true}),
});
const data = await res.json();
```

```python Python
import requests

res = requests.post(
    'https://api.rewind.rest/v1/admin/attending/backfill-feed',
    headers={'Authorization': 'Bearer <token>'},
    json={"limit": 0, "dry_run": true}
)
data = res.json()
```

#### Response

```json 200
{
  "status": "completed",
  "scanned": 0,
  "inserted": 0,
  "skipped": 0
}
```

```json 401
{
  "error": "Not found",
  "status": 404
}
```

```json 500
{
  "error": "Not found",
  "status": 404
}
```
