The REST API does what the guide pages do: list guides, create one from a goal, re-record it, and follow its runs. Answers are JSON.
https://app.docreel.io/api/v1Authentication
Create a key in Settings → API and MCP. It is shown once, so copy it then. A key belongs to one project and sees only that project’s guides. Send it as a bearer token:
curl https://app.docreel.io/api/v1/guides \
-H "Authorization: Bearer dr_live_..."X-API-Key: dr_live_... works too. Revoke a key in Settings and it stops working at once.
Errors
Every error has the same shape and an HTTP status that matches it:
{ "error": { "code": "invalid_goal", "message": "goal is required: describe the task the guide should show." } }| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_json, invalid_goal, invalid_start_url, invalid_status, invalid_cursor | Something sent is wrong. The message says what. |
| 401 | unauthorized | No key, or the key is wrong or revoked. |
| 404 | not_found | No such guide or run in this key’s project, or no such endpoint. |
| 409 | still_drafting | The guide is still being drafted; it records itself when the draft ends. |
| 429 | rate_limited | Too many requests. Wait for Retry-After seconds. |
| 500 | internal_error | Our side failed. Try again. |
Rate limits
| Requests | Limit per key |
|---|---|
Reads (GET) | 120 a minute |
Writes (POST) | 30 a minute |
| Creating guides | 30 an hour |
Every answer carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (Unix seconds).
Guides
List guides
GET /guides
| Query | |
|---|---|
limit | 1 to 100, default 25 |
cursor | nextCursor from the previous page |
status | drafting, ready, fresh, changed, healed, broken or failed |
{
"data": [
{
"id": "cmx6c3nwg0000k2kpnij5aqo5",
"title": "Invite a teammate with the Editor role",
"goal": "Invite a teammate to the workspace with the Editor role",
"startUrl": "/team.html",
"status": "healed",
"statusText": "A button moved and was found again; the new version is live.",
"stepCount": 5,
"published": true,
"createdAt": "2026-12-02T16:20:31.000Z",
"lastRunAt": "2026-12-02T18:32:10.000Z",
"links": {
"player": "https://app.docreel.io/p/cmx6c3nwg0000k2kpnij5aqo5",
"embed": "https://app.docreel.io/p/cmx6c3nwg0000k2kpnij5aqo5?embed=1",
"video": "https://app.docreel.io/v/cmx6c3nwg0000k2kpnij5aqo5.mp4",
"videos": { "en": "https://app.docreel.io/v/cmx6c3nwg0000k2kpnij5aqo5.en.mp4" },
"poster": "https://app.docreel.io/e/cmx6c3nwg0000k2kpnij5aqo5/poster.jpg",
"screenshot": "https://app.docreel.io/e/cmx6c3nwg0000k2kpnij5aqo5/{step}.png"
}
}
],
"nextCursor": null
}links is null until the guide has a live version. Replace {step} with a step number from 1.
Create a guide
POST /guides
| Field | |
|---|---|
goal | Required. The task, as a customer would ask it, 8 to 500 characters. |
startUrl | Where the task starts: a path such as /settings/team, or a full URL on the project’s app. Default /. |
curl https://app.docreel.io/api/v1/guides \
-H "Authorization: Bearer dr_live_..." \
-H "Content-Type: application/json" \
-d '{"goal": "Invite a teammate with the Editor role", "startUrl": "/settings/team"}'Answers 201 with the guide and its draft run. The agent drafts the steps, then a recording run starts by itself. Poll the guide, or listen for the version.published webhook.
{
"guide": { "id": "cmx7...", "status": "drafting", "published": false, "links": null },
"run": { "id": "cmx7...", "kind": "draft", "trigger": "api", "status": "queued" }
}Get a guide
GET /guides/:id
The guide’s steps and narration, its live version, the run in progress (activeRun) and the last finished run (lastRun). The live version has a URL for every step’s screenshot and for the video in each language:
{
"id": "cmx6c3nwg0000k2kpnij5aqo5",
"status": "healed",
"steps": [{ "number": 1, "action": "goto", "intent": "Open the Team page", "narration": { "en": "...", "de": "..." } }],
"liveVersion": {
"id": "cmx6...",
"number": 7,
"live": true,
"status": "healed",
"durationSeconds": 23.4,
"videos": { "en": "https://cdn.../video-en.mp4", "de": "https://cdn.../video-de.mp4" },
"steps": [
{
"number": 2,
"status": "healed",
"narration": "Click Add member to open the invite form.",
"diffRatio": 0.169,
"screenshot": "https://cdn.../step-2.png",
"diffImage": "https://cdn.../diff-2.png",
"healed": { "from": { "role": "button", "name": "Invite teammate" }, "to": { "role": "button", "name": "Add member" } },
"videoTime": 4.2,
"error": null
}
]
},
"activeRun": null,
"lastRun": { "id": "cmx6...", "kind": "record", "status": "done", "counts": { "changed": 4, "healed": 1, "broken": 0 } }
}Version URLs point at that version’s files and never change. For a link that follows new versions, use the guide’s links.
| Step status | |
|---|---|
unchanged | Matches the previous version. |
changed | The screenshot differs from the previous version (diffRatio is the share of pixels that changed). |
new | No previous screenshot to compare. |
healed | The element moved or was renamed and was found again. |
broken | The step failed. error says why. The version is not published. |
Re-record a guide
POST /guides/:id/rerecord
Queues a recording and answers 201 with the run. If one is already queued or running, you get that run instead.
curl -X POST https://app.docreel.io/api/v1/guides/GUIDE_ID/rerecord \
-H "Authorization: Bearer dr_live_..."List versions
GET /guides/:id/versions?limit=25
Newest first, each shaped like liveVersion above, with live: true on the one the links serve and published: false on versions held back by a broken step.
Runs
A run is one draft (kind: "draft") or recording (kind: "record"). trigger is api, manual, hook, schedule or create. status goes queued, running, then done or failed.
List a guide’s runs
GET /guides/:id/runs?limit=25
Get a run
GET /runs/:id
{
"id": "cmx6...",
"guideId": "cmx6c3nwg0000k2kpnij5aqo5",
"kind": "record",
"trigger": "api",
"status": "done",
"createdAt": "2026-12-02T18:30:02.000Z",
"startedAt": "2026-12-02T18:30:03.000Z",
"finishedAt": "2026-12-02T18:31:20.000Z",
"error": null,
"counts": { "changed": 4, "healed": 1, "broken": 0 },
"version": { "id": "cmx6...", "number": 7, "published": true },
"log": [{ "at": "2026-12-02T18:31:20.000Z", "level": "info", "text": "Published version 7: 4 changed, 1 healed" }]
}log holds the last 50 lines. A recording takes one to three minutes; poll every 10 seconds or use webhooks.
Project
GET /project returns the key’s project: its id, name, app URL, languages and webhook URL.