Each project has a deploy hook URL. A POST to it queues a re-record of every guide in the project. Find it in Settings → Re-recording. The token in the URL is the secret, so keep it out of public repos. Make a new hook URL replaces it and stops the old one.
curl -X POST https://app.docreel.io/api/hooks/HOOK_TOKEN{ "ok": true, "queued": 12 }Point the hook at the environment Docreel records. If Docreel records your staging app, call it after the staging deploy.
GitHub Actions
Add the URL as a repository secret named DOCREEL_HOOK, then call it as the last step of your deploy job:
name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# ...your build and deploy steps...
- name: Re-record help guides
run: curl -fsS -X POST "$DOCREEL_HOOK"
env:
DOCREEL_HOOK: ${{ secrets.DOCREEL_HOOK }}GitHub release webhook
To re-record when you publish a release, add the URL in Repository settings → Webhooks with content type application/json, and pick Let me select individual events → Releases. Docreel answers GitHub’s ping, and ignores release drafts and edits.
Vercel
Vercel has no outgoing “deployment finished” hook on every plan, so call Docreel from your build once the deployment is ready. With the Vercel CLI in CI:
url=$(vercel deploy --prod --token "$VERCEL_TOKEN")
curl -fsS -X POST "$DOCREEL_HOOK"Or, on plans with webhooks, add the Docreel URL in Team settings → Webhooks for the deployment.succeeded event. Docreel re-records on any POST.
Any other CI
Any tool that can send a POST works: GitLab CI, CircleCI, Netlify build plugins, a postdeploy script. To re-record a single guide instead of the whole project, use the REST API: POST /api/v1/guides/GUIDE_ID/rerecord.
Daily schedule
Every guide is also re-recorded once a day, unless you turn it off in Settings → Re-recording. The deploy hook and the schedule share the queue: a guide already queued is not queued twice.