List the works of this organization
Code Mode: praxis.studio.works.list
HTTP: GET /studio/v1/works
List works owned by the API key organization so you can find the one being discussed, with its drafts and how long ago each moved. Archived works are left out unless you ask for them. Continue with next_page_token until the answer stops carrying one; the summaries carry no unit bodies, so read a work before writing in it.
Signature
praxis.studio.works.list(args?:{query?:{/** e.g. 20 */ page_size?:number;/** e.g. "01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ page_token?:string;/** e.g. false */ archived?:boolean}}):Promise<{/** Work summaries on this page, newest change first. */ items:Array<{/** Work identifier, stable across slug renames; the list is the right place to learn it. e.g. "wk_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** Resource kind marker, always studio.workSummary for a list row. e.g. "studio.workSummary" */ object:string;/** Organization-unique work name to use in every later call. e.g. "wu-gang" */ slug:string;/** Working title shown in the list so a person recognises the work. e.g. "乌江" */ title:string;/** Draft summaries with their genres, sizes and the state of their last rendition. */ drafts:Array<{/** Draft identifier, stable when its in-work key is renamed. e.g. "drf_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ id:string;/** In-work key of the draft, such as novel or xiaohongshu, used in the draft path segment of every later call. e.g. "novel" */ key:string;/** Genre this draft was created with, which decides the kinds, properties and checks it obeys. e.g. "novel_long" */ genre:string;/** Page title of the draft, such as a platform note with its campaign name; the published title is a draft property instead. e.g. "乌江 · 长篇小说" */ title:string;/** Whether the thing this draft derives from moved past the revision it was built on, which a rebase call clears. */ stale:boolean;/** Number of units in the draft tree today, counted across every level. e.g. 24 */ unit_count:number;/** Total characters written across the draft bodies, with whitespace removed. e.g. 68210 */ chars:number;/** Draft structure and property revision; pass it as expected_revision when changing the draft itself rather than a unit. e.g. 9 */ revision:number;/** Content revision of the draft; a draft derived from this one is stale once this passes its derived_from.revision. e.g. 22 */ content_revision:number;derived_from?:{/** What the draft was derived from: the goal message of the work, or another draft of the same work. */ kind:"message"|"draft";/** Identifier of the source draft, present only when the kind is draft. e.g. "drf_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ draft?:string;/** Source revision this draft was built on; when the source moves past it, stale becomes true until a rebase confirms the catch-up. e.g. 96 */ revision:number};last_rendition?:{/** Versioned platform key of that rendition, such as wechat_mp@1. e.g. "wechat_mp@1" */ platform?:string;/** State the rendition reached, such as exported or published; a state other than published means nothing reached the platform. e.g. "published" */ state?:string}}>;/** Whether this work is archived, which is why it appears in the archived page and not the active one. */ archived:boolean;/** Work this one was adapted from, or null when it was written from scratch; an adaptation keeps a link back to its source. e.g. "wk_01JQ8Z3M9K4V7B2N6C5X0YTRHW" */ adapted_from?:string;/** Work revision as of the list projection; the list may trail a write by a few seconds, so read the work itself before using it as expected_revision. e.g. 22 */ revision:number;/** Last change time in RFC 3339 UTC, used to order the list newest first. e.g. "2026-11-04T10:41:07Z" */ update_time:string;/** Console address of the work, safe to show to the person who asked for it. e.g. "https://console.deepraxis.com/studio/wu-gang" */ viewer_url:string;/** Cover file of the work, the file_ id a cover image was uploaded as, or null when the work has none. e.g. null */ cover:string|null;/** The work's one-sentence message, so a list can show it without reading each work. e.g. "时间可以被偷走,也可以被还回来" */ message:string;/** Number of entries in the work's own reference libraries. e.g. 5 */ entry_count:number}>;/** 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;/** Total number of works matching the request, when the service can count them cheaply; treat it as a hint, not a page count. e.g. 12 */ total_size?:number}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| page_size | query | number | no | 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 | no | 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. |
| archived | query | boolean | no | Set to true to list archived works instead of active ones; each page lists one of the two, never both. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | One page of work summaries with the cursor for the next page when more remain. |
| 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. |