Review bundle files that are not saved on the server (SDD §12.2 --server, REQ-111 review_content). The server keeps the files and the result for 90 days for the report (SDD §12.4); it changes no bundle.
const url = 'https://example.com/api/v1/reviews';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"slug":"example","main_doc":"example","profile":"example","stages":["rubric"],"files":[{"path":"example","content":"example","encoding":"text"}]}'};
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/v1/reviews \ --header 'Content-Type: application/json' \ --data '{ "slug": "example", "main_doc": "example", "profile": "example", "stages": [ "rubric" ], "files": [ { "path": "example", "content": "example", "encoding": "text" } ] }'Request Bodyrequired
Section titled “Request Bodyrequired”object
The bundle’s slug. Links from other bundles and to this one use it.
The main doc of a single-file bundle (REQ-001 form b). Absent means the one file with a type in its frontmatter.
The profile for a main doc with no type in its frontmatter (REQ-130).
object
The path in the bundle.
The file text, or base64 when encoding is base64.
Responses
Section titled “ Responses ”The findings and the verdict.
object
The app page of the report, relative to the server, such as /reviews/{id}.
The doc size the review used, from the frontmatter or inferred (REQ-134).
object
object
object
The run the finding belongs to. A carried finding belongs to the last full review.
A valid waiver covers this finding (REQ-074).
The check is in adoption mode, so it reports at INFO (REQ-133).
The overlay layer that shows this finding (SDD §13.2). No layer for other findings.
For a drifted code link, the commit URL a verification run reads to check the code still conforms.
For a coverage gap, the upstream trace ID it is about.
The anchor in the bundle’s current version, re-anchored when the run read an older version.
object
Byte offset of the quote in the file.
The text changed, and Speccy cannot find the quote in the current version (SDD §8.8).
Example
{ "verdict": { "result": "build_ready" }, "findings": [ { "level": "MUST", "layer": "ambiguous" } ]}default
Section titled “default”An error.
RFC 9457 problem details with a stable code.
object
A stable machine-readable error code.
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}