Webhooks API
Refresh project demos from deployment pipelines.
Webhooks API
The project refresh webhook is designed for CI/CD systems.
textPOST /api/v1/webhooks/projects/{projectId}/refresh
Request
bashcurl -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:
bashcurl -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 demos in the project.