Ingest Code Occurrences
Ingest ONE batch of a key-usage run (Developer+).
Lifecycle: omit scan_id to OPEN a run (the response mints + echoes the id), echo it on follow-up batches, send final=true on the last one to CLOSE the run — only the close reconciles gone and runs the mass-gone guard. A scan_id that is not the project's current open run is a 422.
Each ref is resolved server-side to the BASE-version key_uuid; refs matching no live base key are counted unresolved and echoed (the missing-key signal), never stored. Re-posting a batch is idempotent. The response ALWAYS carries scan_id when supported — the CLI treats its absence as a pre-contract backend and must not drop occurrences silently.
Request
- Base URL: https://api.sonenta.dev
- URL: https://api.sonenta.dev/v1/projects/{project_id}/code-occurrences
- Auth: none declared
Path parameters
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.