Get a download URL for a rendition file
Code Mode: praxis.studio.works.renditions.retrieveContent
HTTP: GET /studio/v1/works/{work}/renditions/{rendition}/content
Get a signed, short-lived URL to download what a rendition produced. Without part it points to the rendition’s own first file: the ZIP of pages for a card rendition, the DOCX for docx@1. With part it points to that part’s first file, such as one card PNG; a part that has no file, or a rendition not rendered yet, answers RENDITION_NOT_RENDERED, and an index no part has answers INVALID_PARAMS. Call it after a successful render or export, download the url before expire_time, and call again for a fresh one when it has expired. The URL is a credential: do not store or share it.
签名
praxis.studio.works.renditions.retrieveContent(args:{path:{/** e.g. "wu-gang" */ work:string;/** e.g. "rnd_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ rendition:string};query?:{/** e.g. 0 */ part?:number}}):Promise<{/** Signed URL that downloads the file with a plain GET and no further credentials; treat it as a secret. e.g. "https://api.deepraxis.com/file/v1/content/abc123" */ url:string;/** Time the URL stops working in RFC 3339 UTC; call the content operation again for a new one. e.g. "2026-11-06T09:36:12Z" */ expire_time:string}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| work | path | string | 是 | The work being addressed, either its organization-unique slug or its wk_ identifier; a slug case is what a person would say, and a renamed slug still resolves through its old value. |
| rendition | path | string | 是 | Rendition being addressed, by its rnd_ identifier from the rendition list or from the create answer. |
| part | query | number | 否 | Index of the part to download, the index value of an entry in the rendition’s parts list; omit it to get the rendition’s own first file. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | The signed download URL and the time it stops working. |
| 400 | application/json | INVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call. |
| 401 | application/json | The API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header. |
| 404 | application/json | RENDITION_NOT_FOUND or WORK_NOT_FOUND means the rendition or its work is not reachable; use the rnd_ identifier from the rendition list and the work slug, since a deleted rendition never returns. |
| 409 | application/json | RENDITION_NOT_RENDERED means the rendition or the requested part has no produced file yet; call the render operation, check render_state, and ask again once it is rendered. |
| 500 | application/json | INTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed. |