List the platforms a work can be produced for
Code Mode: praxis.studio.platforms.list
HTTP: GET /studio/v1/platforms
List rendition targets with the format each needs, whether it receives a finished piece through an API, a draft box or an export, and the hard limits a piece must respect. Pass a genre to see only the platforms that genre produces by default. Read one platform in full before rendering, because its limits decide whether the rendition validates.
Signature
praxis.studio.platforms.list(args?:{query?:{/** e.g. "xiaohongshu_note" */ genre?:string}}):Promise<{/** Every platform in the answer, each with its format, publish method and hard limits. */ items:Array<{/** Versioned platform key; the version suffix moves when that platform changes its rules. e.g. "x@1" */ key?:string;/** Display name of the platform as people know it, such as X, 小红书 or 公众号. e.g. "X" */ name?:string;/** Rendition format this platform consumes, which decides how the draft is assembled for it. */ format?:"markdown"|"text"|"docx"|"inline_html"|"card_png"|"post_text"|"thread"|"lexical_html"|"epub"|"video_meta";/** How a finished piece reaches the platform, which decides whether a connected channel is needed. */ publish?:"api"|"draft_box"|"export";/** How closely the Console preview matches the published result; an approximate preview is labelled as such. */ preview_fidelity?:"exact"|"approximate"|"none";limits?:{/** Longest allowed title in characters; absent means the platform states no title limit. e.g. 20 */ title_chars?:number;/** Longest allowed body in characters; absent means the platform states no body limit. e.g. 1000 */ body_chars?:number;/** Weighted character budget for one post, where a CJK character counts two and a URL counts as twenty-three. e.g. 280 */ weighted_per_post?:number;/** Most images one post may carry; absent means the platform states no image count. e.g. 18 */ images?:number;/** Aspect ratio the platform expects for images, which the card renderer follows. */ image_aspect?:"3:4"|"1:1"|"4:5"|"16:9";/** Image file formats the platform accepts; a card rendered in another format is converted first. */ image_formats?:Array<"jpeg"|"png"|"webp"|"gif">};/** Whether a connected channel is required before this platform can receive a rendition. */ needs_channel?:boolean;/** Channel permission tiers this platform accepts, one for staging a draft and one for publishing. */ channel_scopes?:Array<"draft"|"publish">;/** Delivery stage that opened this platform; a value other than s3 means a rendition for it is still refused. */ available_from?:"s3"|"s5"|"s7";/** Limit names still unconfirmed against the platform documentation; treat the listed values as provisional. */ unverified?:Array<string>}>}>;Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| genre | query | string | no | A genre key from the genre list; when given, only the platforms that genre produces by default are returned. Omit it to list every platform open today. |
Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The platforms open today, each with its format, publish method and hard limits. |
| 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 | GENRE_NOT_FOUND means the key names no genre in the catalog; read the genre list and pass one of its keys exactly. |
| 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. |