Skip to content
中文

Read one writing style

Code Mode: praxis.studio.styles.retrieve

HTTP: GET /studio/v1/styles/{style}

Read one style in full: its samples, the wording to use and to avoid, and its glossary of wrong-to-right terms. Read it before attaching it to a work, since samples decide the sound of the writing far more than the description does, and a glossary term also becomes a deterministic check against the text.

Signature

praxis.studio.styles.retrieve(args:{path:{/** e.g. "sty_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ style:string}}):Promise<{/** Style identifier; a style has no name-based address, so this is what the style path takes. e.g. "sty_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** Resource kind marker, always studio.style for this shape. e.g. "studio.style" */ object:string;/** Creation time in RFC 3339 UTC. e.g. "2026-11-04T09:40:00Z" */ create_time?:string;/** Time of the last change to this style in RFC 3339 UTC. e.g. "2026-11-04T10:11:20Z" */ update_time?:string;/** Console address that opens this style, where its samples can be read beside a piece written with it. e.g. "https://console.deepraxis.com/studio/styles/sty_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ viewer_url:string;/** Name of the style, used by people to pick it when attaching it to a work or a draft. e.g. "克制的白描" */ name:string;/** Short description of the voice; the samples do the real work, so this is a label rather than an instruction. e.g. "短句为主,少形容词,情绪靠动作带出。" */ description:string;/** One to five paragraphs of writing the piece should sound like; these paragraphs reach the context pack, so they carry the style. */ samples:Array<string>;/** Picture samples of this style, in the order they were written; they show what the voice looks like on the page and are not sent to a writer. */ pictures:Array<{/** Identifier of the uploaded file, from the file service; the bytes stay there and the gallery only references them, so attaching the same file to several entries e.g. "file_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ file:string;/** Short name shown under the picture, such as a view or a costume; at most 40 characters after trimming. e.g. "定妆 · 正面" */ name:string;/** What this particular picture shows and why it was chosen, such as the lighting or the angle; at most 200 characters, and an empty string means no description. e.g. "冷光,半身,衣领扣到最上面一颗。" */ description:string}>;/** Work this style belongs to, or null for a style that belongs to no single work; a work may only use its own styles, so attaching a style of another work is refu e.g. "wk_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ work:string;/** Wording and habits to keep, such as a preferred term or a sentence rhythm, stated as instructions a writer can follow. */ use:Array<string>;/** Words and stock phrases to avoid; they also become the banned-word check for any draft that uses this style. */ avoid:Array<string>;/** Terms mapped from a wrong spelling to the right one; the glossary check flags the wrong spelling wherever it appears. e.g. {"沙盒":"沙箱"} */ glossary:{[key:string]:string}}>;

Parameters

NameInTypeRequiredDescription
stylepathstringyesStyle being addressed, by its sty_ identifier; a style has no name-based address, so read the style list first when only the name is known.

Responses

StatusContent typesDescription
200application/jsonThe style with its samples, its avoid list and its glossary.
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/jsonSTYLE_NOT_FOUND means no style in this organization has that identifier; read the style list and pass one of its identifiers.
500application/jsonINTERNAL means the request could not complete; re-read the resource before retrying a write, because the write may already have landed.