---
title: "Get Procurement Document Version Url"
method: GET
path: "/api/v1/procurement-documents/version-url"
tags: ["v1", "Material & Procurement"]
---

# Get Procurement Document Version Url

`GET /api/v1/procurement-documents/version-url`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/procurement-documents/version-url`
- Auth: none declared

Mint a signed URL for one specific PAST version of a PO PDF.

Regenerate PDF (2026-08-05) now writes each generation to a distinct
storage object (see _generate_pdf_for_items in manual_materials.py) so
old versions' bytes survive later regenerates instead of being
destructively overwritten — but the Track panel's doc_regenerated
Timeline entries only ever had the CURRENT document's signed URL to
link to. This resolves a signed URL for the specific storage_path
recorded on that version's own timeline event, so clicking "v2" while
"v4" is current actually opens v2's content, not v4's (Trevor: "all
the versions are the same, all attachments have same po pdf").

storage_path is restricted to this project's own procurement-documents/
prefix — the caller only supplies the tail of a path already stamped on
one of THIS project's own state_history entries, but this still blocks
a crafted path from reaching into another project's folder.

## Query parameters

- `project_id` integer, nullable
- `storage_path` string, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
