Projects, versions, exports, edits, templates and style libraries endpoints.
Base URL https://app.contenthero.ai/api/v1. All endpoints take a bearer API key. The tables on this page are generated from the route contract: the Scope column is the scope the key needs, and a route that lists two scopes needs both.
Projects
A project is an editor timeline or a canvas. GET /projects/{projectId} answers its composition state and its revision; pass the revision back as expectedRevision when you edit, so a write over a newer edit is refused instead of overwriting it. Project settings (canvas size, frame rate, loudness, linkage) change through PATCH /projects/{projectId}, never through the edit path.
Method
Path
Scope
Purpose
GET
/projects
editor:read
List your editor and canvas projects, filtered and sorted, a page at a time.
POST
/projects
editor:write and planner:write
Create an editor or canvas project, and a card for it.
POST
/projects/import
editor:write and planner:write
Import a PowerPoint or Google Slides file (by URL) or a Canva design (by id) into a new canvas project with editable layers.
GET
/projects/{projectId}
editor:read
One project in full: metadata, composition state, revision and type. Pass revision back as expectedRevision when editing.
PATCH
/projects/{projectId}
editor:write
Change a project’s name, brand kit, cover and settings (canvas size, fps, loudness, linkage). Settings change through the edit path, so they are undoable and versioned.
DELETE
/projects/{projectId}
editor:write
Permanently delete a project. Irreversible, so it needs confirm=true; archive is the reversible alternative.
POST
/projects/{projectId}/duplicate
editor:write
Copy a project, optionally from one of its saved versions (versionId, a premium feature).
POST
/projects/{projectId}/undo
editor:write
Reverse the project’s most recent edit, or the one named by revision. Answers the new revision.
POST
/projects/{projectId}/redo
editor:write
Re-apply the edit most recently undone. Answers the new revision.
GET /projects
Query
Field
Type
Required
Description
cursor
string
The previous page’s cursor.
filter
archived | favorited
archived -> only archived; favorited -> favorited and not archived; omitted -> active (not archived).
limit
integer
How many to return.
order
asc | desc
The sort direction.
search
string
Case-insensitive title search.
sort
updatedAt | createdAt | title
The field to sort by.
type
editor | canvas
Restrict to one project type; omitted returns both.
POST /projects
Body
Field
Type
Required
Description
brandKitId
string
Optional brand kit to associate.
cardId
string
The card this project is for: the new project is linked to it in the same call (it shows among the card’s assets), so the card opens the edit from the moment it exists. Also needs the planner:write scope.
fps
number or number or number or number or number
Frames per second for an editor project: 24, 25, 30, 50 or 60. Defaults to 30.
height
number
Pixel height. Defaults from the orientation.
orientation
string
Aspect ratio, e.g. ‘16:9’, ‘9:16’, ‘1:1’. Defaults to ‘16:9’.
title
string
Project title. Defaults to ‘Untitled’.
type
editor | canvas
The project type. Defaults to ‘editor’.
width
number
Pixel width. Defaults from the orientation.
POST /projects/import
Body
Field
Type
Required
Description
source
object or object
Yes
What to import: a PowerPoint or Google Slides file by address, or a Canva design by id.
cardId
string
The card this project is for: the new project is linked to it in the same call (it shows among the card’s assets), so the card opens the edit from the moment it exists. Also needs the planner:write scope.
pageCount
number
The slide count, for an early check against the import limit.
title
string
The new project’s title.
GET /projects/{projectId}
Query
Field
Type
Required
Description
atSec
number[]
With sourceAssetId: the seconds of that recording to place.
clipIds
string[]
Read only these clips: each one’s summary line, or whole with its code and the modules it imports with detail ‘full’; nothing else of the project.
detail
summary | full
’summary’ (default) returns the lightweight per-clip/per-layer structure; ‘full’ returns the complete composition with every property.
fromFrame
integer
Timeline only: start of a frame window; returns clips overlapping [fromFrame, toFrame].
moduleNames
string[]
Read these project modules’ code.
modulesIndex
boolean
Read the index of the project’s modules: each one’s name, how many clips draw it, whether none does, and its size, without code. Read alone, like the other parts.
slideId
string
Canvas only: scope the read to a single slide by id. Applies to detail:‘full’ as well. An id matching no slide returns every slide rather than nothing.
sourceAssetId
string
With atSec: the recording whose moments to place on the timeline, by the assetId a clip’s source names.
toFrame
integer
Timeline only: end of the frame window (see fromFrame).
trackId
string
Timeline only: scope the read to a single track by id.
PATCH /projects/{projectId}
Body
Field
Type
Required
Description
brandKitId
string or null
A brand kit id from list_brand_kits, or null to clear it.
cover
string or object or object
How the cover is chosen: ‘auto’ follows the composition, { frame } is a chosen moment (for a canvas, a slide’s index among its visible slides), { mediaId } is an image from the library.
coverPosition
object or null
Where the cover is framed, as percentages of its width and height, or null for the default framing.
expectedRevision
integer
The project revision you last read, from get_project or the last edit. An older one still applies when nothing since touched what the edit touches; otherwise nothing is written and the conflict names the current revision and what overlapped. Omit to apply to the project as it is. On update_project it guards the settings in the document; the title, brand kit and cover are not versioned.
fps
number or number or number or number or number
Video projects only: the frame rate. Every frame number in the timeline converts with it, so clips keep their timing.
height
integer
A pixel height, given with width.
linkage
boolean
Video projects only: whether clips on other tracks follow the main track’s ripple and are deleted with the main clip they sit on.
linkedTracks
object
Video projects only: which kinds of track linkage reaches; a kind you omit is left alone.
loudness
number or string
Video projects only: the delivery loudness. Every export follows it.
magneticTrack
boolean
Video projects only: the magnetic main track. On, moving, trimming or deleting a clip on the main track closes the gap it leaves, and turning it on closes the gaps already there.
orientation
string
An aspect from the editor’s list, or custom. Alone, it sets the size the editor gives that aspect.
title
string
A new title.
width
integer
A pixel width, given with height.
DELETE /projects/{projectId}
Query
Field
Type
Required
Description
confirm
boolean
Yes
Must be true to confirm the irreversible permanent delete.
POST /projects/{projectId}/duplicate
Body
Field
Type
Required
Description
versionId
string
A saved version to copy from, by its id from list_project_versions. Omit to copy the project as it is now.
POST /projects/{projectId}/undo
Body
Field
Type
Required
Description
expectedRevision
integer
The revision from get_project; rejects with a conflict if a concurrent edit landed.
revision
integer
A specific revision to reverse. Omit for the most recent edit.
POST /projects/{projectId}/redo
Body
Field
Type
Required
Description
expectedRevision
integer
The revision from get_project; rejects with a conflict if a concurrent edit landed.
revision
integer
A specific revision to reverse. Omit for the most recent edit.
Versions
Method
Path
Scope
Purpose
GET
/projects/{projectId}/versions
editor:read
The project’s saved versions, newest first, a page at a time. Premium, as in the editor.
POST
/projects/{projectId}/versions
editor:write
Save the project’s current state as a version, optionally labeled.
POST
/projects/{projectId}/versions/{versionId}
editor:write
Restore a version into the project. The current state is saved first, so the restore can itself be restored.
PATCH
/projects/{projectId}/versions/{versionId}
editor:write
Name a version with label; an empty label clears it.
DELETE
/projects/{projectId}/versions/{versionId}
editor:write
Remove a version.
GET /projects/{projectId}/versions
Query
Field
Type
Required
Description
cursor
string
The previous page’s cursor.
limit
integer
How many to return.
POST /projects/{projectId}/versions
Body
Field
Type
Required
Description
label
string
A name for the version.
PATCH /projects/{projectId}/versions/{versionId}
Body
Field
Type
Required
Description
label
string
Yes
The new name; empty clears it.
Exports
An export renders the project’s saved composition in the background: start it, then poll GET /exports/{exportId} or GET /status/{id} until it finishes, then fetch the file with GET /download/{id}.
Method
Path
Scope
Purpose
GET
/export-formats
editor:read
The export formats and their options, by project kind: what POST /projects/{projectId}/export accepts.
POST
/projects/{projectId}/export
editor:write
Start an export (a render) of the project’s saved composition. Asynchronous: answers { exportId, status }.
GET
/projects/{projectId}/exports
editor:read
The project’s exports, newest first, finished and running, a page at a time.
GET
/exports/{exportId}
editor:read
Poll one export: its status, progress and, once finished, its output URL.
POST /projects/{projectId}/export
Body
Field
Type
Required
Description
format
string
Output format, one get_schema kind ‘export’ lists. Defaults to ‘mp4’.
frame
integer
Editor still (png/jpg) only: which timeline frame to render. Clamped to the composition length. Defaults 0. Use the playhead frame from view to render exactly the frame the user is viewing.
loudness
number or string
Rendered exports (video and sound) only: this export’s loudness, in place of the project’s own (get_project reads it). Omitted, the project’s.
maxCharsPerLine
integer
Subtitles (srt, vtt) only: the longest a line may be, 20 to 80 characters. Defaults 42.
maxLinesPerCard
integer
Subtitles (srt, vtt) only: lines per subtitle card, 1 to 4. Defaults 2.
quality
low | recommended | high
mp4 ONLY: video bitrate. Meaningless for a still, which has no duration to spread bits over. Defaults recommended.
resolution
480p | 720p | 1080p | 2k | 4k
Output resolution, for EVERY format including stills. Defaults ‘720p’ for an editor mp4 and the project’s NATIVE size for a still or canvas mp4, in both cases clamped to your plan. 1080p and above are plan-gated: NAMING one above your plan is a 403, omitting one clamps instead.
showSpeakers
boolean
Subtitles (srt, vtt) only: name who speaks, when the captions hold more than one speaker. Defaults false.
timecodes
boolean
Transcripts (txt, docx, rtf, md, html) only: start each paragraph with its timecode.
watermark
boolean
Keep the watermark. Defaults true; removing it is plan-gated.
GET /projects/{projectId}/exports
Query
Field
Type
Required
Description
cursor
string
The previous page’s cursor.
limit
integer
How many to return.
Edits and schemas
POST /editor/ops applies a batch of ops to a project and saves it atomically. The schema routes list what an op, a layer, a clip, a track and an effect can be, so a call can be built from the real shapes.
Method
Path
Scope
Purpose
POST
/editor/ops
editor:write
Apply a batch of ops to a project’s composition (canvas slides or editor timeline) and save atomically, with optimistic concurrency and an op log.
GET
/editor/transcript
editor:read
A project’s transcript mapped to timeline clips, in timeline order, so edits can target exact clip ids.
GET
/editor/layer-types
editor:read
The canvas schema: every update_canvas op and layer type with its shape. With name, one entry in full.
GET
/editor/timeline-types
editor:read
The editor timeline schema: every update_timeline op, clip type and track type. With name, one entry in full.
GET
/editor/effects
editor:read
Every effect a clip can carry, with its group and what it does. With name, one effect and its parameters in full.
GET
/editor/code-guide
editor:read
The authoring guide for a clip’s code: what the sandbox provides, the composition’s units, the brand props and the size limit.
POST /editor/ops
Body
Field
Type
Required
Description
ops
object[]
Yes
The operations to apply, in order. Their shapes come from get_schema; they are not declared here.
projectId
string
Yes
The project to edit.
expectedRevision
integer
The project revision you last read, from get_project or the last edit. An older one still applies when nothing since touched what the edit touches; otherwise nothing is written and the conflict names the current revision and what overlapped. Omit to apply to the project as it is.
userIntent
string
A short description of what this edit does (for attribution).
GET /editor/transcript
Query
Field
Type
Required
Description
cursor
string
The answer’s nextCursor, to read the next page of segments with the same other inputs.
endMs
integer
Source-media end time in ms; companion to startMs.
endSeconds
number
With mediaId: where the window ends.
granularity
clip | word
’clip’ (default) returns text per clip; ‘word’ adds word timing + absolute timeline frames + confidence + speaker, derived silences, and audio events.
limit
integer
How many clip segments a page holds. Omit for the default.
mediaId
string
The recording whose words to read. Use instead of projectId.
paceThresholdMs
integer
Word mode: minimum pause (ms) to report as a silence / dead-air region (“Pace”). Defaults to the project’s saved pace, else 500.
paddingEndMs
integer
Word mode: breathing room (ms) kept before speech at a silence end edge (negative tightens). Defaults to the saved padding, else 200.
paddingStartMs
integer
Word mode: breathing room (ms) kept after speech at a silence start edge (negative tightens). Defaults to the saved padding, else 200.
projectId
string
The project whose timeline words to read. Use instead of mediaId.
search
string
Case-insensitive substring; returns only clip segments whose text contains it.
startMs
integer
Source-media start time in ms; with endMs, returns only segments overlapping this window (and, in word mode, clips the returned words to it).
startSeconds
number
With mediaId: where in the recording the window begins, in the recording’s seconds.
GET /editor/layer-types
Query
Field
Type
Required
Description
detail
string
full adds the complete reference to an entry read by name.
include
string[]
Parts to add to each entry: jsonSchema adds the JSON Schema of its props.
name
string
Read one entry by name.
GET /editor/timeline-types
Query
Field
Type
Required
Description
detail
string
full adds the complete reference to an entry read by name.
include
string[]
Parts to add to each entry: jsonSchema adds the JSON Schema of its props.
name
string
Read one entry by name.
GET /editor/effects
Query
Field
Type
Required
Description
name
string
Read one effect by name.
Templates
Method
Path
Scope
Purpose
GET
/templates
editor:read
The templates you can see, ContentHero’s and your own, without their code, a page at a time.
POST
/templates
editor:write
Save a template of your own from exactly one source: the fields, a placed item (fromItem), or a copy (fromTemplateId).
GET
/templates/categories
editor:read
The categories in use among the templates you can see, with how many each holds.
GET
/templates/{id}
editor:read
One template you can see, with its code.
PATCH
/templates/{id}
editor:write
Change one of your templates. expectedVersion refuses a write over content that changed since it was read.
DELETE
/templates/{id}
editor:write
Delete one of your templates. Placed copies are snapshots and keep everything.
GET /templates
Query
Field
Type
Required
Description
archived
string
only lists archived templates, to restore one with archive; they are left out otherwise.
category
string[]
Only templates in these categories.
cursor
string
The previous page’s cursor.
kind
code | shape | emoji | logo
Only templates that draw this.
limit
integer
How many to return.
scope
system | user | all
system is ContentHero’s, user is the user’s own; all (the default) is both.
search
string
Every word, in any order, in the name or the tags. For logos, also in a logo’s other names, best match first.
POST /templates
Body
Field
Type
Required
Description
afterId
string
Place it immediately after this item of the same list.
artboard
object or null
The artboard it was drawn on and where its content sits in it.
aspect
number or null
Its own width over height, for resize scale.
beforeId
string
Place it immediately before this item of the same list.
category
string
Its category: one list_templates shows, or a new one.
code
string
The code: a React component, as get_schema (kind ‘code’) teaches.
coverage
full | partial
full: the whole frame; partial: a box of widthFraction by heightFraction.
description
string or null
What it is for.
durationFrames
integer
How long it lasts when placed, in frames.
emoji
string
An animated emoji’s name, as the animated emoji list names it.
fps
number
The frame rate its duration counts at.
fromItem
object
A placed code clip, code layer or shape to save: the project id and the clip or layer id.
fromTemplateId
string
A template to copy, from list_templates.
heightFraction
number or null
Its default height, a fraction of the canvas’s.
lottie
object
A Lottie file of ours, and the colors in it that props recolor (each role names a prop).
name
string
Its name in the Elements panel.
position
top | bottom
Place it at an end of the list instead of beside an item. Name neighbors or a position, not both.
previewUrl
string or null
Its preview.
props
object
Its props as placed. Media in them is a MediaRef ({ assetId, role }), never a stored URL.
propsSchema
object or null
Each prop’s control, as get_template shows them; brand names the brand value a prop takes when placed.
resize
scale | reflow
scale keeps its proportions in any box; reflow lays out again in the box it is given.
shape
string
A shape’s name, as the shape layer type lists them in get_schema kind ‘layer’.
sourceTemplateId
string or null
The template it was copied from.
sourceTemplateVersion
integer or null
The version of that template it was copied at.
tags
string[]
Words it is found by.
thumbnailUrl
string or null
Its thumbnail.
widthFraction
number or null
Its default width, a fraction of the canvas’s.
GET /templates/categories
Query
Field
Type
Required
Description
cursor
string
The previous page’s cursor.
limit
integer
How many to return.
scope
system | user | all
system is ContentHero’s, user is the user’s own; all (the default) is both.
PATCH /templates/{id}
Body
Field
Type
Required
Description
afterId
string
Place it immediately after this item of the same list.
artboard
object or null
The artboard it was drawn on and where its content sits in it.
aspect
number or null
Its own width over height, for resize scale.
beforeId
string
Place it immediately before this item of the same list.
category
string
Its category: one list_templates shows, or a new one.
code
string
The code: a React component, as get_schema (kind ‘code’) teaches.
coverage
full | partial
full: the whole frame; partial: a box of widthFraction by heightFraction.
description
string or null
What it is for.
durationFrames
integer
How long it lasts when placed, in frames.
emoji
string
An animated emoji’s name, as the animated emoji list names it.
expectedVersion
integer
The version you read; the write is refused if the template changed since.
fps
number
The frame rate its duration counts at.
heightFraction
number or null
Its default height, a fraction of the canvas’s.
lottie
object
A Lottie file of ours, and the colors in it that props recolor (each role names a prop).
name
string
Its name in the Elements panel.
position
top | bottom
Place it at an end of the list instead of beside an item. Name neighbors or a position, not both.
previewUrl
string or null
Its preview.
props
object
Its props as placed. Media in them is a MediaRef ({ assetId, role }), never a stored URL.
propsSchema
object or null
Each prop’s control, as get_template shows them; brand names the brand value a prop takes when placed.
resize
scale | reflow
scale keeps its proportions in any box; reflow lays out again in the box it is given.
shape
string
A shape’s name, as the shape layer type lists them in get_schema kind ‘layer’.
sourceTemplateId
string or null
The template it was copied from.
sourceTemplateVersion
integer or null
The version of that template it was copied at.
tags
string[]
Words it is found by.
thumbnailUrl
string or null
Its thumbnail.
widthFraction
number or null
Its default width, a fraction of the canvas’s.
Style libraries
Method
Path
Scope
Purpose
GET
/style-libraries
editor:read
List your style libraries, filtered and sorted, a page at a time.
POST
/style-libraries
editor:write
Create a style library.
GET
/style-libraries/{id}
editor:read
One style library by id or name: its versions and the projects pinning it. With version, that one version with its code.
PATCH
/style-libraries/{id}
editor:write
Change a style library, or publish a new version of it.
GET /style-libraries
Query
Field
Type
Required
Description
archived
boolean
Only archived style libraries.
cursor
string
The previous page’s cursor.
limit
integer
How many to return.
order
asc | desc
The sort direction.
search
string
Search style library names.
sort
updatedAt | name
The field to sort by.
POST /style-libraries
Body
Field
Type
Required
Description
name
string
Yes
The style library name.
description
string or null
What the style library is for.
fromProject
object
Modules of one project: { projectId, modules, revision }. The revision guards against a project that changed.
modules
object
Modules by name: { code }, { edits } against baseVersion, or null to drop one.
notes
string or null
What this version changes.
GET /style-libraries/{id}
Query
Field
Type
Required
Description
cursor
string
The previous page’s cursor.
limit
integer
How many to return.
version
integer
The version to read, with each module’s code.
PATCH /style-libraries/{id}
Body
Field
Type
Required
Description
baseVersion
integer or null
The version the change builds on.
description
string or null
What the style library is for.
fromProject
object
Modules of one project: { projectId, modules, revision }. The revision guards against a project that changed.
modules
object
Modules by name: { code }, { edits } against baseVersion, or null to drop one.
notes
string or null
What this version changes.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"ContentHero","description":"Create, edit, schedule, and publish content from your AI assistant. Generate images, video, and voiceovers, plan your content calendar, and draft on-brand copy, from hooks and scripts to captions and ads, grounded in what already performs for you.","colors":{"primary":"#d4af37","light":"#e0c25a","dark":"#b89a30"},"logo":{"light":"https://mintcdn.com/contenthero/k4OiX1Sa6r0RKHqA/logo/light.svg?fit=max\u0026auto=format\u0026n=k4OiX1Sa6r0RKHqA\u0026q=85\u0026s=504e91b0415e02ca2679249bcda5f07f","dark":"https://mintcdn.com/contenthero/k4OiX1Sa6r0RKHqA/logo/dark.svg?fit=max\u0026auto=format\u0026n=k4OiX1Sa6r0RKHqA\u0026q=85\u0026s=46f7e067bfcc6ecc9ada76312a822a6f"},"favicon":"https://mintcdn.com/contenthero/k4OiX1Sa6r0RKHqA/favicon.svg?fit=max\u0026auto=format\u0026n=k4OiX1Sa6r0RKHqA\u0026q=85\u0026s=6508bbfd99dd3c47d8e4b1c57702cad0","navbar":{"links":[{"href":"https://app.contenthero.ai","label":"App"},{"href":"https://github.com/contenthero-ai/skills","label":"Skills"}],"primary":{"type":"button","label":"Get an API key","href":"https://app.contenthero.ai"}},"footer":{"socials":{"github":"https://github.com/contenthero-ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","grok"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"contenthero","hasAudioNarration":false,"actualSubdomain":"contenthero","customDomains":["docs.contenthero.ai"],"gitSource":{"type":"github","owner":"contenthero-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6b099a29a6ac4123050f6ea9","clientVersion":"0.0.4344","searchFilterCounts":[{"language":"default","tag":"MCP","count":27},{"language":"default","tag":"Set up your host","count":17},{"language":"default","tag":"API Reference","count":16},{"language":"default","tag":"Cookbook","count":12},{"language":"default","tag":"Guides","count":10},{"language":"default","tag":"CLI","count":10},{"language":"default","tag":"Tool reference","count":8},{"language":"default","tag":"Skills","count":5},{"language":"default","tag":"Building with ContentHero","count":4},{"language":"default","tag":"Get Started","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/editor","slug":"/api-reference/editor","pageMetadata":{"title":"Editor","description":"Projects, versions, exports, edits, templates and style libraries endpoints.","href":"/api-reference/editor"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Projects, versions, exports, edits, templates and style libraries endpoints.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Heading,Table}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Base URL `,_jsx(_components.code,{children:`https://app.contenthero.ai/api/v1`}),`. All endpoints take a bearer API key. The tables on this page are generated from the route contract: the Scope column is the scope the key needs, and a route that lists two scopes needs both.`]}),`\n`,_jsx(Heading,{level:`2`,id:`projects`,children:`Projects`}),`\n`,_jsxs(_components.p,{children:[`A project is an editor timeline or a canvas. `,_jsx(_components.code,{children:`GET /projects/{projectId}`}),` answers its composition `,_jsx(_components.code,{children:`state`}),` and its `,_jsx(_components.code,{children:`revision`}),`; pass the revision back as `,_jsx(_components.code,{children:`expectedRevision`}),` when you edit, so a write over a newer edit is refused instead of overwriting it. Project settings (canvas size, frame rate, loudness, linkage) change through `,_jsx(_components.code,{children:`PATCH /projects/{projectId}`}),`, never through the edit path.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsx(_components.td,{children:`List your editor and canvas projects, filtered and sorted, a page at a time.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`editor:write`}),` and `,_jsx(_components.code,{children:`planner:write`})]}),_jsx(_components.td,{children:`Create an editor or canvas project, and a card for it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/import`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`editor:write`}),` and `,_jsx(_components.code,{children:`planner:write`})]}),_jsx(_components.td,{children:`Import a PowerPoint or Google Slides file (by URL) or a Canva design (by id) into a new canvas project with editable layers.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsxs(_components.td,{children:[`One project in full: metadata, composition `,_jsx(_components.code,{children:`state`}),`, `,_jsx(_components.code,{children:`revision`}),` and `,_jsx(_components.code,{children:`type`}),`. Pass `,_jsx(_components.code,{children:`revision`}),` back as `,_jsx(_components.code,{children:`expectedRevision`}),` when editing.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PATCH`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsx(_components.td,{children:`Change a project’s name, brand kit, cover and settings (canvas size, fps, loudness, linkage). Settings change through the edit path, so they are undoable and versioned.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DELETE`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsxs(_components.td,{children:[`Permanently delete a project. Irreversible, so it needs `,_jsx(_components.code,{children:`confirm=true`}),`; archive is the reversible alternative.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}/duplicate`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsxs(_components.td,{children:[`Copy a project, optionally from one of its saved versions (`,_jsx(_components.code,{children:`versionId`}),`, a premium feature).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}/undo`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsxs(_components.td,{children:[`Reverse the project’s most recent edit, or the one named by `,_jsx(_components.code,{children:`revision`}),`. Answers the new revision.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}/redo`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsx(_components.td,{children:`Re-apply the edit most recently undone. Answers the new revision.`})]})]})]}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`GET /projects`,id:`get-projects`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The previous page’s cursor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`filter`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`archived`}),` | `,_jsx(_components.code,{children:`favorited`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`archived -> only archived; favorited -> favorited and not archived; omitted -> active (not archived).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many to return.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`asc`}),` | `,_jsx(_components.code,{children:`desc`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The sort direction.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`search`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Case-insensitive title search.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sort`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`updatedAt`}),` | `,_jsx(_components.code,{children:`createdAt`}),` | `,_jsx(_components.code,{children:`title`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The field to sort by.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`editor`}),` | `,_jsx(_components.code,{children:`canvas`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Restrict to one project type; omitted returns both.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /projects`,id:`post-projects`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`brandKitId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Optional brand kit to associate.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cardId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The card this project is for: the new project is linked to it in the same call (it shows among the card’s assets), so the card opens the edit from the moment it exists. Also needs the planner:write scope.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fps`})}),_jsx(_components.td,{children:`number or number or number or number or number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Frames per second for an editor project: 24, 25, 30, 50 or 60. Defaults to 30.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`height`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Pixel height. Defaults from the orientation.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`orientation`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Aspect ratio, e.g. ‘16:9’, ‘9:16’, ‘1:1’. Defaults to ‘16:9’.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`title`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Project title. Defaults to ‘Untitled’.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`type`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`editor`}),` | `,_jsx(_components.code,{children:`canvas`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The project type. Defaults to ‘editor’.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`width`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Pixel width. Defaults from the orientation.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /projects/import`,id:`post-projects-import`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`source`})}),_jsx(_components.td,{children:`object or object`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`What to import: a PowerPoint or Google Slides file by address, or a Canva design by id.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cardId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The card this project is for: the new project is linked to it in the same call (it shows among the card’s assets), so the card opens the edit from the moment it exists. Also needs the planner:write scope.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`pageCount`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The slide count, for an early check against the import limit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`title`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The new project’s title.`})]})]})]})]}),_jsxs(Accordion,{title:`GET /projects/{projectId}`,id:`get-projects-projectid`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`atSec`})}),_jsx(_components.td,{children:`number[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`With sourceAssetId: the seconds of that recording to place.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`clipIds`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Read only these clips: each one’s summary line, or whole with its code and the modules it imports with detail ‘full’; nothing else of the project.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`detail`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`summary`}),` | `,_jsx(_components.code,{children:`full`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`’summary’ (default) returns the lightweight per-clip/per-layer structure; ‘full’ returns the complete composition with every property.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fromFrame`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Timeline only: start of a frame window; returns clips overlapping [fromFrame, toFrame].`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`moduleNames`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Read these project modules’ code.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`modulesIndex`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Read the index of the project’s modules: each one’s name, how many clips draw it, whether none does, and its size, without code. Read alone, like the other parts.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`slideId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Canvas only: scope the read to a single slide by id. Applies to detail:‘full’ as well. An id matching no slide returns every slide rather than nothing.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sourceAssetId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`With atSec: the recording whose moments to place on the timeline, by the assetId a clip’s source names.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`toFrame`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Timeline only: end of the frame window (see fromFrame).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`trackId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Timeline only: scope the read to a single track by id.`})]})]})]})]}),_jsxs(Accordion,{title:`PATCH /projects/{projectId}`,id:`patch-projects-projectid`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`brandKitId`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A brand kit id from list_brand_kits, or null to clear it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cover`})}),_jsx(_components.td,{children:`string or object or object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How the cover is chosen: ‘auto’ follows the composition, { frame } is a chosen moment (for a canvas, a slide’s index among its visible slides), { mediaId } is an image from the library.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`coverPosition`})}),_jsx(_components.td,{children:`object or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Where the cover is framed, as percentages of its width and height, or null for the default framing.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expectedRevision`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The project revision you last read, from get_project or the last edit. An older one still applies when nothing since touched what the edit touches; otherwise nothing is written and the conflict names the current revision and what overlapped. Omit to apply to the project as it is. On update_project it guards the settings in the document; the title, brand kit and cover are not versioned.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fps`})}),_jsx(_components.td,{children:`number or number or number or number or number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Video projects only: the frame rate. Every frame number in the timeline converts with it, so clips keep their timing.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`height`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A pixel height, given with width.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`linkage`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Video projects only: whether clips on other tracks follow the main track’s ripple and are deleted with the main clip they sit on.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`linkedTracks`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Video projects only: which kinds of track linkage reaches; a kind you omit is left alone.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`loudness`})}),_jsx(_components.td,{children:`number or string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Video projects only: the delivery loudness. Every export follows it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`magneticTrack`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Video projects only: the magnetic main track. On, moving, trimming or deleting a clip on the main track closes the gap it leaves, and turning it on closes the gaps already there.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`orientation`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`An aspect from the editor’s list, or custom. Alone, it sets the size the editor gives that aspect.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`title`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A new title.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`width`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A pixel width, given with height.`})]})]})]})]}),_jsxs(Accordion,{title:`DELETE /projects/{projectId}`,id:`delete-projects-projectid`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`confirm`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`Must be true to confirm the irreversible permanent delete.`})]})})]})]}),_jsxs(Accordion,{title:`POST /projects/{projectId}/duplicate`,id:`post-projects-projectid-duplicate`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`versionId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A saved version to copy from, by its id from list_project_versions. Omit to copy the project as it is now.`})]})})]})]}),_jsxs(Accordion,{title:`POST /projects/{projectId}/undo`,id:`post-projects-projectid-undo`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expectedRevision`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The revision from get_project; rejects with a conflict if a concurrent edit landed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`revision`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A specific revision to reverse. Omit for the most recent edit.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /projects/{projectId}/redo`,id:`post-projects-projectid-redo`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expectedRevision`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The revision from get_project; rejects with a conflict if a concurrent edit landed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`revision`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A specific revision to reverse. Omit for the most recent edit.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`versions`,children:`Versions`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}/versions`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsx(_components.td,{children:`The project’s saved versions, newest first, a page at a time. Premium, as in the editor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}/versions`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsx(_components.td,{children:`Save the project’s current state as a version, optionally labeled.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}/versions/{versionId}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsx(_components.td,{children:`Restore a version into the project. The current state is saved first, so the restore can itself be restored.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PATCH`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}/versions/{versionId}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsxs(_components.td,{children:[`Name a version with `,_jsx(_components.code,{children:`label`}),`; an empty label clears it.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DELETE`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}/versions/{versionId}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsx(_components.td,{children:`Remove a version.`})]})]})]}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`GET /projects/{projectId}/versions`,id:`get-projects-projectid-versions`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The previous page’s cursor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many to return.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /projects/{projectId}/versions`,id:`post-projects-projectid-versions`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`label`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A name for the version.`})]})})]})]}),_jsxs(Accordion,{title:`PATCH /projects/{projectId}/versions/{versionId}`,id:`patch-projects-projectid-versions-versionid`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`label`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The new name; empty clears it.`})]})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`exports`,children:`Exports`}),`\n`,_jsxs(_components.p,{children:[`An export renders the project’s saved composition in the background: start it, then poll `,_jsx(_components.code,{children:`GET /exports/{exportId}`}),` or `,_jsx(_components.code,{children:`GET /status/{id}`}),` until it finishes, then fetch the file with `,_jsx(_components.code,{children:`GET /download/{id}`}),`.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/export-formats`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsxs(_components.td,{children:[`The export formats and their options, by project kind: what `,_jsx(_components.code,{children:`POST /projects/{projectId}/export`}),` accepts.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}/export`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsxs(_components.td,{children:[`Start an export (a render) of the project’s saved composition. Asynchronous: answers `,_jsx(_components.code,{children:`{ exportId, status }`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/projects/{projectId}/exports`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsx(_components.td,{children:`The project’s exports, newest first, finished and running, a page at a time.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/exports/{exportId}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsx(_components.td,{children:`Poll one export: its status, progress and, once finished, its output URL.`})]})]})]}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`POST /projects/{projectId}/export`,id:`post-projects-projectid-export`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`format`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Output format, one get_schema kind ‘export’ lists. Defaults to ‘mp4’.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`frame`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Editor still (png/jpg) only: which timeline frame to render. Clamped to the composition length. Defaults 0. Use the playhead frame from view to render exactly the frame the user is viewing.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`loudness`})}),_jsx(_components.td,{children:`number or string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Rendered exports (video and sound) only: this export’s loudness, in place of the project’s own (get_project reads it). Omitted, the project’s.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`maxCharsPerLine`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Subtitles (srt, vtt) only: the longest a line may be, 20 to 80 characters. Defaults 42.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`maxLinesPerCard`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Subtitles (srt, vtt) only: lines per subtitle card, 1 to 4. Defaults 2.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`quality`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`low`}),` | `,_jsx(_components.code,{children:`recommended`}),` | `,_jsx(_components.code,{children:`high`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`mp4 ONLY: video bitrate. Meaningless for a still, which has no duration to spread bits over. Defaults recommended.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resolution`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`480p`}),` | `,_jsx(_components.code,{children:`720p`}),` | `,_jsx(_components.code,{children:`1080p`}),` | `,_jsx(_components.code,{children:`2k`}),` | `,_jsx(_components.code,{children:`4k`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Output resolution, for EVERY format including stills. Defaults ‘720p’ for an editor mp4 and the project’s NATIVE size for a still or canvas mp4, in both cases clamped to your plan. 1080p and above are plan-gated: NAMING one above your plan is a 403, omitting one clamps instead.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`showSpeakers`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Subtitles (srt, vtt) only: name who speaks, when the captions hold more than one speaker. Defaults false.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`timecodes`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Transcripts (txt, docx, rtf, md, html) only: start each paragraph with its timecode.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`watermark`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Keep the watermark. Defaults true; removing it is plan-gated.`})]})]})]})]}),_jsxs(Accordion,{title:`GET /projects/{projectId}/exports`,id:`get-projects-projectid-exports`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The previous page’s cursor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many to return.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`edits-and-schemas`,children:`Edits and schemas`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`POST /editor/ops`}),` applies a batch of ops to a project and saves it atomically. The schema routes list what an op, a layer, a clip, a track and an effect can be, so a call can be built from the real shapes.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/editor/ops`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsx(_components.td,{children:`Apply a batch of ops to a project’s composition (canvas slides or editor timeline) and save atomically, with optimistic concurrency and an op log.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/editor/transcript`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsx(_components.td,{children:`A project’s transcript mapped to timeline clips, in timeline order, so edits can target exact clip ids.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/editor/layer-types`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsxs(_components.td,{children:[`The canvas schema: every `,_jsx(_components.code,{children:`update_canvas`}),` op and layer type with its shape. With `,_jsx(_components.code,{children:`name`}),`, one entry in full.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/editor/timeline-types`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsxs(_components.td,{children:[`The editor timeline schema: every `,_jsx(_components.code,{children:`update_timeline`}),` op, clip type and track type. With `,_jsx(_components.code,{children:`name`}),`, one entry in full.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/editor/effects`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsxs(_components.td,{children:[`Every effect a clip can carry, with its group and what it does. With `,_jsx(_components.code,{children:`name`}),`, one effect and its parameters in full.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/editor/code-guide`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsx(_components.td,{children:`The authoring guide for a clip’s code: what the sandbox provides, the composition’s units, the brand props and the size limit.`})]})]})]}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`POST /editor/ops`,id:`post-editor-ops`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`ops`})}),_jsx(_components.td,{children:`object[]`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The operations to apply, in order. Their shapes come from get_schema; they are not declared here.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`projectId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The project to edit.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expectedRevision`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The project revision you last read, from get_project or the last edit. An older one still applies when nothing since touched what the edit touches; otherwise nothing is written and the conflict names the current revision and what overlapped. Omit to apply to the project as it is.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`userIntent`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A short description of what this edit does (for attribution).`})]})]})]})]}),_jsxs(Accordion,{title:`GET /editor/transcript`,id:`get-editor-transcript`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The answer’s nextCursor, to read the next page of segments with the same other inputs.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`endMs`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Source-media end time in ms; companion to startMs.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`endSeconds`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`With mediaId: where the window ends.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`granularity`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`clip`}),` | `,_jsx(_components.code,{children:`word`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`’clip’ (default) returns text per clip; ‘word’ adds word timing + absolute timeline frames + confidence + speaker, derived silences, and audio events.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many clip segments a page holds. Omit for the default.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`mediaId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The recording whose words to read. Use instead of projectId.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`paceThresholdMs`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Word mode: minimum pause (ms) to report as a silence / dead-air region (“Pace”). Defaults to the project’s saved pace, else 500.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`paddingEndMs`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Word mode: breathing room (ms) kept before speech at a silence end edge (negative tightens). Defaults to the saved padding, else 200.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`paddingStartMs`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Word mode: breathing room (ms) kept after speech at a silence start edge (negative tightens). Defaults to the saved padding, else 200.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`projectId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The project whose timeline words to read. Use instead of mediaId.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`search`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Case-insensitive substring; returns only clip segments whose text contains it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`startMs`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Source-media start time in ms; with endMs, returns only segments overlapping this window (and, in word mode, clips the returned words to it).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`startSeconds`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`With mediaId: where in the recording the window begins, in the recording’s seconds.`})]})]})]})]}),_jsxs(Accordion,{title:`GET /editor/layer-types`,id:`get-editor-layer-types`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`detail`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`full adds the complete reference to an entry read by name.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`include`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Parts to add to each entry: jsonSchema adds the JSON Schema of its props.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Read one entry by name.`})]})]})]})]}),_jsxs(Accordion,{title:`GET /editor/timeline-types`,id:`get-editor-timeline-types`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`detail`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`full adds the complete reference to an entry read by name.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`include`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Parts to add to each entry: jsonSchema adds the JSON Schema of its props.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Read one entry by name.`})]})]})]})]}),_jsxs(Accordion,{title:`GET /editor/effects`,id:`get-editor-effects`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Read one effect by name.`})]})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`templates`,children:`Templates`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/templates`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsx(_components.td,{children:`The templates you can see, ContentHero’s and your own, without their code, a page at a time.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/templates`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsxs(_components.td,{children:[`Save a template of your own from exactly one source: the fields, a placed item (`,_jsx(_components.code,{children:`fromItem`}),`), or a copy (`,_jsx(_components.code,{children:`fromTemplateId`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/templates/categories`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsx(_components.td,{children:`The categories in use among the templates you can see, with how many each holds.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/templates/{id}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsx(_components.td,{children:`One template you can see, with its code.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PATCH`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/templates/{id}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsxs(_components.td,{children:[`Change one of your templates. `,_jsx(_components.code,{children:`expectedVersion`}),` refuses a write over content that changed since it was read.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`DELETE`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/templates/{id}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsx(_components.td,{children:`Delete one of your templates. Placed copies are snapshots and keep everything.`})]})]})]}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`GET /templates`,id:`get-templates`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`archived`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`only lists archived templates, to restore one with archive; they are left out otherwise.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`category`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Only templates in these categories.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The previous page’s cursor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`kind`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`code`}),` | `,_jsx(_components.code,{children:`shape`}),` | `,_jsx(_components.code,{children:`emoji`}),` | `,_jsx(_components.code,{children:`logo`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Only templates that draw this.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many to return.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`scope`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`system`}),` | `,_jsx(_components.code,{children:`user`}),` | `,_jsx(_components.code,{children:`all`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`system is ContentHero’s, user is the user’s own; all (the default) is both.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`search`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Every word, in any order, in the name or the tags. For logos, also in a logo’s other names, best match first.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /templates`,id:`post-templates`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`afterId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Place it immediately after this item of the same list.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`artboard`})}),_jsx(_components.td,{children:`object or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The artboard it was drawn on and where its content sits in it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`aspect`})}),_jsx(_components.td,{children:`number or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its own width over height, for resize scale.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beforeId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Place it immediately before this item of the same list.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`category`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its category: one list_templates shows, or a new one.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The code: a React component, as get_schema (kind ‘code’) teaches.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`coverage`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`full`}),` | `,_jsx(_components.code,{children:`partial`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`full: the whole frame; partial: a box of widthFraction by heightFraction.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`What it is for.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`durationFrames`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How long it lasts when placed, in frames.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`emoji`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`An animated emoji’s name, as the animated emoji list names it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fps`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The frame rate its duration counts at.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fromItem`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A placed code clip, code layer or shape to save: the project id and the clip or layer id.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fromTemplateId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A template to copy, from list_templates.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`heightFraction`})}),_jsx(_components.td,{children:`number or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its default height, a fraction of the canvas’s.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lottie`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A Lottie file of ours, and the colors in it that props recolor (each role names a prop).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its name in the Elements panel.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`position`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`top`}),` | `,_jsx(_components.code,{children:`bottom`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Place it at an end of the list instead of beside an item. Name neighbors or a position, not both.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`previewUrl`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its preview.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`props`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its props as placed. Media in them is a MediaRef ({ assetId, role }), never a stored URL.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`propsSchema`})}),_jsx(_components.td,{children:`object or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Each prop’s control, as get_template shows them; brand names the brand value a prop takes when placed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resize`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`scale`}),` | `,_jsx(_components.code,{children:`reflow`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`scale keeps its proportions in any box; reflow lays out again in the box it is given.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shape`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A shape’s name, as the shape layer type lists them in get_schema kind ‘layer’.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sourceTemplateId`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The template it was copied from.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sourceTemplateVersion`})}),_jsx(_components.td,{children:`integer or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The version of that template it was copied at.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tags`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Words it is found by.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`thumbnailUrl`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its thumbnail.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`widthFraction`})}),_jsx(_components.td,{children:`number or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its default width, a fraction of the canvas’s.`})]})]})]})]}),_jsxs(Accordion,{title:`GET /templates/categories`,id:`get-templates-categories`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The previous page’s cursor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many to return.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`scope`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`system`}),` | `,_jsx(_components.code,{children:`user`}),` | `,_jsx(_components.code,{children:`all`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`system is ContentHero’s, user is the user’s own; all (the default) is both.`})]})]})]})]}),_jsxs(Accordion,{title:`PATCH /templates/{id}`,id:`patch-templates-id`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`afterId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Place it immediately after this item of the same list.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`artboard`})}),_jsx(_components.td,{children:`object or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The artboard it was drawn on and where its content sits in it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`aspect`})}),_jsx(_components.td,{children:`number or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its own width over height, for resize scale.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`beforeId`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Place it immediately before this item of the same list.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`category`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its category: one list_templates shows, or a new one.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`code`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The code: a React component, as get_schema (kind ‘code’) teaches.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`coverage`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`full`}),` | `,_jsx(_components.code,{children:`partial`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`full: the whole frame; partial: a box of widthFraction by heightFraction.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`What it is for.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`durationFrames`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How long it lasts when placed, in frames.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`emoji`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`An animated emoji’s name, as the animated emoji list names it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`expectedVersion`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The version you read; the write is refused if the template changed since.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fps`})}),_jsx(_components.td,{children:`number`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The frame rate its duration counts at.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`heightFraction`})}),_jsx(_components.td,{children:`number or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its default height, a fraction of the canvas’s.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`lottie`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A Lottie file of ours, and the colors in it that props recolor (each role names a prop).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its name in the Elements panel.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`position`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`top`}),` | `,_jsx(_components.code,{children:`bottom`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Place it at an end of the list instead of beside an item. Name neighbors or a position, not both.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`previewUrl`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its preview.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`props`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its props as placed. Media in them is a MediaRef ({ assetId, role }), never a stored URL.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`propsSchema`})}),_jsx(_components.td,{children:`object or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Each prop’s control, as get_template shows them; brand names the brand value a prop takes when placed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`resize`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`scale`}),` | `,_jsx(_components.code,{children:`reflow`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`scale keeps its proportions in any box; reflow lays out again in the box it is given.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`shape`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`A shape’s name, as the shape layer type lists them in get_schema kind ‘layer’.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sourceTemplateId`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The template it was copied from.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sourceTemplateVersion`})}),_jsx(_components.td,{children:`integer or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The version of that template it was copied at.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`tags`})}),_jsx(_components.td,{children:`string[]`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Words it is found by.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`thumbnailUrl`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its thumbnail.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`widthFraction`})}),_jsx(_components.td,{children:`number or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Its default width, a fraction of the canvas’s.`})]})]})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`style-libraries`,children:`Style libraries`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Method`}),_jsx(_components.th,{children:`Path`}),_jsx(_components.th,{children:`Scope`}),_jsx(_components.th,{children:`Purpose`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/style-libraries`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsx(_components.td,{children:`List your style libraries, filtered and sorted, a page at a time.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`POST`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/style-libraries`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsx(_components.td,{children:`Create a style library.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`GET`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/style-libraries/{id}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:read`})}),_jsxs(_components.td,{children:[`One style library by id or name: its versions and the projects pinning it. With `,_jsx(_components.code,{children:`version`}),`, that one version with its code.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`PATCH`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`/style-libraries/{id}`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`editor:write`})}),_jsx(_components.td,{children:`Change a style library, or publish a new version of it.`})]})]})]}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`GET /style-libraries`,id:`get-style-libraries`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`archived`})}),_jsx(_components.td,{children:`boolean`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Only archived style libraries.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The previous page’s cursor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many to return.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`order`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`asc`}),` | `,_jsx(_components.code,{children:`desc`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The sort direction.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`search`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Search style library names.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`sort`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`updatedAt`}),` | `,_jsx(_components.code,{children:`name`})]}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The field to sort by.`})]})]})]})]}),_jsxs(Accordion,{title:`POST /style-libraries`,id:`post-style-libraries`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`name`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`The style library name.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`What the style library is for.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fromProject`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Modules of one project: { projectId, modules, revision }. The revision guards against a project that changed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`modules`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Modules by name: { code }, { edits } against baseVersion, or null to drop one.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`notes`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`What this version changes.`})]})]})]})]}),_jsxs(Accordion,{title:`GET /style-libraries/{id}`,id:`get-style-libraries-id`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Query`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`cursor`})}),_jsx(_components.td,{children:`string`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The previous page’s cursor.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`limit`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`How many to return.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`version`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The version to read, with each module’s code.`})]})]})]})]}),_jsxs(Accordion,{title:`PATCH /style-libraries/{id}`,id:`patch-style-libraries-id`,children:[_jsx(_components.p,{children:_jsx(_components.strong,{children:`Body`})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Required`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`baseVersion`})}),_jsx(_components.td,{children:`integer or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`The version the change builds on.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`description`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`What the style library is for.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`fromProject`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Modules of one project: { projectId, modules, revision }. The revision guards against a project that changed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`modules`})}),_jsx(_components.td,{children:`object`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`Modules by name: { code }, { edits } against baseVersion, or null to drop one.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`notes`})}),_jsx(_components.td,{children:`string or null`}),_jsx(_components.td,{}),_jsx(_components.td,{children:`What this version changes.`})]})]})]})]})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Editor","description":"Projects, versions, exports, edits, templates and style libraries endpoints.","href":"/api-reference/editor"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Projects","slug":"projects","depth":2,"children":[]},{"title":"Versions","slug":"versions","depth":2,"children":[]},{"title":"Exports","slug":"exports","depth":2,"children":[]},{"title":"Edits and schemas","slug":"edits-and-schemas","depth":2,"children":[]},{"title":"Templates","slug":"templates","depth":2,"children":[]},{"title":"Style libraries","slug":"style-libraries","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"contenthero","siteName":"ContentHero","title":"Editor - ContentHero","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-14T17:46:34.654Z","originalFileLocation":"api-reference/editor.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Projects, versions, exports, edits, templates and style libraries endpoints.\">\u003cmeta data-mint-head name=\"application-name\" content=\"ContentHero\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Editor - ContentHero\">\u003cmeta data-mint-head property=\"og:description\" content=\"Projects, versions, exports, edits, templates and style libraries endpoints.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"ContentHero\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.contenthero.ai/api-reference/editor\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://contenthero.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Editor\u0026amp;description=Projects%2C+versions%2C+exports%2C+edits%2C+templates+and+style+libraries+endpoints.\u0026amp;theme=5b5669ac4d0e6c81971d3e53\u0026amp;signature=2045cc14c4767da2f8a8291f5b6b4f597a3e0e8ea9944cece8bb6586453b8c31\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Editor - ContentHero\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Projects, versions, exports, edits, templates and style libraries endpoints.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://contenthero.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Editor\u0026amp;description=Projects%2C+versions%2C+exports%2C+edits%2C+templates+and+style+libraries+endpoints.\u0026amp;theme=5b5669ac4d0e6c81971d3e53\u0026amp;signature=2045cc14c4767da2f8a8291f5b6b4f597a3e0e8ea9944cece8bb6586453b8c31\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/contenthero/_Ux406lHXXT7Cq-T/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"ContentHero\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#d4af37\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.contenthero.ai/api-reference/editor\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/editor.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.contenthero.ai/#organization\",\"name\":\"ContentHero\",\"url\":\"https://docs.contenthero.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/contenthero/k4OiX1Sa6r0RKHqA/logo/light.svg?fit=max\u0026auto=format\u0026n=k4OiX1Sa6r0RKHqA\u0026q=85\u0026s=504e91b0415e02ca2679249bcda5f07f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.contenthero.ai#website\",\"name\":\"ContentHero\",\"url\":\"https://docs.contenthero.ai\",\"publisher\":{\"@id\":\"https://docs.contenthero.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.contenthero.ai/api-reference/editor#webpage\",\"url\":\"https://docs.contenthero.ai/api-reference/editor\",\"name\":\"Editor\",\"description\":\"Projects, versions, exports, edits, templates and style libraries endpoints.\",\"dateModified\":\"2026-11-14T17:46:34.654Z\",\"isPartOf\":{\"@id\":\"https://docs.contenthero.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.contenthero.ai/api-reference/editor#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.contenthero.ai/api-reference/editor#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://docs.contenthero.ai/api-reference/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Editor\",\"item\":\"https://docs.contenthero.ai/api-reference/editor\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.contenthero.ai/api-reference/editor#article\",\"headline\":\"Editor\",\"name\":\"Editor\",\"description\":\"Projects, versions, exports, edits, templates and style libraries endpoints.\",\"url\":\"https://docs.contenthero.ai/api-reference/editor\",\"mainEntityOfPage\":{\"@id\":\"https://docs.contenthero.ai/api-reference/editor#webpage\"},\"dateModified\":\"2026-11-14T17:46:34.654Z\",\"publisher\":{\"@id\":\"https://docs.contenthero.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.contenthero.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"ContentHero\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"ContentHero\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/editor.md","siteName":"ContentHero","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/overview"}]},{"tab":"Skills","pages":[{"title":"Skills","href":"/skills/overview"}]},{"tab":"Cookbook","pages":[{"title":"Cookbook","href":"/cookbook/overview"}]},{"tab":"API Reference","groups":[{"group":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/overview"},{"title":"Generate","href":"/api-reference/generate"},{"title":"Library","href":"/api-reference/library"},{"title":"Pipeline","href":"/api-reference/pipeline"},{"title":"Brand","href":"/api-reference/brand"},{"title":"Inspiration","description":"Tracked accounts, outliers, content, and brand-account performance endpoints.","href":"/api-reference/inspiration"},{"title":"Editor","href":"/api-reference/editor"},{"title":"Account","description":"Balance, status, view and link-format endpoints.","href":"/api-reference/account"}]}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Editor - ContentHero","deploymentId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","buildId":"dpl_EwfxjeKENdVkfzdag8rM6mKzcTUJ","dynamics":[],"chunks":[]}