`POST /api/projects/{id}/backlog/scan?dry_run=<bool>` (S3). Auth required; the project must belong to the caller's active workspace (enforced in the service). `dry_run` defaults to `true` (preview — writes nothing). The acting user is the authenticated caller (the service is workspace-scoped, so a foreign project is a 404).
const url = 'https://example.com/api/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/backlog/scan';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/backlog/scanPOST /api/projects/{id}/backlog/scan?dry_run=<bool> (S3). Auth required;
the project must belong to the caller’s active workspace (enforced in the
service). dry_run defaults to true (preview — writes nothing). The acting
user is the authenticated caller (the service is workspace-scoped, so a
foreign project is a 404).
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Project ID
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”OK
The scan response: the contract shared with the FE agent. On dry_run=true
no rows are written and new_items previews what WOULD be inserted; on
dry_run=false items are inserted idempotently — a tracker source inserts only
(ON CONFLICT DO NOTHING), a git-forge source also refreshes the issue facts of
an existing item (SC-2).
object
One scanned/previewed item, as surfaced on the scan report (the minimal
shape the FE preview needs — the full row lives in backlog_items).
object
linear | notion | the git-provider name.
SC-2 / AUD-PERF-002 — true when the issue listing reached its safety ceiling
and issues beyond it were not scanned. Optional on the wire so an older client
keeps parsing the response.
Example generated
{ "dry_run": true, "existing": 1, "new": 1, "new_items": [ { "external_id": "example", "title": "example" } ], "project_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "source": "example", "total_issues": 1, "truncated": true}