Skip to content
中文

Read one rendition

Code Mode: praxis.studio.works.renditions.retrieve

HTTP: GET /studio/v1/works/{work}/renditions/{rendition}

Read one rendition in full: its render state, the validation issues the render found, the parts (one per card page or thread post), the files it produced and its publish state. Call it after create, render or publish to see the outcome, because a render that finished invalid or failed is reported here and not as an HTTP error. stale is true when the draft has changed since source_revision; call the render operation before exporting a stale rendition.

Signature

praxis.studio.works.renditions.retrieve(args:{path:{/** e.g. "wu-gang" */ work:string;/** e.g. "rnd_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ rendition:string}}):Promise<{/** Rendition identifier, the value the rendition path segment takes. e.g. "rnd_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** Resource kind marker, always studio.rendition for this shape. e.g. "studio.rendition" */ object:string;/** Creation time in RFC 3339 UTC. e.g. "2026-11-06T09:20:11Z" */ create_time?:string;/** Time of the last change to this rendition in RFC 3339 UTC. e.g. "2026-11-06T09:21:40Z" */ update_time?:string;/** Console address of this rendition, which opens the work page on it. e.g. "https://console.deepraxis.com/studio/wu-gang?draft=xiaohongshu" */ viewer_url?:string;/** Identifier of the work this rendition belongs to. e.g. "wk_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ work:string;/** Identifier of the draft this rendition is built from. e.g. "drf_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ draft:string;/** Versioned platform key the rendition is for, such as xiaohongshu@1, docx@1 or markdown@1. e.g. "xiaohongshu@1" */ platform:string;/** File format the platform receives, decided by the platform. e.g. "card_png" */ format:"markdown"|"text"|"docx"|"inline_html"|"card_png"|"post_text"|"thread"|"lexical_html"|"epub"|"video_meta";/** Theme the rendition uses, a thm_ identifier or a built-in theme key; null means the platform default. e.g. "warm-card" */ theme?:string|null;settings?:{/** Whether external links become footnotes at the end of the article, for platforms that do not allow links in the text. e.g. true */ footnote_links?:boolean;/** How the posts of a thread are numbered. e.g. "n/m" */ thread_numbering?:"none"|"n/"|"n/m";/** How a card rendition arranges its text cards and photos. */ cards?:{/** Order of text cards and photos. e.g. "text_then_photos" */ layout:"text_then_photos"|"interleave"|"photos_only";/** Name of the draft property whose image becomes the cover card. e.g. "images" */ cover_from_prop?:string};/** For a book format, the chapters to include. */ chapter_range?:{/** First chapter number to include. e.g. 1 */ from:number;/** Last chapter number to include. e.g. 10 */ to:number}};/** Content revision of the draft this rendition was last rendered from; compared with the draft to derive stale. e.g. 14 */ source_revision:number;/** True when the draft has changed past source_revision. e.g. false */ stale:boolean;/** Where the render stands. e.g. "rendered" */ render_state:"pending"|"rendering"|"rendered"|"invalid"|"failed";/** Findings of the last render, errors and warnings; empty when there are none. */ issues:Array<{/** Whether the finding blocks export. e.g. "warning" */ severity:"error"|"warning";/** Stable machine code such as draft_empty, heading_missing or render_unavailable; branch on this value, never on the message text. e.g. "heading_missing" */ code:string;/** Human-readable explanation of what was found, written to be shown as is. e.g. "The note has no title" */ message:string;/** Identifier of the unit the finding is about, when it is about one unit. e.g. "unt_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ unit?:string;/** Identifier of the block inside that unit the finding is about, when it is about one block. e.g. "blk_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ block?:string;/** A suggested repair when the check knows one. e.g. "Add a title to the first unit" */ suggestion?:string}>;/** The parts of the rendition in order: card pages and a final copy part for a card rendition. */ parts:Array<{/** Position of this part in the rendition; pass it as the part query of the content operation. e.g. 0 */ index:number;/** Identifiers of the units this part was built from. */ units:Array<string>;/** Text of this part when it carries text, such as the copy part of a card rendition, whose text starts with the note title. e.g. "初夏通勤包,我只背这一个" */ text?:string;/** Identifiers of the files rendered for this part, such as one card PNG of 1080 by 1440 pixels; empty for a text-only part. */ files:Array<string>;/** Identifier of the post on the platform, present only after the part was published to an account; always null for an export. */ remote_id?:string|null;/** Link of the post on the platform, present only after the part was published to an account; always null for an export. */ remote_url?:string|null;/** Where this part is in publishing; an exported part stays pending because nothing was sent to an account. e.g. "pending" */ publish_state:"pending"|"sending"|"sent"|"failed"|"uncertain";/** Why this part failed, present only when publish_state is failed. */ error?:{/** Stable machine code of the failure. e.g. "PLATFORM_REJECTED" */ code:string;/** Human-readable explanation of the failure. e.g. "The platform rejected the post" */ message:string};/** Hash of the content of this part, used to recognise a part that was already sent. e.g. "9f2c6a1b" */ content_hash?:string}>;/** Identifiers of the whole-rendition files, such as the DOCX, or the ZIP a card rendition gains when exported. */ files:Array<string>;/** Source images already uploaded to a platform, keyed by file identifier; empty for an export. */ assets?:{[key:string]:{/** Media identifier or address on the platform. e.g. "media_123" */ remote?:string;/** Kind of media on the platform, such as image. e.g. "image" */ kind?:string;/** Upload time in RFC 3339 UTC. e.g. "2026-11-06T09:30:00Z" */ upload_time?:string}};/** How closely the Console preview matches what the platform shows. e.g. "approximate" */ preview_fidelity?:"exact"|"approximate"|"none";/** Export and publish state, kept apart from the render state. */ publish:{/** How this platform receives the rendition. e.g. "export" */ method:"api"|"draft_box"|"export";/** Where export or publishing stands; every rendition starts at none and an export ends at exported. e.g. "exported" */ state:"none"|"scheduled"|"exporting"|"exported"|"drafting"|"drafted"|"publishing"|"published"|"partial"|"failed"|"blocked_auth"|"cancelled";/** Channel account used for publishing; null for an export. */ channel?:string|null;/** Scheduled publish time in RFC 3339 UTC; null for an export. */ scheduled_time?:string|null;/** Time until which a running render or export holds the rendition; a second render or export before then answers REVISION_CONFLICT. */ lease_until?:string|null;/** When the export or publish finished in RFC 3339 UTC; null until then. e.g. "2026-11-06T09:31:12Z" */ publish_time?:string|null;/** Who ran the export or publish; null until then. */ by?:({/** Whether the change came from a person, an agent or the platform itself; an agent session through the API is recorded as an agent. */ kind?:"user"|"agent"|"system";/** Identifier of that actor, such as a user identifier or an agent session identifier. e.g. "usr_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id?:string;/** Display name of the actor when one is known, shown beside the change. e.g. "张三" */ label?:string});/** Findings of the checks run before publishing, such as channel authorization. */ preflight?:Array<{/** Whether the finding blocks export. e.g. "warning" */ severity:"error"|"warning";/** Stable machine code such as draft_empty, heading_missing or render_unavailable; branch on this value, never on the message text. e.g. "heading_missing" */ code:string;/** Human-readable explanation of what was found, written to be shown as is. e.g. "The note has no title" */ message:string;/** Identifier of the unit the finding is about, when it is about one unit. e.g. "unt_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ unit?:string;/** Identifier of the block inside that unit the finding is about, when it is about one block. e.g. "blk_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ block?:string;/** A suggested repair when the check knows one. e.g. "Add a title to the first unit" */ suggestion?:string}>}}>;

Parameters

NameInTypeRequiredDescription
workpathstringyesThe 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.
renditionpathstringyesRendition being addressed, by its rnd_ identifier from the rendition list or from the create answer.

Responses

StatusContent typesDescription
200application/jsonThe rendition with its render state, issues, parts, files and publish state.
400application/jsonINVALID_PARAMS means a field is missing, malformed or not allowed for this resource; correct the named field and repeat the call.
401application/jsonThe API key is missing, invalid or carries no organization; send a valid organization key in the Authorization header.
404application/jsonRENDITION_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.
500application/jsonINTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.