List the writing styles of this organization
Code Mode: praxis.studio.styles.list
HTTP: GET /studio/v1/styles
List the styles this API key organization owns, each with its name and description, so you can choose the voice a work should be written in. Continue with next_page_token until the answer stops carrying one. Read one style in full before attaching it, because its samples are what actually shape the writing.
签名
praxis.studio.styles.list(args?:{query?:{/** e.g. 20 */ page_size?:number;/** e.g. "01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ page_token?:string;/** e.g. "wk_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ work?:string}}):Promise<{/** Styles on this page, newest first. */ items:Array<{/** 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}}>;/** Cursor for the next page, empty when this was the last one; pass it back as page_token unchanged. e.g. "" */ next_page_token?:string}>;参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
| page_size | query | number | 否 | How many items this page returns, 1 to 100; omitted uses the service default. Treat the answer as one page, not the whole set, and keep following next_page_token while it is present. |
| page_token | query | string | 否 | Cursor from the previous answer’s next_page_token; it is opaque, so pass it back unchanged and never build one from an id or an offset. |
| work | query | string | 否 | Narrow the list to what belongs to one work, by its wk_ identifier, which is how one work’s own setting is told apart from the organization’s shared material; omit it to list everything this organization owns. |
响应
| 状态码 | 内容类型 | 说明 |
|---|---|---|
| 200 | application/json | One page of styles with the cursor for the next page. |
| 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. |
| 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. |