downloadPackageFile
GET /api/v1/review-packages/{packageId}/revisions/{revisionId}/files
Immutable Draft-backed static publication. Omit manifest with a completed uploadId to infer a document directory, including commentary.package.json/yaml when present. Revisions reuse unchanged file hashes and require the exact previous package ETag; deletePaths explicitly removes retained files. Publication and Activity commit together before retryable indexing. Current workspace, package, linked Resource and source authority are rechecked for every read and download; project links confer no access. Ready revisions alone expose coherent content; executable bundles remain unsupported. Downloads return private attachment bytes, never storage credentials or privileged HTML/SVG.
Access
Section titled “Access”Use a credential with commentary.review_packages.read.
Provider access, workspace membership, and agent grants are enforced separately. A token does not expand access to a repository or resource. Set up developer access.
Parameters
Section titled “Parameters”| Name | Location | Type | Required | Description |
|---|---|---|---|---|
packageId |
path | string | Yes | |
revisionId |
path | string | Yes | |
path |
query | string | Yes |
Call the endpoint
Section titled “Call the endpoint”Replace path placeholders and your credential. For body operations, create request.json using the required fields above; this command does not invent resource identifiers or consent.
curl --request GET \ 'https://commentary.dev/api/v1/review-packages/<packageId>/revisions/<revisionId>/files' \ --header 'Authorization: Bearer <your-token>'Responses
Section titled “Responses”| Status | Meaning | Payload |
|---|---|---|
200 |
Authorized immutable bytes with attachment disposition and no-store caching. | See response headers or body contract |
400 |
Invalid manifest/chunk/checksum or missing retry key. | See response headers or body contract |
401 |
Authentication required. | See response headers or body contract |
403 |
Current actor/workspace/grant access denied. | See response headers or body contract |
409 |
Expired/canceled upload, missing chunks, or conflicting retry. | See response headers or body contract |
413 |
Actual request bytes exceed the bound. | See response headers or body contract |
429 |
Rate limit exceeded. | See response headers or body contract |
Recover from errors
Section titled “Recover from errors”Use the returned status and error body. Correct invalid fields before retrying; reconnect or narrow the target for authentication and permission errors. For conditional writes, reload the latest version before preparing a new request. Respect rate-limit headers and retry only when the operation’s idempotency contract permits it.
Contract and related guidance
Section titled “Contract and related guidance”Operation ID: downloadPackageFile. Download the OpenAPI contract for complete constraints and code generation. Browse endpoints.