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

# Webhooks API

Refresh project demos from deployment pipelines.

The project refresh webhook is designed for CI/CD systems.

```text
POST /api/v1/webhooks/projects/{projectId}/refresh
```

## Request

```bash
curl -X POST https://littledemo.com/api/v1/webhooks/projects/proj_abc123/refresh \
  -H "X-Webhook-Secret: whsec_xxx"
```

You can also authenticate with a live API key:

```bash
curl -X POST https://littledemo.com/api/v1/webhooks/projects/proj_abc123/refresh \
  -H "Authorization: Bearer ld_live_xxx"
```

## Response

```json
{
  "refreshed": 3,
  "jobs": [
    { "demoId": "demo_abc", "jobId": "job_123" }
  ]
}
```

The endpoint queues refresh jobs for ready generated demos in the project. Uploaded demos are skipped.