Every operation of the Studio API v1, generated by scripts/build_docs_site.py from the OpenAPI snapshot in docs/api/studio-v1/, which CI keeps identical to the server's registry. 406 operations in 31 groups. Do not edit this page by hand.
Paths are relative to https://freestyle.audio. Read Studio API v1 first for authentication, errors, idempotency, revisions and pagination. The machine-readable document is /docs/openapi.json (the same snapshot) and, live from the server, GET /api/v1/openapi.json.
Owned projects (not removed from home) and projects shared with the caller, newest first, each with the caller's role. shared=true means shared WITH YOU (you are an editor or viewer, not the owner), exactly like the web app's library marker; a project you own is shared:false even when its visibility is link or public. visibility is the project's share setting; liveRoom its DAW sync room ({code, members}) or null.
Tempo/key, backing, lanes, clips, patterns, share state and the caller's role. bpm is the effective tempo, never null (bpmSource set | backing | default; a new project without a tempo runs at 120). Each clip card, and backing when the project has one, carries audioSourceId: an opaque id of the audio it plays, shared by clips cut from the same file (the key for a client waveform cache, see /docs/waveforms.html). ETag = "<timelineRevision>.<content hash>": it moves on every change to this document (title, key/scale, tempo, plug-in chains, sharing as well as the timeline), so If-None-Match answers 304 only when nothing here changed. The whole ETag is also accepted as If-Match on clip / lane edits, which compare its timeline part (timelineRevision).
The app's deterministic key/scale detector (chroma vectors scored against major/minor key profiles over a bounded PCM window; no model, no AI budget). With track_id (a clip id): analyzes that take's audio as a job -- a result already computed for the same audio comes back at once (status succeeded), otherwise poll getKeyAnalysis with the jobId (Retry-After). Without track_id: the key detected when the backing was imported (410 uncached_backing_key_analysis_retired when it has none; analyze a take instead). Detection never changes the project: apply a result with PATCH /projects/{id} {key, scale}.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/key-analysis/{job_id}" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
KeyAnalysisschema
Field
Type
Required
Constraints
Description
analysis
object
optional
Present when succeeded: the detector's key / scale / confidence.
analysis.confidence
number | null
optional
analysis.detector
string | null
optional
analysis.key
string | null
optional
analysis.scale
string | null
optional
error
object
optional
Present when failed: {code, message}.
jobId
string | null
optional
project
object
optional
The project card once the job is done.
projectId
string
required
retryAfterSec
integer
optional
status
string
required
one of pending, running, succeeded, failed
Projectschema
The get_project card: lanes and clips are capped (see truncated); page through /lanes and /clips for everything.
Field
Type
Required
Constraints
Description
bpm
number
optional
The tempo the project runs at (quarter notes per minute), never null: the explicit tempo, else the backing's detected tempo, else 120 (Mozart's default for a project without a tempo). bpmSource says which.
bpmSource
string
optional
one of set, backing, default
set = an explicit tempo (createProject bpm, setProjectTempo, setTimingMap, the Studio's tempo control); backing = nothing set, the backing's detected tempo (the Studio adopts it when it opens the project); default = nothing set or detected, 120 BPM.
The STORED explicit tempo; null = none set (the project then runs at its backing's detected tempo, else 120: getProject bpm / bpmSource give the effective value).
id
string
required
liveRoom
object | null
required
The project's DAW sync room while it exists (members 0 = inside its grace period), else null. Same as getProjectShare.liveRoom.
liveRoom.code
string
required
liveRoom.members
integer
required
min 0
role
string
required
one of owner, editor, viewer
shared
boolean
required
Shared WITH YOU: true when you are not the owner (role editor or viewer), the rule of the web app's "Shared with you" marker. It says nothing about whether the owner shared the project with others: see visibility.
title
string
required
updated_at
string | null
optional
format date-time
visibility
string
required
one of private, link, public
The project's share setting (link = anyone with the share link).
Project lifecycle
Create, rename, duplicate and delete projects; saves (version history); share settings and collaborators.
source.type: empty (default), youtube / url (source.url; may return importJob to poll), catalog (source.beatId). Same free-tier capacity rules as the app. A youtube / url source is a server-side fetch: it pays the dedicated api_v1:fetch budget. bpm (20-400, optional) is the initial project tempo (an explicit tempo: project.bpmSource "set"); without it the project runs at the backing's detected tempo, else 120 BPM, and project.bpm already says so (bpmSource "backing" / "default"). Capacity: creating never fails on a project cap; like the app it makes room by soft-closing ONE of the account's least-recently-used projects (empty ones first) once the account holds more than 50 active or 10 empty projects (removed_from_home_at, nothing is deleted; every route then answers 404 for it). A project created, written, opened or attached to an engine session in the last 30 minutes is never the one closed, so a new draft stays readable while a client is setting it up, even when the same account creates more projects meanwhile; an empty draft left untouched for longer can be closed by a later create.
Parameters
Parameter
In
Type
Required
Constraints
Description
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Set any of title, key and scale (at least one). key/scale are the project's musical key (getProject key/scale, the Studio's key pill): key is one of the 12 sharp pitch classes, scale major | minor | chromatic. A set key is manual: the Studio's auto-detection never overwrites it. key=null clears key and scale (back to Auto); scale alone keeps the stored key; a key without scale keeps the stored scale (major when none). Deterministic, no analysis (startKeyAnalysis detects a key from audio). Idempotent: the stored value is a no-op (keyChanged=false). The reply carries undo {key, scale, keyAutoDetected} (PATCH it back to undo exactly: an auto-detected key comes back as auto-detected, a legacy key without a scale as {key, scale: null}, a legacy scale without a key as {key: null, scale}, which clears both) whenever key/scale were sent. Optional expected {key, scale}: the stored values must match or nothing is written (409 key_changed). Every field is validated first and title + key are written in ONE transaction under the project row lock: a refused request writes nothing. getProject's ETag is "<timelineRevision>.<content hash>": a title/key/scale change moves it (the content part) but not timelineRevision, so an If-Match clip / lane edit (which compares only the timeline part) still succeeds after a rename.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
expected
object
optional
expected.key
string | null
optional
expected.scale
string | null
optional
key
string | null
optional
13 allowed values
CC#DD#EFF#GG#AA#BNone
keyAutoDetected
boolean
optional
Undo payloads only: restores the auto-detected flag with key/scale (any other write is manual).
Owner only. Removes the project from the library (the app's soft delete). Destructive: pass confirm=true (query or body) after the user agreed; without it the answer is 400 confirmation_required.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
confirm
query
boolean
optional
default false
Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.
Request body application/json
Field
Type
Required
Constraints
Description
confirm
boolean
optional
default false
Must be true: the user explicitly confirmed this destructive action.
Owner only. Share with a Freestyle user by @username / profile name (user) or user_id as viewer or editor (the project's default role when omitted). Inviting someone who already has access updates their role.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Owner only. Mints a new share link; everyone who joined through the old one loses access (named collaborators keep theirs). Destructive: pass confirm=true.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
confirm
query
boolean
optional
default false
Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.
Request body application/json
Field
Type
Required
Constraints
Description
confirm
boolean
optional
default false
Must be true: the user explicitly confirmed this destructive action.
The get_project_share summary (fields follow the MCP tool).
Field
Type
Required
Constraints
Description
defaultRole
string
optional
one of viewer, editor
liveRoom
object | null
optional
getProjectShare only: the project's live DAW sync room (Freestyle for Mac) while it exists, else null. Join it with createDawSyncSession / getDawSyncLiveStatus.
Set the lane's name, color, volume (0..4), pan (-1 left .. 0 center .. 1 right), muted and/or soloed (persisted lane identity, like the Studio's lane header). A saved pan is also applied to an already-running engine session (livePan says whether); a project with no live session plays it from its next load. If-Match is the timeline revision (412 timeline_revision_conflict) -- or, for the mix fields, the mix revision: If-Match: "mix-<n>" (the getEngineMix ETag) or a body expected_mix_revision guards volume / pan / muted / soloed against the LIVE mix. Then the mix fields are applied to the running engine in one atomic compare-and-set (POST /mix/apply) before the lane row is saved: if the mix moved since your read, 412 mix_revision_conflict (details.currentMixRevision) and nothing changes; the reply carries mixRevision. A mix precondition needs a live session (409 engine_unavailable otherwise) and an engine with mix revisions (409 engine_update_required). Reply: changed (fields written), lane, timelineRevision; livePan {applied, reason?} when pan was sent; liveMix {applied: true} and mixRevision only on the mix-guarded path.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
color
string
optional
max length 32
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
Error codes specific to this operation: engine_unavailable, engine_update_required, mix_revision_conflict, timeline_revision_conflict. Every operation can also answer the common codes.
Soft-delete a lane and its takes. The result's deletedClipIds go back to :restore as clip_ids to bring back exactly those takes. When the project is open in a live engine session the lane (its mixer track and every clip on it) is also dropped from that session at once, so it stops sounding and leaves getEngineState / listEngineTracks; liveEngine says whether (no session is ever opened for this). This is how an API client undoes an audio import (uploadAudio / addAudioFromUrl made the lane) or a duplicateLane: the rows below the deleted lane move up one, closing the row it leaves (restoreLane reopens it), so a duplicate + delete leaves every other lane's order exactly as before. Deleting an instrument lane also removes, in the same operation, every pattern channel (sources[] entry of kind plugin / instrument whose laneId is this lane) with its notes and CC automation, so those patterns stay saveable; deletedPatternChannels names them ({patternId, channelId}) and restoreLane puts them back at their rack positions.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Copy a lane, placed directly below the source. An audio lane (kind vocal / audio / guitar; legacy or current track identity) copies its takes/clips, effect chain (plug-in states with new instance ids, native EQ such as an imported Channel EQ), clip gain / clip mute / automation, fader, pan, mute, solo and bus. An instrument lane (kind instrument, trackType plugin) copies its generator with its saved patch state and its effect chain (new instance ids) and, for every placed pattern that plays it, an INDEPENDENT pattern copy holding only that lane's notes, placed at the same positions on a new pattern row (patternRowLaneId). A pattern row (trackType pattern) copies each pattern it plays as an independent pattern ('<name> copy') and re-creates every pattern clip on the copy at identical geometry. Editing a copy never edits the source. 201 with laneId, clipIds {source clip id: copy id}, patternIds {source pattern id: copy id}, placementIds {source placement id: copy id}, name, the new timeline revision (ETag) and undo {method: DELETE, path}: deleteLane on the copy removes it, its clips, its pattern copies and pattern row and closes the gap it opened, so the project is exactly as before. When the project is open in a live engine session the copy is loaded into it at once (liveEngine.applied: generator, chain, clips, mix, pattern resync; no session is ever opened for this; otherwise the next session load plays it). Refused with 409: lane_kind_not_duplicable for the backing lane (the project's single beat slot); project_track_limit when the copy would exceed the project's clip limit.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
true = the running engine session took the change (the next audio block hears it).
liveEngine.attachedClipIds
string[]
optional
liveEngine.reason
string
optional
one of no_live_session, engine_rejected, engine_unreachable
Why it was not applied live. The saved change still stands; the next session load plays it.
name
string
optional
ok
boolean
optional
patternIds
object
optional
{source pattern id: independent pattern copy id}
patternRowLaneId
string | null
optional
The pattern row the copied pattern clips sit on (the copy itself for a pattern row; a new row for an instrument lane's notes; null when no pattern clips were copied).
placementIds
object
optional
{source pattern clip id: copied pattern clip id}
projectId
string
optional
sourceLaneId
string
optional
timelineRevision
string | null
optional
undo
object
optional
undo.method
string
required
one of DELETE
undo.path
string
required
Error codes specific to this operation: project_track_limit. Every operation can also answer the common codes.
Undo a lane delete (clip_ids = the deletedClipIds from the delete). The lane returns to its original position relative to the other lanes, whatever order several deleted lanes are restored in (the row its delete closed is reopened in the same transaction). Pattern channels the delete removed (deletedPatternChannels) are put back at their rack positions with their notes (restoredPatternChannels). When the project is open in a live engine session the restored clips are loaded back into it (liveEngine.attachedClipIds); no session is ever opened for this.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
updateLane WITH a mix precondition (If-Match "mix-<n>" / expected_mix_revision) only: the volume / pan / muted / soloed you sent were applied to the live engine under the precondition before the lane row was saved. Absent on an unguarded updateLane (then only the row is written, plus livePan for a pan).
liveMix.applied
boolean
required
Always true when present: the mix fields went through the engine's atomic compare-and-set first (POST /mix/apply).
livePan
object
optional
updateLane with pan: whether the running engine session took the saved pan too (absent when pan was not sent).
livePan.applied
boolean
required
true = the running engine session took the change (the next audio block hears it).
livePan.reason
string
optional
one of no_live_session, engine_rejected, engine_unreachable
Why it was not applied live. The saved change still stands; the next session load plays it.
mixRevision
integer
optional
updateLane with a mix precondition: the mix revision after the write (send it as the next If-Match: "mix-<n>").
ok
boolean
optional
projectId
string
optional
timelineRevision
string | null
optional
Clips
Audio clips on the timeline: listing, waveforms and atomic edits.
FL-style audio clip fades: fade_in / fade_out = {duration_sec >= 0, curve} with curve linear | equal_power | exp | log | s_curve (default linear). Send at least one side; a side that is absent is left alone, null or duration_sec 0 clears it. Non-destructive: a gain ramp anchored to the clip's own edges (trimming does not change it), multiplied with the clip gain and envelope, in live playback and in exports. A length longer than the clip is 400. Persists project_tracks.fade_in_sec/_curve and fade_out_sec/_curve (the clip card's fadeIn / fadeOut; /session/load restores them), bumps the timeline revision, then applies them to an already-running engine session: engine_applied=false / engine_reload_required=true means saved but not taken live (no session, or the clip is not loaded); it plays after a reload. No session is ever opened for this. Idempotent: the stored values are a no-op (changed=false, same revision). If-Match = timeline revision (412 timeline_revision_conflict). Backing and pattern clips are 404. Returns the clip card, the new timeline revision (ETag) and undo {op: fades, clip_id, fade_in, fade_out}: PUT those sides back to undo.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
fade_in
object | null
optional
{duration_sec >= 0, curve?}; null or duration_sec 0 clears this side.
fade_in.curve
string
optional
default "linear"; one of linear, equal_power, exp, log, s_curve
fade_in.duration_sec
number
required
min 0
fade_out
object | null
optional
{duration_sec >= 0, curve?}; null or duration_sec 0 clears this side.
fade_out.curve
string
optional
default "linear"; one of linear, equal_power, exp, log, s_curve
fade_out.duration_sec
number
required
min 0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Clip gain (Logic / Ableton / Pro Tools): a linear level 0..4 (1 = unity, 4 = +12 dB, 0 = silent) for THIS clip only, before the lane's insert chain and fader. Persists project_tracks.volume (the clip card's `volume`; /session/load restores it), bumps the timeline revision, then applies it to an already-running engine session (set_clip_gain): engine_applied=false / engine_reload_required=true means it is saved but the live session did not take it (no session open, or the clip is not loaded) and plays it after a reload. No session is ever opened for this. Idempotent: the stored gain is a no-op (changed=false, same revision). If-Match = timeline revision (412 timeline_revision_conflict). Backing and pattern clips are 404. Returns the clip card, the new timeline revision (ETag) and undo {op: gain, clip_id, gain}: PUT its gain back to undo. engine_set_clip_gain / execute_pro_action(set_clip_gain) persist the same column.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
gain
number
required
min 0; max 4
Linear clip gain, 1 = unity.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
FL Studio-style clip mute: muted=true silences THIS clip only; the rest of its lane keeps playing. Independent of lane mute/solo (the clip card's `muted` is the lane mirror, `clipMuted` this clip's own mute; either silences it). Persists project_tracks.clip_muted, then applies it to the live engine (set_clip_muted): engine_applied=false / engine_reload_required=true means it is saved but the live session did not take it (not loaded, or an older engine) and plays it after a reload. Idempotent: the current state is a no-op (changed=false, same revision). If-Match = timeline revision (412 timeline_revision_conflict). Backing and pattern clips are 404. Returns the clip card, the new timeline revision (ETag) and undo {op: mute, clip_id, muted}: PUT its muted back to undo.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
muted
boolean
required
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
FL Studio Clip menu > Takes > pick one: unmutes this take and mutes every other take of its stack, atomically (one transaction, one undo step), then mirrors the changed clips into the live engine. Idempotent: the current choice is a no-op (changed=false, same revision). A clip that is not a take is 409 not_a_take. If-Match = timeline revision (412 timeline_revision_conflict). undo.clip_id is the previously audible take: PUT it to undo.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Per-channel min/max/RMS buckets of the clip's source audio over a source-frame range, from the PCM the live engine holds (raw PCM in [-1,1], pre clip-gain/effects). ETag = the source revision (the sample-edit expected_revision); If-None-Match -> 304. clip_id may be 'backing'. Cold session: when the clip is not loaded the backend opens the session headless (or, for editors, attaches the saved clip to the running session) and retries once; the answer then carries session_recovered = session_load | clip_attach. The peaks always come from the engine's decode, so the revision is the same one pencil edits check. 409 target_not_loaded only when that recovery failed. Frames index the whole source file, so one set of peaks serves every clip cut from it: to draw a timeline that zooms without re-fetching, read each source once (clips with the same audioSourceId on their card share one) and keep the peaks on the client. The recipe is in /docs/waveforms.html.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
start_frame
query
integer
optional
min 0
First source frame of the range (default 0).
end_frame
query
integer
optional
min 0
End of the range, exclusive, greater than start_frame (default: the end of the source). Clamped to frame_count.
buckets
query
integer
optional
default 1024; min 1; max 8192
Buckets to return. Bucket b covers frames [start + floor(b*span/n), start + floor((b+1)*span/n)); a range with fewer frames than buckets returns one frame per bucket.
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Cross-lane move (e.g. cross-track paste): the clip keeps its audio window and moves to lane_id (an audio lane of the same project; backing / pattern / instrument lanes are refused with 400 lane_not_audio, another project's lane is 404), optionally to start_ms. DB-first in the engine (move_clip_to_lane): engine_reload_required=true means the move is saved but the live session must reload to play it. Guards: If-Match = timeline revision (412 timeline_revision_conflict) and/or expected {lane_id, start_ms} (409 clip_changed when the clip moved meanwhile). Returns the clip card, the new timeline revision (ETag) and undo {op: move, clip_id, lane_id, start_ms}: POST it back to this endpoint to undo.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected
object
optional
expected.lane_id
string
optional
expected.start_ms
integer
optional
min 0
lane_id
string
required
min length 1; max length 64
start_ms
integer
optional
min 0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Up to 256 ops (update/insert/remove/restore) in ONE transaction, mirrored in the live engine. update may omit timing fields (filled from the clip's stored timing); insert/restore need start_ms, duration_sec and audio_offset_sec. An op's `expected` must match or nothing is applied (409 conflict). A malformed op is 400 invalid_op with details.opIndex. If-Match takes the timeline revision (412 timeline_revision_conflict). The response ETag is the new timeline revision. applied_ops is the integer count of applied ops. Live engine: after the commit the backend reads the session's clip list back and checks every op landed (removed ids gone; updated / inserted / restored ids present once, on their lane, at the committed timing); any mismatch is engine_reload_required=true with engine_divergent [{id, reason}] and reload = the engine:reload operation to call. engine_loaded=false means no live session holds the project (nothing to mirror; the next load reads the saved clips). undo.inverse_ops is the batch that undoes this one (same op shape, `expected` = the post-batch state, reverse order): POST it back here to undo. inserted lists every inserted/restored clip {clipId, laneId, sourceId, startMs, durationSec, audioOffsetSec, engine_attached}: a pasted clip with engine_attached=true plays at once, so no attachClipToSession call is needed. A batch that committed is never reported as a 5xx: when a post-commit step fails the 200 carries postCommitError and engine_reload_required=true, and the Idempotency-Key replays that result (replay=true in the body plus the Idempotent-Replayed: true header). Lane changes are NOT supported here (ops keep each clip on its lane): use POST clips/{clip_id}:move-to-lane for cross-lane moves (e.g. a cross-track paste).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
ops
object (ClipBatchOp)[]
required
min items 1; max items 256
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
How many ops the batch applied (the engine's count; 0 or null on a replay that applied nothing new).
engine_attached
boolean
optional
Present when the batch inserted/restored clips: all of them play in the live session now.
engine_divergent
object[]
optional
engine_divergent[].id
string
required
engine_divergent[].reason
string
required
one of still_playing, missing, duplicate, wrong_lane, timing, unreadable
engine_loaded
boolean | null
optional
Whether a live session hosts the project (null: an older engine did not say).
engine_reload_required
boolean
optional
engine_verified
boolean | null
optional
true: the live clip list was read back and checked; false: the read failed; null: nothing to check (no live session, or a replay).
inserted
object (InsertedClip)[]
optional
postCommitError
object
optional
Present only when the batch committed but a later step (the revision read, the live-engine mirror) failed: the batch IS applied, engine_reload_required is true and timelineRevision may be null (re-read it).
projectId
string
optional
reload
object (EngineReloadGuidance)
optional
reload.hint
string
optional
reload.method
string
required
one of POST
reload.path
string
required
/api/v1/projects/{id}/engine:reload
replay
boolean
optional
timelineRevision
string | null
optional
undo
object (ClipBatchUndo)
optional
undo.inverse_ops
array | null
required
POST as clips:batch ops to undo (null on a replay of an already-committed batch, or when a touched clip's prior state was unknown).
FL Studio loop recording keeps one take per loop pass. This tags 2-64 clips of ONE lane (clip_ids, oldest pass first) as a stack in one transaction: project_tracks.take_group_id / take_index are written and exactly one take stays audible (active_clip_id, default the newest); the others get the per-clip mute and are muted live. Clips already in a stack are 409 take_group_exists. Backing, pattern and other-project clips are 404. If-Match = timeline revision (412 timeline_revision_conflict). Returns the stack (clip cards carry takeGroupId / takeIndex), the new timeline revision (ETag) and the engine mirror state. Undoing a recording removes its clips with clips:batch.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
active_clip_id
string
optional
max length 64
clip_ids
string[]
required
min items 2; max items 64
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Audacity-style split / delete (ripple or not) / trim_to_selection across lanes, as ONE atomic engine batch. Boundaries: start_ms/end_ms OR start_frame/end_frame (+ sample_rate). Returns the plan, clips_after, cuts, skipped_lanes and undo.inverse_ops (POST them to clips:batch to undo). The Idempotency-Key header doubles as the edit's idempotency_key (new clip ids derive from it). dry_run=true plans only. If-Match takes the timeline revision.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
dry_run
boolean
optional
default false
end_frame
integer
optional
min 0
end_ms
number
optional
min 0
idempotency_key
string
optional
max length 128
lane_ids
string[]
required
min items 1; max items 64
operation
string
required
one of split, delete, trim_to_selection
ripple
boolean
optional
default false
sample_rate
number
optional
min 8000; max 384000
start_frame
integer
optional
min 0
start_ms
number
optional
min 0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Seconds into the source file where the audible region begins (left trim).
audioSourceId
string | null
optional
Opaque id of the audio this clip plays, null when the clip has no stored audio. Clips that play the same audio (the pieces of a split, a duplicate, a paste) share it, and it changes when the clip's audio is replaced (sample edit, in-place region effect, voice-model or tempo render), so it is the key for a client peak cache: a clip whose audioSourceId is already cached needs no getClipWaveform read. Compare it for equality only; it is not the waveform's revision. Absent on a backend that predates it.
clipMuted
boolean
optional
durationSec
number | null
optional
Audible length in seconds (after trimming).
editUrl
string
optional
fadeIn
object | null
optional
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
fadeIn.curve
string
optional
one of linear, equal_power, exp, log, s_curve
fadeIn.durationSec
number
optional
min 0
fadeOut
object | null
optional
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
fadeOut.curve
string
optional
one of linear, equal_power, exp, log, s_curve
fadeOut.durationSec
number
optional
min 0
id
string
required
isBacking
boolean
optional
isImported
boolean
optional
laneId
string | null
optional
muted
boolean
optional
name
string | null
optional
parked
boolean
optional
Present (true) only on a PARKED take: the earlier take of a live / Endless / group-session lane that a re-record parked instead of deleting. Always muted; restored from the Studio timeline.
sourceDurationSec
number | null
optional
Full length in seconds of the clip's source audio file (untrimmed), null when not known. A slip or a right-edge un-trim stays within it: audioOffsetSec + durationSec <= sourceDurationSec. Read-only (derived from the stored audio file); clips:batch never takes it.
startMs
integer
required
Where the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).
takeGroupId
string
optional
Present only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).
takeIndex
integer
optional
min 0
Order inside the stack, 0 = oldest pass. Present with takeGroupId.
updatedAt
string | null
optional
format date-time
volume
number
optional
ClipBatchOpschema
Field
Type
Required
Constraints
Description
audio_offset_sec
number
optional
min 0
Seconds into the source file where the audible region begins.
duration_sec
number
optional
> 0
Audible length in seconds.
expected
object
optional
expected.audio_offset_sec
number
optional
min 0
Seconds into the source file where the audible region begins.
expected.duration_sec
number
optional
> 0
Audible length in seconds.
expected.start_ms
number
optional
min 0
Timeline start of the audible region, ms from the project start.
id
string
required
max length 64
op
string
required
one of update, insert, remove, restore
source_id
string
optional
max length 64
start_ms
number
optional
min 0
Timeline start of the audible region, ms from the project start.
ClipBatchUndoschema
Field
Type
Required
Constraints
Description
inverse_ops
array | null
required
POST as clips:batch ops to undo (null on a replay of an already-committed batch, or when a touched clip's prior state was unknown).
Seconds into the source file where the audible region begins (left trim).
clip.audioSourceId
string | null
optional
Opaque id of the audio this clip plays, null when the clip has no stored audio. Clips that play the same audio (the pieces of a split, a duplicate, a paste) share it, and it changes when the clip's audio is replaced (sample edit, in-place region effect, voice-model or tempo render), so it is the key for a client peak cache: a clip whose audioSourceId is already cached needs no getClipWaveform read. Compare it for equality only; it is not the waveform's revision. Absent on a backend that predates it.
clip.clipMuted
boolean
optional
clip.durationSec
number | null
optional
Audible length in seconds (after trimming).
clip.editUrl
string
optional
clip.fadeIn
object | null
optional
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeIn.curve
string
optional
one of linear, equal_power, exp, log, s_curve
clip.fadeIn.durationSec
number
optional
min 0
clip.fadeOut
object | null
optional
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeOut.curve
string
optional
one of linear, equal_power, exp, log, s_curve
clip.fadeOut.durationSec
number
optional
min 0
clip.id
string
required
clip.isBacking
boolean
optional
clip.isImported
boolean
optional
clip.laneId
string | null
optional
clip.muted
boolean
optional
clip.name
string | null
optional
clip.parked
boolean
optional
Present (true) only on a PARKED take: the earlier take of a live / Endless / group-session lane that a re-record parked instead of deleting. Always muted; restored from the Studio timeline.
clip.sourceDurationSec
number | null
optional
Full length in seconds of the clip's source audio file (untrimmed), null when not known. A slip or a right-edge un-trim stays within it: audioOffsetSec + durationSec <= sourceDurationSec. Read-only (derived from the stored audio file); clips:batch never takes it.
clip.startMs
integer
required
Where the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).
clip.takeGroupId
string
optional
Present only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).
clip.takeIndex
integer
optional
min 0
Order inside the stack, 0 = oldest pass. Present with takeGroupId.
clip.updatedAt
string | null
optional
format date-time
clip.volume
number
optional
engine_applied
boolean
required
engine_reload_required
boolean
required
fadeIn
object | null
required
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
fadeIn.curve
string
optional
one of linear, equal_power, exp, log, s_curve
fadeIn.durationSec
number
optional
min 0
fadeOut
object | null
required
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
Seconds into the source file where the audible region begins (left trim).
clip.audioSourceId
string | null
optional
Opaque id of the audio this clip plays, null when the clip has no stored audio. Clips that play the same audio (the pieces of a split, a duplicate, a paste) share it, and it changes when the clip's audio is replaced (sample edit, in-place region effect, voice-model or tempo render), so it is the key for a client peak cache: a clip whose audioSourceId is already cached needs no getClipWaveform read. Compare it for equality only; it is not the waveform's revision. Absent on a backend that predates it.
clip.clipMuted
boolean
optional
clip.durationSec
number | null
optional
Audible length in seconds (after trimming).
clip.editUrl
string
optional
clip.fadeIn
object | null
optional
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeIn.curve
string
optional
one of linear, equal_power, exp, log, s_curve
clip.fadeIn.durationSec
number
optional
min 0
clip.fadeOut
object | null
optional
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeOut.curve
string
optional
one of linear, equal_power, exp, log, s_curve
clip.fadeOut.durationSec
number
optional
min 0
clip.id
string
required
clip.isBacking
boolean
optional
clip.isImported
boolean
optional
clip.laneId
string | null
optional
clip.muted
boolean
optional
clip.name
string | null
optional
clip.parked
boolean
optional
Present (true) only on a PARKED take: the earlier take of a live / Endless / group-session lane that a re-record parked instead of deleting. Always muted; restored from the Studio timeline.
clip.sourceDurationSec
number | null
optional
Full length in seconds of the clip's source audio file (untrimmed), null when not known. A slip or a right-edge un-trim stays within it: audioOffsetSec + durationSec <= sourceDurationSec. Read-only (derived from the stored audio file); clips:batch never takes it.
clip.startMs
integer
required
Where the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).
clip.takeGroupId
string
optional
Present only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).
clip.takeIndex
integer
optional
min 0
Order inside the stack, 0 = oldest pass. Present with takeGroupId.
clip.updatedAt
string | null
optional
format date-time
clip.volume
number
optional
engine_applied
boolean
required
engine_reload_required
boolean
required
gain
number
required
min 0; max 4
The saved clip gain (linear, 1 = unity); also clip.volume.
Seconds into the source file where the audible region begins (left trim).
clip.audioSourceId
string | null
optional
Opaque id of the audio this clip plays, null when the clip has no stored audio. Clips that play the same audio (the pieces of a split, a duplicate, a paste) share it, and it changes when the clip's audio is replaced (sample edit, in-place region effect, voice-model or tempo render), so it is the key for a client peak cache: a clip whose audioSourceId is already cached needs no getClipWaveform read. Compare it for equality only; it is not the waveform's revision. Absent on a backend that predates it.
clip.clipMuted
boolean
optional
clip.durationSec
number | null
optional
Audible length in seconds (after trimming).
clip.editUrl
string
optional
clip.fadeIn
object | null
optional
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeIn.curve
string
optional
one of linear, equal_power, exp, log, s_curve
clip.fadeIn.durationSec
number
optional
min 0
clip.fadeOut
object | null
optional
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeOut.curve
string
optional
one of linear, equal_power, exp, log, s_curve
clip.fadeOut.durationSec
number
optional
min 0
clip.id
string
required
clip.isBacking
boolean
optional
clip.isImported
boolean
optional
clip.laneId
string | null
optional
clip.muted
boolean
optional
clip.name
string | null
optional
clip.parked
boolean
optional
Present (true) only on a PARKED take: the earlier take of a live / Endless / group-session lane that a re-record parked instead of deleting. Always muted; restored from the Studio timeline.
clip.sourceDurationSec
number | null
optional
Full length in seconds of the clip's source audio file (untrimmed), null when not known. A slip or a right-edge un-trim stays within it: audioOffsetSec + durationSec <= sourceDurationSec. Read-only (derived from the stored audio file); clips:batch never takes it.
clip.startMs
integer
required
Where the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).
clip.takeGroupId
string
optional
Present only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).
clip.takeIndex
integer
optional
min 0
Order inside the stack, 0 = oldest pass. Present with takeGroupId.
Seconds into the source file where the audible region begins (left trim).
clip.audioSourceId
string | null
optional
Opaque id of the audio this clip plays, null when the clip has no stored audio. Clips that play the same audio (the pieces of a split, a duplicate, a paste) share it, and it changes when the clip's audio is replaced (sample edit, in-place region effect, voice-model or tempo render), so it is the key for a client peak cache: a clip whose audioSourceId is already cached needs no getClipWaveform read. Compare it for equality only; it is not the waveform's revision. Absent on a backend that predates it.
clip.clipMuted
boolean
optional
clip.durationSec
number | null
optional
Audible length in seconds (after trimming).
clip.editUrl
string
optional
clip.fadeIn
object | null
optional
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeIn.curve
string
optional
one of linear, equal_power, exp, log, s_curve
clip.fadeIn.durationSec
number
optional
min 0
clip.fadeOut
object | null
optional
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeOut.curve
string
optional
one of linear, equal_power, exp, log, s_curve
clip.fadeOut.durationSec
number
optional
min 0
clip.id
string
required
clip.isBacking
boolean
optional
clip.isImported
boolean
optional
clip.laneId
string | null
optional
clip.muted
boolean
optional
clip.name
string | null
optional
clip.parked
boolean
optional
Present (true) only on a PARKED take: the earlier take of a live / Endless / group-session lane that a re-record parked instead of deleting. Always muted; restored from the Studio timeline.
clip.sourceDurationSec
number | null
optional
Full length in seconds of the clip's source audio file (untrimmed), null when not known. A slip or a right-edge un-trim stays within it: audioOffsetSec + durationSec <= sourceDurationSec. Read-only (derived from the stored audio file); clips:batch never takes it.
clip.startMs
integer
required
Where the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).
clip.takeGroupId
string
optional
Present only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).
clip.takeIndex
integer
optional
min 0
Order inside the stack, 0 = oldest pass. Present with takeGroupId.
One entry per source channel; each array holds bucket_count values in [-1, 1] (rms in [0, 1]).
channels[].max
number[]
optional
channels[].min
number[]
optional
channels[].rms
number[]
optional
clip
object
optional
The clip's placement when the read was made.
clip.audio_offset_frames
integer
optional
clip.audio_offset_sec
number
optional
clip.duration_frames
integer
optional
clip.duration_sec
number
optional
clip.gain
number
optional
clip.start_ms
number
optional
clip_id
string
optional
end_frame
integer
optional
End (exclusive) of the answered range.
frame_count
integer
optional
Length of the whole source, not of the clip's audible region.
frames_per_bucket
number
optional
(end_frame - start_frame) / bucket_count.
projectId
string
optional
revision
string
optional
Identity of the clip's source audio (also the ETag). Clips cut from the same source report the same revision; it changes only when the source audio changes. Known only from a waveform read; to group clips by audio without one, use the clip card's audioSourceId.
sample_rate
number
optional
Sample rate of the source frames this read indexes.
session_recovered
string
optional
one of session_load, clip_attach
Present only when the clip had to be loaded for this read.
start_frame
integer
optional
First frame of the answered range (after clamping to the source).
EngineReloadGuidanceschema
Field
Type
Required
Constraints
Description
hint
string
optional
method
string
required
one of POST
path
string
required
/api/v1/projects/{id}/engine:reload
InsertedClipschema
Field
Type
Required
Constraints
Description
audioOffsetSec
number
required
clipId
string
required
durationSec
number
required
engine_attached
boolean
required
laneId
string | null
optional
op
string
optional
one of insert, restore
sourceId
string | null
optional
startMs
integer
required
TakeStackResultschema
Field
Type
Required
Constraints
Description
activeClipId
string | null
optional
The audible take.
changed
boolean
optional
engine_applied
boolean
required
engine_reload_required
boolean
required
groupId
string
required
projectId
string
required
takes
object (Clip)[]
required
The stack, oldest take first.
timelineRevision
string | null
optional
undo
object
optional
undo.clip_id
string | null
optional
PUT this clip's take again to undo (null: the stack had no audible take).
Overwrite individual source sample values of ONE clip. edits: up to 64 ranges {channel, start_frame, values[]} in SOURCE frames (the frames GET waveform indexes); values are raw PCM in [-1, 1], pre clip-gain and effects; at most 1 s of frames per call; ranges on one channel must not overlap. If-Match (required) = the waveform revision you drew on: if the source changed, nothing is applied (412 revision_conflict with details.current_revision). Idempotency-Key (required, 16-128 chars) makes a retry return the same result. Copy-on-write: a new lossless source version is stored and only this clip switches to it. Response ETag = the new revision; undo with POST sample-edits:undo and If-Match = that revision. Encrypted sources (ordinary uploads stored envelope-encrypted) are supported: the new version is stored encrypted like its source (encrypted_at_rest). Refusals keep their MCP codes: source_encrypted_unsupported (409, the encrypted version cannot be stored right now), source_not_durable, edit_in_progress.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
edits
object (SampleEditRange)[]
required
min items 1; max items 64
expected_revision
string
optional
pattern ^[a-f0-9]{16}$
Alternative to If-Match.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Error codes specific to this operation: edit_in_progress, revision_conflict, source_encrypted_unsupported, source_not_durable. Every operation can also answer the common codes.
Restore the clip's previous source version (one step; up to 8 kept). If-Match (required) = the clip's current revision (the ETag the edit returned); a changed source is 412 revision_conflict, source_changed or nothing_to_undo (409). Idempotency-Key is required. Response ETag = the restored revision.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_revision
string
optional
pattern ^[a-f0-9]{16}$
Alternative to If-Match.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Replace exactly the selected region with a NEW processed asset in one atomic clip batch (the original audio is never modified). mode="split" (default) splits the clip at the selection and fills the gap with a processed clip. mode="in_place" (alias split=false, Audacity's behaviour) keeps ONE clip: its whole source (up to 240 s, else 413 source_too_long_for_in_place) is re-rendered with the selection processed into a new source version of the SAME clip (same clip id, start, duration and source offset), bound like a pencil sample edit; the result has revision/previous_revision and undo is POST sample-edits:undo with If-Match = revision (undo.path). The apply is done only once the live engine plays the new version (engine_status 'swapped'; get_clip_waveform then reports revision); if the engine cannot load it the job fails with engine_swap_failed, engine_status = the engine's code and NOTHING committed (rolled_back=true; the clip keeps its previous audio and revision; retry with the same key). A tempo-stretched clip is 409 in_place_unsupported_source. Selection: start_ms/end_ms (timeline ms) OR start_frame/end_frame (+ sample_rate), not both; a range past the clip is clamped to it. crossfade_ms (0-100) blends original -> processed inside the selection. Regions over 120 s are refused (region_too_long). The clip must be loaded in the live session. Runs as a job: waits up to wait_sec (default 20, max 50); 200 with status 'done' and the result, or 202 with status 'queued'/'running', job_id and a Location to poll. The Idempotency-Key header doubles as the apply's idempotency_key (a committed apply answers replay; after undoing, apply again with a NEW key or get idempotency_key_used). Undo (split): POST undo.inverse_ops to clips:batch. If-Match takes the timeline revision (412 timeline_revision_conflict); a clip that changed mid-apply is 412 conflict. A result peaking ABOVE 0 dBFS (by more than 0.0001 dB) is refused (409 would_clip) unless allow_clipping=true; a peak of exactly 0 dBFS is allowed (it is stored unclipped). dry_run=true plans only. Live-engine failures keep a specific code: 503 engine_session_contended (another project of this account took the account's live engine; retry after Retry-After), engine_session_not_found, engine_restarting; otherwise the engine's own code, with details.engineReason when it gave one. Charged to the Mozart AI burst guard, like MCP.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
allow_clipping
boolean
optional
default false
crossfade_ms
number
optional
default 0; min 0; max 100
dry_run
boolean
optional
default false
effect
string
required
max length 32
An effect id from the catalog.
end_frame
integer
optional
min 0
end_ms
number
optional
min 0
idempotency_key
string
optional
max length 128
mode
string
optional
default "split"; one of split, in_place
split = split the clip and fill the gap (default); in_place = keep one clip and write a new source version of it.
params
object
optional
Typed parameters from the catalog; omitted ones take their defaults.
sample_rate
number
optional
min 8000; max 384000
split
boolean
optional
false = mode "in_place".
start_frame
integer
optional
min 0
start_ms
number
optional
min 0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Error codes specific to this operation: conflict, engine_restarting, engine_session_contended, engine_session_not_found, idempotency_key_used, in_place_unsupported_source, region_too_long, source_too_long_for_in_place, timeline_revision_conflict, would_clip. Every operation can also answer the common codes.
Render an effect over a selected region WITHOUT changing the project: a one-hour playback URL plus measured levels of the original and processed selection. Selection: start_ms/end_ms (timeline ms) OR start_frame/end_frame (+ sample_rate), not both; a range past the clip is clamped to it. crossfade_ms (0-100) blends original -> processed inside the selection. Regions over 120 s are refused (region_too_long). The clip must be loaded in the live session. context_ms (0-2000) adds untouched audio around the playback; at most the first 30 s render (preview.truncated). Read scope; viewers may preview.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Request body application/json
Field
Type
Required
Constraints
Description
context_ms
number
optional
default 0; min 0; max 2000
crossfade_ms
number
optional
default 0; min 0; max 100
effect
string
required
max length 32
An effect id from the catalog.
end_frame
integer
optional
min 0
end_ms
number
optional
min 0
params
object
optional
Typed parameters from the catalog; omitted ones take their defaults.
sample_rate
number
optional
min 8000; max 384000
start_frame
integer
optional
min 0
start_ms
number
optional
min 0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Status of an apply job: queued | running | done | failed, the current step, and on done the full apply result (including undo.inverse_ops). wait_sec (0-50) long-polls. Jobs are kept one hour and are per user; after a server restart retry the apply with the same Idempotency-Key. A failed job is 200 with status 'failed', error, code and http_status (the job resource exists; the apply failed).
Effects that preview / apply accept: id, label, description and a typed parameter schema per effect, plus limits and the processors that are NOT region-capable.
curl -X GET "https://freestyle.audio/api/v1/region-effects" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
RegionEffectCatalogschema
Field
Type
Required
Constraints
Description
effects
object[]
optional
RegionEffectJobschema
Field
Type
Required
Constraints
Description
asset
object
optional
clips_after
any[]
optional
dry_run
boolean
optional
engine_reload_required
boolean
optional
engine_status
string
optional
in_place only: the live engine's /clips/source/swap outcome. On status 'done' it is 'swapped' (the live clip plays the new version and get_clip_waveform reports `revision`) or 'replay' (an earlier apply with this key; nothing re-sent). On status 'failed' with code engine_swap_failed it is the engine's refusal and NOTHING was committed (rolled_back=true: the clip keeps previous source + revision, retry with the same key): source_unavailable (the engine could not fetch/decrypt the new version), revision_conflict, clip_not_loaded, session_project_mismatch, source_not_in_project, sample_rate_mismatch, swap_failed, live_revision_mismatch (the engine answered but does not play the new version), engine_timeout, engine_session_contended, engine_session_not_found, engine_restarting, engine_update_required, engine_error (anything else; other engine codes may appear). rolled_back=false means the new version stayed bound; reload the session.
engine_swapped
boolean
optional
idempotency_key
string
optional
job_id
string
optional
mode
string
optional
one of split, in_place
previous_revision
string
optional
projectId
string
optional
region
object
optional
replay
boolean
optional
revision
string
optional
in_place: the clip's new source revision.
rolled_back
boolean
optional
failed in_place apply: whether the new source version was unbound (true = nothing changed).
status
string
optional
one of queued, running, done, failed
step
string | null
optional
timelineRevision
string | null
optional
undo
object
optional
Media
Audio uploads and imports, attaching stored clips to the live session, and the Sound Library.
base64 file bytes (max 25 MB decoded; larger files: addAudioFromUrl). Targets: project_id + kind vocal (new vocal lane + take with the default chain) | audio | backing (replaces the backing); project_id + track_id adds the take to that lane; new_project=true creates a project from the file (Pro). Editor role on project_id. The app's upload scanner validates the bytes; the app-wide upload admission (concurrency + byte quotas) applies, so an Idempotency-Key header is required. X-Freestyle-Upload-Intent: media (or omit it); metadata-only is refused. start_ms (alias startMs, integer ms, default 0) places the new vocal/audio clip on the timeline in the same write (not for kind=backing / new_project). When the project is open in a live session the new clip is attached to it in the same call (engine_attached=true): its waveform, sample edits and playback work at once. A project with no open session is never cold-loaded for this (engine_attached=false; the next session load reads the clip). A saved clip the open session could not load answers 201 with engine_reload_required=true (and engineError).
Parameters
Parameter
In
Type
Required
Constraints
Description
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
base64
string
required
min length 4
File bytes, base64 (a data: URL is accepted).
filename
string
optional
max length 160
kind
string
optional
default "vocal"; one of vocal, audio, backing
new_project
boolean
optional
default false
project_id
string
optional
max length 64
startMs
integer
optional
min 0; max 86400000
Alias of start_ms.
start_ms
integer
optional
default 0; min 0; max 86400000
Timeline position of the new clip in ms (vocal/audio only).
Download a public https audio file and add it as kind vocal (new vocal lane + take with the default chain) | audio | backing. Validated by the app's upload scanner. The downloaded bytes pay the upload admission (concurrency + byte/storage quotas) and the call pays the dedicated api_v1:fetch budget (30/hour per user by default).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Load one already-saved clip (the clipId from uploadAudio / addAudioFromUrl / getProject) into the running Mozart session, exactly as session load does (no re-upload). 409 when it is already loaded.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
name
string
optional
max length 255
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Import an FL Studio .flp (or a zipped loop package) INTO this project, replacing its Studio contents: lanes, clips, patterns and placements, buses and plug-in chains, the backing track and the tempo/key all become the imported file's, exactly as a new import would create them. The project's id, title, cover, notes, sharing, collaborators, saves and lyrics stay. Only FL Studio projects whose audio clips are not stretched can replace (others, and format logic: 400 replace_import_unsupported). base64, max 25 MB decoded; the bytes pass the same upload scanner as the app's import, and the call is an upload: it pays the upload admission (concurrency leases, hourly / daily / storage byte quotas: 429 upload_concurrency / upload_quota), needs an Idempotency-Key, and has its own budgets (RATE_LIMIT_API_V1_DAW_IMPORT_USER_PER_HOUR per user, RATE_LIMIT_API_V1_DAW_IMPORT_PROJECT_PER_HOUR per project). The import writes a restorable save in the same transaction (previousSaveId; the owner and every editor may restoreProjectSave it; the newest 5 such saves are kept per project); a failed import changes nothing and leaves no save. Editor or owner (viewers 403 editor_required), Pro. An open live session is reloaded in the background (engine.reload=scheduled) unless the project is recording (engine.reload=skipped, engine.note says why); every open Studio tab reconciles at once. Errors: 400 invalid_argument (format / file name), 413 file_too_large, 400 project_import_invalid (bad archive or audio), 502 project_import_failed or the importer's own flp_import_* code.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Error codes specific to this operation: editor_required, file_too_large, invalid_argument, project_import_failed, project_import_invalid, replace_import_unsupported, upload_concurrency, upload_quota. Every operation can also answer the common codes.
The MCP import_daw_project result (with project_id).
Field
Type
Required
Constraints
Description
created
boolean
optional
Always false here: nothing new is created.
engine
object
optional
An open live session is reloaded from the saved project in the background; reloadEngineSession reloads and waits.
engine.note
string
optional
engine.reload
string
optional
one of scheduled, skipped
format
string
required
one of flp
ok
boolean
required
previousSaveId
string
required
The save written with the replace (owned by the project owner, restorable by the owner and every editor): restoreProjectSave with it undoes the import.
project
object
required
projectUrl
string
required
replaced
boolean
required
true: the project's contents were replaced.
title
string
optional
warnings
string[]
optional
LibraryAssetschema
The compact marketplace asset card (fields follow MCP list_my_library_assets).
Field
Type
Required
Constraints
Description
assetType
string
optional
id
string
required
name
string
optional
MediaAddResultschema
The MCP upload_audio / add_audio_from_url result: laneId + clipId for a vocal/audio take, backingTrack for kind=backing, created=true for new_project.
Field
Type
Required
Constraints
Description
backingTrack
object
optional
clipId
string
optional
durationSec
number | null
optional
editUrl
string
optional
engineError
object
optional
engine_attached
boolean
optional
uploadAudio: the new clip is loaded in the project's open live session (waveform reads and sample edits work right away). false when no session is open: the next session load reads it.
engine_reload_required
boolean
optional
The clip is saved but an open live session could not load it: attachClipToSession or a session reload plays it.
kind
string
optional
laneId
string
optional
ok
boolean
optional
postCommitError
object
optional
project
object
optional
projectUrl
string
optional
startMs
integer
optional
Where the new clip sits on the timeline (ms).
title
string
optional
Transport
Live Mozart transport of a project's session (play/pause/seek/range/loop).
enabled (required) and, optionally, the loop range in seconds or ticks. The switch and the region are separate, like a DAW's cycle: a bound you leave out keeps the current one, so {enabled:false} keeps the region and a later {enabled:true} loops that same region again. Enabling with no usable region (end after start) is refused with 409 loop_region_required and changes nothing (send start_sec/end_sec, e.g. a default bar range). Explicit values, including 0, still replace the region. For ticks, If-Match (or timing_map_revision) guards the timing-map revision.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
enabled
boolean
required
end_sec
number
optional
min 0
end_tick
integer
optional
min 0
start_sec
number
optional
min 0
start_tick
integer
optional
min 0
timing_map_revision
integer
optional
min 0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Starts the transport. Count-in: count_in_beats (1-16) clicks that many beats at the tempo first -- also with the metronome off -- and starts the stopped transport exactly one beat after the last click; no recording is armed (for a MIDI take your app stamps itself, or count-in-then-play). seek_seconds parks the transport there first (0 = the project start: the clicks need no timeline before it); bpm (20-400) sets the tempo first when the tempo map is constant. The reply returns ON the boundary (wait=false: at once) with response {transport_started, position_seconds, start_position_seconds, count_in_beats, count_in_bpm, count_in_beat_samples, count_in_first_click_sample, transport_start_sample, audio_device_sample, sample_rate}; samples are on the engine's audio-device clock (last click -> transport_start_sample = one beat). Pause, play or seek during the count-in cancels it (409 count_in_cancelled). See /docs/realtime.html#count-in.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
bpm
number
optional
min 20; max 400
With count_in_beats: the tempo (constant tempo maps).
count_in_beats
integer
optional
min 1; max 16
Count-in clicks before the transport starts.
seek_seconds
number
optional
min 0
With count_in_beats: park the transport here first.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Plays [start, end) once; the engine stops exactly at end (sample-accurate). start_sec/end_sec, or start_frame/end_frame (+ sample_rate). Invalid values are rejected, never clamped.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
end_frame
integer
optional
min 1
end_sec
number
optional
> 0
sample_rate
number
optional
min 8000; max 384000
start_frame
integer
optional
min 0
start_sec
number
optional
min 0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Give seconds, or tick (96 PPQ through the tempo map). play=true seeks and starts playback (seconds only). For ticks, If-Match (or timing_map_revision) guards the timing-map revision: 412 timing_map_revision_conflict if it moved. 409 no_audio_loaded: the session has no audio at all yet (an empty project); add a backing, a clip or a pattern first (play / playRange answer the same code).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
play
boolean
optional
default false
seconds
number
optional
min 0
tick
integer
optional
min 0
timing_map_revision
integer
optional
min 0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Linear gain (1 = unity; the engine fader range is 0-4). A level, not a mute: use /mute to silence a lane. Saved with the project as the lane's volume (get_project lanes[].volume / mixExplicit; the beat's backing_gain), restored on reload, unless persist=false (response.lane_volume_persisted says whether).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
gain
number
required
min 0; max 16
persist
boolean
optional
default true
false while sweeping (live only), then a final call without it.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Exactly like the lane's M button (any lane kind; lane_id 'backing' for the beat).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
muted
boolean
required
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
pan -1 (hard left) .. 0 (center) .. 1 (hard right); post-fader, before bus routing. persist=false while sweeping, then a final call without it.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
pan
number
required
min -1; max 1
persist
boolean
optional
default true
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Exactly like the lane's S button (any lane kind; lane_id 'backing' for the beat).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
soloed
boolean
required
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Stereo separation (-1..1), phase invert and swap L/R for one lane (FL's insert stereo separation and phase / swap buttons). Send at least one field; only the fields sent change. Applied after the insert chain (and native EQ), before the fader and pan, with click-free ramps; neutral values leave the audio bit-identical. Saved with the project unless persist=false (response.db_persisted says whether). 409 engine_update_required on an engine that predates stereo tools.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
persist
boolean
optional
default true
false while sweeping (live only), then a final call without it.
polarity_inverted
boolean
optional
Phase invert (both channels).
separation
number
optional
min -1; max 1
Stereo separation, -1 (mono) .. 0 (neutral) .. +1 (side doubled); FL shows -100..+100 %. Applied after the insert chain, before the fader.
swap_lr
boolean
optional
Swap the left and right channels.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Linear 0-4 (1 = unity) on the whole project output after the master chain, before the limiter; saved with the project unless persist=false.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
gain
number
required
min 0; max 4
persist
boolean
optional
default true
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
pan -1 (hard left) .. 0 (center) .. 1 (hard right) on the whole project output, after the master fader and before the limiter: an equal-power balance (the far side tapered, smoothed). Bumps the mix revision. Live session state: not saved with the project (a reopened project starts centered).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
pan
number
required
min -1; max 1
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
The project's persisted mixer buses (master included) with gain, mute/solo, order and plugin chain. The master bus's pluginChain is its saved INSERT CHAIN (bus_id 'master' on the bus-plugin routes: addBusPlugin, listBusPlugins, setBusPluginParameter, setBusPluginBypassed, moveBusPlugin, deleteBusPlugin and the bus editor routes): processed on the final mix (every lane, bus and the beat) before the master fader / pan, live and in exports, saved by the engine and restored on every session load. Its gain is the engine master output fader.
Create a persisted mixer bus (bus_id is caller-chosen, unique per project). When the project is open in a live engine session the bus channel is created there at once (liveEngine), so setLaneSend / setLaneRouting to it work immediately.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Rename, set gain (0..4), mute/solo, reorder or replace the bus plugin chain. Name, gain, mute and solo are also applied to an open engine session at once (liveEngine); a replaced plugin_chain is heard after the next session load.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Delete an unused bus. Refused (409) while a lane, pattern placement or pattern source is still routed to it, or while a lane still sends to it: re-route the lanes and delete the sends (deleteLaneSend) first. Sends kept by deleted lanes go with the bus, so a bus created later with the same id starts with no sends. An open engine session drops the bus channel at once (liveEngine). DELETE is the confirmation.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Whether the project's OPEN engine session took the change at once (the bus channel is created / updated / removed live, exactly like the Studio's bus mixer), so a send or routing to a new bus works without engine:reload. No session is ever opened for this; reason no_live_session = nothing was open (the next session load builds the bus).
liveEngine.applied
boolean
required
true = the running engine session took the change (the next audio block hears it).
liveEngine.reason
string
optional
one of no_live_session, engine_rejected, engine_unreachable
Why it was not applied live. The saved change still stands; the next session load plays it.
Linear gain on the live engine bus; saved with the project unless persist=false.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
gain
number
required
min 0; max 4
persist
boolean
optional
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
muted
boolean
required
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
pan -1 (hard left) .. 0 (center) .. 1 (hard right) on the live engine bus output, after its fader: an equal-power balance (the near side untouched, the far side tapered; smoothed, so a sweep is click-free). Bumps the mix revision like every mix write. Live session state: not saved with the project (a reopened project starts centered). bus_id 'master' is the master output pan (same as setMasterPan).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
pan
number
required
min -1; max 1
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Persisted plugin snapshots on a bus chain (keys, types, positions, hashes). bus_id
'master' lists the saved master insert chain (rows the engine writes).
Upsert the persisted state of one plugin (plugin_key) on a bus chain. On bus_id 'master' the engine owns the rows (addBusPlugin saves each insert under its instance id): only an existing plugin_key can be refined (its state fields merge); an unknown key is 404 not_found.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
soloed
boolean
required
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Stereo separation (-1..1), phase invert and swap L/R for one bus. Send at least one field; only the fields sent change. Applied after the bus insert chain, before its fader, click-free; neutral is bit-identical. Saved with the project unless persist=false. Not available on the master output. 409 engine_update_required on an engine that predates stereo tools.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
persist
boolean
optional
polarity_inverted
boolean
optional
Phase invert (both channels).
separation
number
optional
min -1; max 1
Stereo separation, -1 (mono) .. 0 (neutral) .. +1 (side doubled); FL shows -100..+100 %. Applied after the insert chain, before the fader.
swap_lr
boolean
optional
Swap the left and right channels.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Send a lane's output to bus_id ('master' for the main mix). With If-Match /
expected_mix_revision the route is set by the engine's compare-and-set.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
bus_id
string
required
min length 1; max length 64
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
The lane's saved parallel aux sends (bus, linear level 0-2, pre/post fader). getEngineMix tracks[].sends is the live engine's view; getProject lanes[].sends the saved one.
Send a parallel copy of the lane to bus_id (an existing non-master bus) in addition to its output route. level is linear 0-2 (1 = unity, 2 = +6 dB, like the faders), stored and reported at 6 decimals; pre_fader=true taps before the lane fader and pan (mute/solo still silence it), false after them; omitted keeps the send's tap (post-fader for a new send). The send sums into the bus before its chain, fader and delay compensation, live and in renders/exports. Saved with the project (project_lane_sends) for every project lane, placement lanes ('pattern-<id>') included, and copied by duplicateProject / duplicateLane, brought back by restoreLane / project saves. Refused: lane_id 'backing' (400 invalid_argument; the beat has no lane row), bus_id 'master', a bus not in the project (404). Bus-to-bus sends are not supported (buses sum to master only); at most 16 sends per lane. Guard with If-Match: "mix-<n>" / expected_mix_revision like other mix writes; the reply carries the new mixRevision and undo (the request that restores the previous state).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
level
number
required
min 0; max 2
pre_fader
boolean
optional
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Remove the lane's send to bus_id (idempotent: no send is still 200 with previous null). If-Match / expected_mix_revision like other mix writes; undo re-creates the removed send.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Whether the project's OPEN engine session took the change at once (the bus channel is created / updated / removed live, exactly like the Studio's bus mixer), so a send or routing to a new bus works without engine:reload. No session is ever opened for this; reason no_live_session = nothing was open (the next session load builds the bus).
liveEngine.applied
boolean
required
true = the running engine session took the change (the next audio block hears it).
liveEngine.reason
string
optional
one of no_live_session, engine_rejected, engine_unreachable
Why it was not applied live. The saved change still stands; the next session load plays it.
The plug-ins loaded on one bus of the live session, in chain order: index, name, type_id (catalog id), instance_id, bypassed, format, hasEditor. bus_id 'master' is the master insert chain (processed on the final mix before the master fader, live and in exports); hasEditor is true for its hosted plug-ins (the bus editor routes open them). Other buses have no editor routes (hasEditor false). chainLatencySamples is the chain's reported latency; for master it is output latency the engine reports in /transport/clock producer_latency_seconds and compensates in exports. live is false when the open session has no channel for the bus. The saved chain is getBusPluginState. Host plug-in file paths are never returned.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Remove one plugin slot from a bus chain (DELETE is the confirmation). removed is what was taken out, read from the running plug-in just before the delete (instance id, type, bypass, slot, saved chunk with its signature); undo is the addBusPlugin request that puts it back with the same settings in the same slot. bus_id 'master' addresses the master insert chain (the engine saves the change; parameter and state edits are captured ~1.5 s after the last edit). 409 master_effects_not_supported (details.reason engine_outdated) when the project's engine predates master effects.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Bypass or re-enable one bus plugin slot. bus_id 'master' addresses the master insert chain (the engine saves the change; parameter and state edits are captured ~1.5 s after the last edit). 409 master_effects_not_supported (details.reason engine_outdated) when the project's engine predates master effects.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
bypassed
boolean
required
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of getPluginEditorStatus, addressed by bus slot instead of lane. Whether the slot's editor window is open/mirrored on the engine host.
``editor_status.editor_target`` names what the mirror captures and feeds:
instance_id, window_id, editor_id, editor_bound_to_instance (the editor's
processor IS the slot's instance), owner_matches, window/occlusion state,
last_revision and last_frame_stale.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
editor_not_available: the bus is not 'master' (reason bus_editor_not_supported), or the master slot holds a built-in processor with no editor. master_effects_not_supported: the engine predates master effects. Lane editor codes otherwise (editor_not_available: the slot holds a native effect (format native / native-* type), which has no editor window. Final (not retryable); answered without an engine call.).
428
expected_revision_required (send If-Match), or username_required.
Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of getPluginEditorFrame, addressed by bus slot instead of lane. The open editor window's current pixels as image/jpeg, for mirroring a native plug-in GUI (open it first with openPluginEditor). Poll it: pass the last X-Editor-Revision as if_revision (or If-None-Match) and an unchanged frame is 304 with no body; wait_ms (<= 500) holds the request until the frame changes: the engine captures right after each input event reaches the editor (sendPluginEditorPointer, sendPluginEditorScroll, sendPluginEditorKeys), so a client that re-requests as soon as a frame arrives gets one per input step, and the settled frame within ~50 ms of the last event. For frames pushed without HTTP round trips, subscribe on the monitoring WebRTC peer instead (Realtime: live plug-in editor frames). max_width scales the frame down (64-1280, default 640; JPEG quality 0.7). The revision hashes every pixel of the slot's own editor window (redrawn before each capture); if the plug-in's parameters moved but its pixels did not, X-Editor-Frame-Stale is 1 and the revision still changes. Response headers: ETag / X-Editor-Revision, X-Editor-Width, X-Editor-Height, X-Editor-Plugin-Instance-Id, X-Editor-Plugin-Type, X-Editor-Window-Id, X-Editor-Bound-To-Instance, X-Editor-Capture-Source, X-Editor-Frame-Stale. expected_plugin_instance_id refuses a frame of another instance (409 plugin_instance_mismatch). The bytes are proxied by the API (no direct Mozart URL is issued). Metered by the editor rate class, separate from the interactive bucket. 409 editor_not_open when no editor window is open; 409 target_not_loaded when the lane is not in the live session.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
max_width
query
integer
optional
default 640; min 64; max 1280
Scale the frame to at most this width.
wait_ms
query
integer
optional
default 0; min 0; max 500
With if_revision: wait up to this long for a changed frame.
if_revision
query
string
optional
max length 128
X-Editor-Revision of the frame you hold.
expected_plugin_instance_id
query
string
optional
max length 128
Refuse (409 plugin_instance_mismatch) if the slot's editor belongs to another instance.
Responses
Status
Meaning
Body
Headers
200
OK
304
Unchanged since if_revision / If-None-Match (no body).
editor_not_available: the bus is not 'master' (reason bus_editor_not_supported), or the master slot holds a built-in processor with no editor. master_effects_not_supported: the engine predates master effects. Lane editor codes otherwise (editor_not_open, target_not_loaded, plugin_instance_mismatch or editor_not_available (a native effect: no editor window; final, no engine call).).
428
expected_revision_required (send If-Match), or username_required.
Error codes specific to this operation: editor_not_available, editor_not_open, plugin_instance_mismatch, target_not_loaded. Every operation can also answer the common codes.
Minimal request (required fields only):
curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/frame" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
Send a pointer event to a master-bus plugin editor
Operation
sendBusPluginEditorPointer
Scope
daw:write
Project role
editor
Rate class
editor (own plug-in editor buckets)
Behaviour
Idempotency-Key
Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of sendPluginEditorPointer, addressed by bus slot instead of lane. One pointer phase (down / move / up) at normalized editor coordinates (0..1 of the frame's width/height). Send a gesture as down, moves, up with one gesture_id so knobs, sliders and drags keep their gesture. Coalesce moves client-side (<= ~20/s); a missed up leaves the gesture held, so always send it. down / move answer delivery=dispatched once the event reached a hit-testable editor view; up is confirmed by effect (a parameter or the editor's pixels changed since down), else ok is false with code input_unconfirmed. ok is also false for not_hit_testable / no_editor_view. Never retried by the server. Metered by the editor rate class. 409 editor_not_open when no editor window is open. For Studio latency (no HTTP round trip per event), send the same fields as editor.pointer on the monitoring peer's mozart-editor data channel instead (sendMonitorOffer peerGrant=write; /docs/realtime.html#fast-input).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Send a scroll (wheel) event to a master-bus plugin editor
Operation
sendBusPluginEditorScroll
Scope
daw:write
Project role
editor
Rate class
editor (own plug-in editor buckets)
Behaviour
Idempotency-Key
Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of sendPluginEditorScroll, addressed by bus slot instead of lane. A wheel event at normalized editor coordinates. delta_x / delta_y follow DOM WheelEvent units (delta_mode 0 pixels, 1 lines, 2 pages); positive delta_y scrolls down. Confirmed by effect like pointer up (ok false, code input_unconfirmed, when nothing changed). Metered by the editor rate class. 409 editor_not_open when no editor window is open.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Type text or a key into a master-bus plugin editor
Operation
sendBusPluginEditorKeys
Scope
daw:write
Project role
editor
Rate class
editor (own plug-in editor buckets)
Behaviour
Idempotency-Key
Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of sendPluginEditorKeys, addressed by bus slot instead of lane. Type text (up to 256 characters, e.g. into a focused value field) or send one key by keycode (JUCE/ASCII key code: 13 Return, 27 Escape, 8 Backspace, 9 Tab, 127 Delete, printable ASCII, JUCE arrow/Home/End/PageUp/PageDown codes), with optional modifiers. Send text OR keycode. Keys go to the editor's focused control: click the value field first. The result is confirmed by effect (a parameter or the editor's pixels changed); otherwise ok is false with code input_unconfirmed. Metered by the editor rate class. 409 editor_not_open when no editor window is open.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of closePluginEditor, addressed by bus slot instead of lane. Close the slot's editor window.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of openPluginEditor, addressed by bus slot instead of lane. Open the slot's editor window on the engine host and start mirroring it. plugin_index is the listLanePlugins index (on an instrument lane, 0 is the instrument).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Master-bus insert editor (bus_id 'master'; other buses answer 409 editor_not_available): exactly the lane contract of releasePluginEditor, addressed by bus slot instead of lane. Release this caller's hold on the slot's editor window.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
FL's slot Mix knob for a bus insert: 0..1, default 1 (bit-identical). Saved with the project unless persist=false. 409 engine_update_required on an engine without per-slot mix.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
mix
number
required
min 0; max 1
Wet/dry mix of the slot: 0 = dry (slot input), 1 = fully wet (default).
persist
boolean
optional
default true
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Normalized (0..1) parameter of one bus plugin slot; the engine write carries the slot's expected plugin type (wrong-slot guard). bus_id 'master' addresses the master insert chain (the engine saves the change; parameter and state edits are captured ~1.5 s after the last edit). 409 master_effects_not_supported (details.reason engine_outdated) when the project's engine predates master effects.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
parameter_index
path
integer
required
min 0; max 100000
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Move one bus plugin slot to to_index; the plug-ins in between shift by one. bus_id 'master' addresses the master insert chain (the engine saves the change; parameter and state edits are captured ~1.5 s after the last edit). 409 master_effects_not_supported (details.reason engine_outdated) when the project's engine predates master effects.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
to_index
integer
required
min 0; max 64
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Persist which chain modules are enabled / added (module name -> true/false) and the vocal gain (0..4) for one take, exactly like the Studio's chain toggles.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Replace this lane's saved chain with a by-value copy of source_lane_id's (the Studio's Copy / Apply effect chain). Works between any two audio lanes (vocal, audio, guitar), legacy (identityVersion 1) or current; clips, identity and mix are untouched, and the destination reopens with the copied chain. When the project is loaded in the live engine the destination's live chain is swapped too (engine_applied=true); engine_reload_required=true means the copy is saved but the live engine still plays the old chain until the session reloads (engine_skipped lists plug-ins it could not instantiate).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Turn one module of the lane's Nectar instance on or off (undoable). effect: compressor | deesser | delay | dimension | eq | gate | reverb | saturation.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
effect
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
enabled
boolean
required
plugin_index
integer
optional
min 0; max 64
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Persisted (session-independent) lane chain: plugin keys, types, positions, bypass, state hashes, voice settings. Live values come from /plugins/{index}/state.
Plugins loaded on one lane of the live session (index, name, type_id, instance_id, bypassed, mix, hasEditor). hasEditor is false for native effects (format native / a native-* type_id): they have no editor window and the editor routes answer 409 editor_not_available for them. Host plug-in file paths are never returned.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
lane_has_no_live_chain: the lane has no mixer track in the live engine session; the message says why (pattern lane not synced yet, instrument lane with no instrument, lane created while the session was open). Answered without waiting on the engine.
428
expected_revision_required (send If-Match), or username_required.
Bypass or re-enable one lane plugin slot. Optional precondition: expected_plugin_instance_id / expected_plugin_type (from listLanePlugins) are compared with the slot's live identity before the write; a mismatch is 409 plugin_instance_mismatch with details.currentInstanceId / currentPluginType and nothing is written.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
bypassed
boolean
required
expected_plugin_instance_id
string
optional
max length 128
instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.
expected_plugin_type
string
optional
max length 128
type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Whether the slot's editor window is open/mirrored on the engine host.
``editor_status.editor_target`` names what the mirror captures and feeds:
instance_id, window_id, editor_id, editor_bound_to_instance (the editor's
processor IS the slot's instance), owner_matches, window/occlusion state,
last_revision and last_frame_stale.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
editor_not_available: the slot holds a native effect (format native / native-* type), which has no editor window. Final (not retryable); answered without an engine call.
428
expected_revision_required (send If-Match), or username_required.
The open editor window's current pixels as image/jpeg, for mirroring a native plug-in GUI (open it first with openPluginEditor). Poll it: pass the last X-Editor-Revision as if_revision (or If-None-Match) and an unchanged frame is 304 with no body; wait_ms (<= 500) holds the request until the frame changes: the engine captures right after each input event reaches the editor (sendPluginEditorPointer, sendPluginEditorScroll, sendPluginEditorKeys), so a client that re-requests as soon as a frame arrives gets one per input step, and the settled frame within ~50 ms of the last event. For frames pushed without HTTP round trips, subscribe on the monitoring WebRTC peer instead (Realtime: live plug-in editor frames). max_width scales the frame down (64-1280, default 640; JPEG quality 0.7). The revision hashes every pixel of the slot's own editor window (redrawn before each capture); if the plug-in's parameters moved but its pixels did not, X-Editor-Frame-Stale is 1 and the revision still changes. Response headers: ETag / X-Editor-Revision, X-Editor-Width, X-Editor-Height, X-Editor-Plugin-Instance-Id, X-Editor-Plugin-Type, X-Editor-Window-Id, X-Editor-Bound-To-Instance, X-Editor-Capture-Source, X-Editor-Frame-Stale. expected_plugin_instance_id refuses a frame of another instance (409 plugin_instance_mismatch). The bytes are proxied by the API (no direct Mozart URL is issued). Metered by the editor rate class, separate from the interactive bucket. 409 editor_not_open when no editor window is open; 409 target_not_loaded when the lane is not in the live session.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
max_width
query
integer
optional
default 640; min 64; max 1280
Scale the frame to at most this width.
wait_ms
query
integer
optional
default 0; min 0; max 500
With if_revision: wait up to this long for a changed frame.
if_revision
query
string
optional
max length 128
X-Editor-Revision of the frame you hold.
expected_plugin_instance_id
query
string
optional
max length 128
Refuse (409 plugin_instance_mismatch) if the slot's editor belongs to another instance.
Responses
Status
Meaning
Body
Headers
200
OK
304
Unchanged since if_revision / If-None-Match (no body).
Error codes specific to this operation: editor_not_open, plugin_instance_mismatch, target_not_loaded. Every operation can also answer the common codes.
Minimal request (required fields only):
curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/frame" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
One pointer phase (down / move / up) at normalized editor coordinates (0..1 of the frame's width/height). Send a gesture as down, moves, up with one gesture_id so knobs, sliders and drags keep their gesture. Coalesce moves client-side (<= ~20/s); a missed up leaves the gesture held, so always send it. down / move answer delivery=dispatched once the event reached a hit-testable editor view; up is confirmed by effect (a parameter or the editor's pixels changed since down), else ok is false with code input_unconfirmed. ok is also false for not_hit_testable / no_editor_view. Never retried by the server. Metered by the editor rate class. 409 editor_not_open when no editor window is open. For Studio latency (no HTTP round trip per event), send the same fields as editor.pointer on the monitoring peer's mozart-editor data channel instead (sendMonitorOffer peerGrant=write; /docs/realtime.html#fast-input).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
A wheel event at normalized editor coordinates. delta_x / delta_y follow DOM WheelEvent units (delta_mode 0 pixels, 1 lines, 2 pages); positive delta_y scrolls down. Confirmed by effect like pointer up (ok false, code input_unconfirmed, when nothing changed). Metered by the editor rate class. 409 editor_not_open when no editor window is open.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Type text (up to 256 characters, e.g. into a focused value field) or send one key by keycode (JUCE/ASCII key code: 13 Return, 27 Escape, 8 Backspace, 9 Tab, 127 Delete, printable ASCII, JUCE arrow/Home/End/PageUp/PageDown codes), with optional modifiers. Send text OR keycode. Keys go to the editor's focused control: click the value field first. The result is confirmed by effect (a parameter or the editor's pixels changed); otherwise ok is false with code input_unconfirmed. Metered by the editor rate class. 409 editor_not_open when no editor window is open.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Open the slot's editor window on the engine host and start mirroring it. plugin_index is the listLanePlugins index (on an instrument lane, 0 is the instrument).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
FL's slot Mix knob: blends the slot's input (dry) with its output (wet), 0..1, default 1. 1 leaves the audio bit-identical; below 1 a plugin that reports latency has its dry copy delayed to match. Live, click-free; saved with the project unless persist=false. 409 engine_update_required on an engine without per-slot mix. Optional precondition: expected_plugin_instance_id / expected_plugin_type (from listLanePlugins) are compared with the slot's live identity before the write; a mismatch is 409 plugin_instance_mismatch with details.currentInstanceId / currentPluginType and nothing is written.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
expected_plugin_instance_id
string
optional
max length 128
instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.
expected_plugin_type
string
optional
max length 128
type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.
mix
number
required
min 0; max 1
Wet/dry mix of the slot: 0 = dry (slot input), 1 = fully wet (default).
persist
boolean
optional
default true
false while dragging (live only), then a final call without it.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Set one parameter, as value_norm (0..1) OR value (physical units: dB, Hz, ms, ...). Send exactly one. listLanePluginParameters says which forms each parameter accepts (writeForms): native effects take both (value_norm maps onto the range with the same linear curve discovery reports, value is validated against min/max) and are written in physical units through the engine's native-params route; hosted (VST3) plug-ins take value_norm (their host exposes no unit mapping). The engine write is pinned to the slot (expected plugin type / instance id), so a stale index never lands on another plugin. expected_value_norm (the valueNorm you read) makes the write a compare-and-set: if the parameter moved by more than 1e-4 since (a Studio user turned the knob), 412 plugin_parameter_conflict (details.currentValueNorm) and nothing is written. A hosted write's reply carries the engine's own answer: applied=true when it confirms the write is applied at the next audio block (a few ms), also on an idle or bypassed plug-in, and editorFrameWoken=true when it woke the editor-frame stream so subscribers repaint at once. Both are false on an engine that only queued the write (it is being updated); read the parameter back to confirm. parameter is the host's read-back (valueNorm + display text). Optional precondition: expected_plugin_instance_id / expected_plugin_type (from listLanePlugins) are compared with the slot's live identity before the write; a mismatch is 409 plugin_instance_mismatch with details.currentInstanceId / currentPluginType and nothing is written.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
parameter_index
path
integer
required
min 0; max 100000
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
expected_plugin_instance_id
string
optional
max length 128
instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.
expected_plugin_type
string
optional
max length 128
type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.
expected_value_norm
number
optional
min 0; max 1
valueNorm you read (listLanePluginParameters / getLanePluginState). Mozart compares it with the live value (tolerance 1e-4) in the same step as the write; a mismatch is 412 plugin_parameter_conflict and nothing is written.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Apply a named preset (e.g. a Nectar preset) to one lane plugin slot. Presets exist only for Nectar and Auto-Tune: any other plug-in is refused up front with 409 preset_not_supported (details.currentPluginType) and nothing is written. Optional precondition: expected_plugin_instance_id / expected_plugin_type (from listLanePlugins) are compared with the slot's live identity before the write; a mismatch is 409 plugin_instance_mismatch with details.currentInstanceId / currentPluginType and nothing is written.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
expected_plugin_instance_id
string
optional
max length 128
instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.
expected_plugin_type
string
optional
max length 128
type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.
preset
string
required
min length 1; max length 200
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Select a factory program on one lane plugin slot. Optional precondition: expected_plugin_instance_id / expected_plugin_type (from listLanePlugins) are compared with the slot's live identity before the write; a mismatch is 409 plugin_instance_mismatch with details.currentInstanceId / currentPluginType and nothing is written.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
expected_plugin_instance_id
string
optional
max length 128
instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.
expected_plugin_type
string
optional
max length 128
type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.
program
integer
required
min 0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
The slot's opaque state (live chunk, else the saved row; native effects as a JSON parameter map) with a state_signature, host parameters, bypass, preset and a state hash. Send it back to restoreLanePluginState to put the plug-in back exactly: the undo of an applied preset (no unload / reload). state is null with state_omitted=too_large above 4 MiB. expected_plugin_instance_id / expected_plugin_type pin the slot (409 plugin_instance_mismatch). The state is large (up to 4 MiB base64): read it only when you need it.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
expected_plugin_instance_id
query
string
optional
max length 128
instance_id from listLanePlugins; 409 plugin_instance_mismatch if the slot holds another.
expected_plugin_type
query
string
optional
max length 128
type_id from listLanePlugins; 409 plugin_instance_mismatch if the slot holds another.
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Put a getLanePluginSnapshot state back into the SAME slot without unloading it (the undo of an applied preset). expected_plugin_instance_id is required: if the slot now holds another instance, 409 plugin_instance_mismatch and nothing is written. A hosted plug-in's state is accepted only with the state_signature its snapshot (or a delete) returned, for the same plug-in type (400 restore_state_invalid otherwise); a native effect's state is checked structurally and applied as native parameters (its EQ curve is not restored). params (host parameter values) are replayed after the chunk; bypassed re-applies the bypass. state_hash_after is Mozart's hash of the state after the apply, to verify the restore landed (absent on engines that do not report it). Optional precondition: expected_plugin_instance_id / expected_plugin_type (from listLanePlugins) are compared with the slot's live identity before the write; a mismatch is 409 plugin_instance_mismatch with details.currentInstanceId / currentPluginType and nothing is written.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
bypassed
boolean
optional
expected_plugin_instance_id
string
required
max length 128
instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.
expected_plugin_type
string
optional
max length 128
type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.
params
object[]
optional
max items 4096
snapshot.params (hosted plug-ins).
params[].index
integer
required
min 0
params[].value_norm
number
required
min 0; max 1
state
string
required
min length 1
snapshot.state (base64, at most 4 MiB).
state_signature
string
optional
max length 128
snapshot.state_signature.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Ready-to-send addBusPlugin body that undoes the delete (null when the plug-in is not a catalog hosted effect).
bypassed
boolean
required
instanceId
string | null
optional
name
string | null
optional
parameters
object
optional
Host parameters (index -> normalized value) at delete time, for reference (the state chunk carries them).
position
integer | null
optional
state
string | null
optional
The plug-in's saved chunk (base64), read from the running plug-in just before the delete; null when it had none or it exceeds 4 MiB (stateOmitted).
stateEncoding
string | null
optional
one of base64, None
stateOmitted
string
optional
one of too_large
stateSignature
string
optional
max length 128
Send back as addBusPlugin state_signature with this exact state.
typeId
string | null
optional
LanePluginSnapshotschema
Field
Type
Required
Constraints
Description
bypassed
boolean
required
instance_id
string
required
name
string | null
optional
native
boolean
required
params
object[]
optional
params[].index
integer
required
min 0
params[].value_norm
number
required
min 0; max 1
params_source
string
optional
one of live, saved
plugin_index
integer
optional
preset
string | null
optional
size_bytes
integer
optional
state
string | null
required
Opaque base64 state; null when none or larger than 4 MiB.
state_encoding
string | null
optional
one of base64, None
state_format
string | null
optional
one of plugin_chunk, native_json, None
state_hash
string
optional
sha256 of the state bytes.
state_omitted
string
optional
one of too_large
state_signature
string
optional
Send back with the state to restoreLanePluginState (hosted plug-ins).
state_source
string | null
optional
one of live, saved, None
type
string | null
optional
PluginEditorInputResultschema
Field
Type
Required
Constraints
Description
busId
string
optional
'master' (master-bus editor routes).
code
string | null
optional
Why ok is false: input_unconfirmed (dispatched, but no parameter and no editor pixel changed), not_hit_testable (NOTHING was sent: the editor window is not reported under the pointer even after the engine armed it; input no longer depends on WindowServer hit testing, so this is rare -- re-open the editor with openPluginEditor and retry), no_editor_view (the point hit no view inside the editor), dispatch_failed (the host refused the event). Never retried by the server.
confirmation
string | null
optional
one of parameter_changed, frame_changed, unconfirmed, not_checked, None
delivery
string | null
optional
one of dispatched, confirmed, rejected, None
confirmed: an effect was observed (up / scroll / type). dispatched: down / move reached a hit-testable editor view; the gesture is confirmed on its up. rejected: see code.
editorTarget
object | null
optional
The window and plug-in instance the event was sent to (windowId, instanceId, hitView, firstResponder, windowKey).
engineTrackId
integer
optional
laneId
string | null
optional
The lane (lane editor routes).
message
string | null
optional
ok
boolean
required
phase
string
optional
pluginIndex
integer
required
PluginSavedStateschema
Field
Type
Required
Constraints
Description
laneId
string | null
optional
note
string
optional
plugins
object[]
required
projectId
string
required
songPresetSeedId
string | null
optional
trackId
string | null
optional
voiceSettings
object | null
optional
Automation
Automation envelopes on clips, pattern placements ('pattern:<id>'), the backing ('backing:<id>') and lanes (fader / pan): clip gain, plugin-parameter, lane volume and lane pan curves with full-precision points.
Every envelope of the project's clips, pattern placements and backing, with all points at full precision, plus lane volume / pan envelopes (clipId 'lane:<lane_id>'). Default clip-gain curves are included as persisted=false (no id). Filter by clip, lane or plugin target.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
query
string
optional
max length 96
Only this clip ('pattern:<id>' / 'backing:<id>' too).
lane_id
query
string
optional
max length 64
Only clips on this lane ('backing' = the backing lane).
target_kind
query
string
optional
one of clip_gain, plugin_parameter, lane_volume, lane_pan
plugin_instance_id
query
string
optional
max length 128
stable_param_id
query
string
optional
max length 128
persisted
query
boolean
optional
true = stored envelopes only (drops the default gain curves).
If-Match (or expectedRevision) = the revision you read; 412 revision_conflict (details.envelope = the current one) if it moved. Omitted fields keep their stored value; the target cannot change. startSec / durationSec move or resize a lane envelope's window (lane envelopes only; 422 on clip envelopes).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
envelope_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
defaultValue
number
optional
min 0; max 1
durationSec
number
optional
max 86400; > 0
Window length in seconds; points' timeSec must lie in 0..durationSec (endpoints are added when missing).
expectedRevision
integer
optional
min 0
The envelope revision you read (or send it as If-Match).
points
object (AutomationPoint)[]
optional
max items 250000
startSec
number
optional
default 0; min 0; max 86400
Timeline second the envelope starts at.
target
object (AutomationTarget)
optional
target.kind
string
required
one of clip_gain, plugin_parameter, lane_volume, lane_pan
clip_gain / plugin_parameter on clips; lane_volume (gain = 4 * value, 0.25 = unity) / lane_pan (pan = 2 * value - 1, 0.5 = center) on lanes.
If-Match (or expectedRevision) = the revision you read. A deleted clip-gain envelope falls back to the default curve; a deleted lane envelope hands the lane back to its saved fader / pan.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
envelope_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expectedRevision
integer
optional
min 0
The envelope revision you read (or send it as If-Match).
Merges the points into the envelope (stable-sorted by time). A point at the same timeSec as an existing one forms a discontinuity pair with it (the new point is the value from that time on). Without If-Match the write is pinned to the revision read in the same request, so a concurrent edit still answers 412 revision_conflict.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
envelope_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expectedRevision
integer
optional
min 0
The envelope revision you read (or send it as If-Match).
indices (positions as read) and/or a time range fromSec..toSec (inclusive). Endpoints at 0 and the clip duration are re-added at the curve's value. Without If-Match the write is pinned to the revision read in the same request, so a concurrent edit still answers 412 revision_conflict.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
envelope_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expectedRevision
integer
optional
min 0
The envelope revision you read (or send it as If-Match).
index = the point's position in the envelope's points (as read). Fields not sent keep their value; meta: null removes the metadata. Without If-Match the write is pinned to the revision read in the same request, so a concurrent edit still answers 412 revision_conflict.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
envelope_id
path
string
required
max length 128
index
path
integer
required
min 0; max 100000
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
curve
string
optional
one of linear, bezier, hold, db
expectedRevision
integer
optional
min 0
The envelope revision you read (or send it as If-Match).
target {kind:'clip_gain'} (default) or {kind:'plugin_parameter', pluginInstanceId, stableParamId, name} (the instance must be on the clip's lane). Points within the clip; endpoints at 0 and the clip duration are added when missing. 409 automation_exists when the clip already has an envelope for that target (details.envelope).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
defaultValue
number
optional
min 0; max 1
points
object (AutomationPoint)[]
optional
max items 250000
target
object (AutomationTarget)
optional
target.kind
string
required
one of clip_gain, plugin_parameter, lane_volume, lane_pan
clip_gain / plugin_parameter on clips; lane_volume (gain = 4 * value, 0.25 = unity) / lane_pan (pan = 2 * value - 1, 0.5 = center) on lanes.
target {kind:'lane_volume'} or {kind:'lane_pan'} over the timeline window [startSec, startSec + durationSec]. Inside the window the curve replaces the lane's saved fader (gain = 4 * value: 0.25 = unity, 1 = +12 dB) or pan (pan = 2 * value - 1: 0 = hard left, 0.5 = center, 1 = hard right); outside it the saved fader / pan applies, and mute / solo still win. points' timeSec is relative to startSec (0..durationSec; endpoints are added when missing); defaultValue defaults to the lane's saved fader / pan. One envelope per lane per target: 409 automation_exists (details.envelope) otherwise. Edit it with the envelope routes (PUT also accepts startSec / durationSec). Playback never moves the lane's fader or bumps mix_revision. Buses / master have no automation yet.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
defaultValue
number
optional
min 0; max 1
durationSec
number
required
max 86400; > 0
Window length in seconds; points' timeSec must lie in 0..durationSec (endpoints are added when missing).
points
object (AutomationPoint)[]
optional
max items 250000
startSec
number
optional
default 0; min 0; max 86400
Timeline second the envelope starts at.
target
object (AutomationTarget)
required
target.kind
string
required
one of clip_gain, plugin_parameter, lane_volume, lane_pan
clip_gain / plugin_parameter on clips; lane_volume (gain = 4 * value, 0.25 = unity) / lane_pan (pan = 2 * value - 1, 0.5 = center) on lanes.
true = the running engine session took the change (the next audio block hears it).
reason
string
optional
one of no_live_session, engine_rejected, engine_unreachable
Why it was not applied live. The saved change still stands; the next session load plays it.
AutomationPointschema
Field
Type
Required
Constraints
Description
curve
string
optional
one of linear, bezier, hold, db
Segment shape to the next point. hold = step. db = linear in decibels (clip gain only). Non-continuous envelopes always store hold.
meta
object
optional
Optional caller metadata (<= 1 KB per point, 256 KB per envelope), returned unchanged.
tension
number
optional
min -1; max 1
bezier only
timeSec
number
required
min 0
Seconds from the clip start, stored at full double precision. Two points with the SAME timeSec form a discontinuity pair: the first is the value approached from the left, the second the value from that time on (at most two are kept per time: the first and last in input order).
value
number
required
min 0; max 1
AutomationTargetschema
Field
Type
Required
Constraints
Description
kind
string
required
one of clip_gain, plugin_parameter, lane_volume, lane_pan
clip_gain / plugin_parameter on clips; lane_volume (gain = 4 * value, 0.25 = unity) / lane_pan (pan = 2 * value - 1, 0.5 = center) on lanes.
name
string
optional
max length 128
options
object[]
optional
paramIndex
integer
optional
pluginIndex
integer
optional
pluginInstanceId
string
optional
max length 128
stableParamId
string
optional
max length 128
stepCount
integer
optional
unit
string
optional
max length 32
Timing
Tempo map (ticks @ 96 PPQ, constant / linear-ramp segments), meter map (bars, n/d, accent groups, pickup), pattern meters, musical-time conversion and the scalar tempo.
A one-segment constant tempo map at bpm (20-400); meter and pattern meters are kept. A map with ramps or several segments is refused with 409 tempo_map_not_constant (edit it with PUT timing-map). If-Match = the timing-map revision you read (412 if it moved). mode=keep_time (default, unchanged behaviour): clips and pattern placements keep their start time. mode=stretch_audio (Logic "Adapt Project Tempo"): every audio clip is time-stretched with pitch preserved through the per-clip tempo render pipeline (always from its original audio), a backing that is not yet a clip is first converted into one full-length clip, and every clip and pattern placement start (and placement length) is scaled by old_bpm/new_bpm around project time 0, so content stays on the same bar and beat. Hidden loop repeats tile their parent's measured rendered length; automation is rescaled (clip envelopes by the clip's measured render ratio, pattern-placement and lane envelopes by old/new); when the backing audio is stretched the bar-ruler anchor (backing.firstBeatSec) follows it; timed custom lyrics (time_ms) scale by old/new. After the save the live engine session is reloaded in the background with retries (engine.reload 'pending' until it finished); if it still cannot be reloaded the job is status succeeded with engine_reload_required=true (call reloadEngineSession). stretch_audio is a job: 202 with job_id, status and a Location to poll (getTempoStretchJob). Renders are staged: the project keeps playing exactly as before until every render succeeded, then ONE transaction swaps the audio, positions and tempo together (it is never half-stretched; a failed render changes nothing). While the job is queued or running, clip, pattern-placement, tempo-map, automation and lyrics writes on the project answer 409 tempo_stretch_in_progress (details.job_id); an edit made anyway (directly on the live engine) fails the job with tempo_stretch_project_changed and is kept. undoTempoStretchJob restores the tempo, positions and original audio exactly. One stretch costs one hourly tempo request (none when it could not start). 409 tempo_stretch_in_progress while another stretch runs (one per project); 422 tempo_out_of_range when an already-stretched clip would leave 20-400 BPM.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
bpm
number
required
min 20; max 400
mode
string
optional
default "keep_time"; one of keep_time, stretch_audio
keep_time = clips keep their time; stretch_audio = clips keep their bar (a job).
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Responses
Status
Meaning
Body
Headers
200
OK
see below
ETag
202
mode=stretch_audio: the TempoStretchJob is running; poll the Location header.
A setProjectTempo mode=stretch_audio job: status queued | running | succeeded | failed | undone, per-clip render progress (clips[].render), every clip's and placement's start before/after, the timing-map revision it produced and the undo call. The job is driven server-side (it finishes, times out after 30 minutes and survives a server restart without being polled); reading it never waits on the engine. A failed job is 200 with status 'failed' and error {code, message, details?}: nothing changed (staged renders are discarded; backing_restore_failed=true if a converted backing could not be put back).
Restores what a succeeded stretch_audio job changed, exactly: the previous tempo, every clip's start/length/offset and its ORIGINAL audio file (renders never modified the originals), pattern placements, automation points (revisions move forward), the bar-ruler anchor, and the backing row when the stretch converted it; engine_reload_required as for the stretch. Status becomes 'undone'; repeating the call replays it (replay=true). Timed custom lyrics get their exact previous times back. 409 tempo_stretch_undo_conflict (details.changed) when ANYTHING undo would overwrite changed after the stretch: any clip's start, length, offset, audio or tempo render state, any placement's start/length/loop/offset/window/phase, automation, lyrics, the tempo, or a clip or placement that was added or deleted; nothing is restored in that case. Other clip settings (gain, mute, plug-ins, filters) are neither compared nor restored: such an edit made during or after the stretch never blocks undo and survives it. 409 tempo_stretch_not_undoable while it is still running or after it failed; 409 tempo_stretch_in_progress while another stretch runs on the project.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
job_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Tempo segments (ticks @ 96 PPQ, quarter-note bpm, curve constant|linear), meter map, pattern meters, units, revision and undo availability. ETag = revision; If-None-Match answers 304 for a stored map (an implicit map follows the scalar BPM, so it is always sent).
Atomically replaces tempo and/or meter (whole lists; omit one to keep it, [] resets it) and merges pattern meters, at If-Match (or expected_revision) = the revision you read: 412 timing_map_revision_conflict (details.current = the current map) if it moved. Returns the new revision (ETag), the inverse call and the engine resync status.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_revision
integer
optional
min 0
The revision you read (or send it as If-Match). Mismatch: 412 timing_map_revision_conflict.
meter
object[]
optional
max items 256
meter[].bar
integer
optional
min 1
meter[].denominator
integer
required
one of 1, 2, 4, 8, 16, 32
meter[].groups
integer[]
optional
meter[].numerator
integer
required
min 1; max 64
meter[].tick
integer
optional
min 0
patterns
object
optional
{pattern_id: {meter: [...]} | null}, merged by id.
Writes a new revision restoring the content before the last edit, at If-Match (or expected_revision). 409 timing_map_nothing_to_undo when no earlier edit is recorded.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
expected_revision
integer
optional
min 0
The revision you read (or send it as If-Match). Mismatch: 412 timing_map_revision_conflict.
Automation envelopes rescaled with the stretch: clip envelopes by the clip's measured render ratio, pattern-placement and lane envelopes by old/new BPM.
automation[].automation_id
string
optional
automation[].clip_id
string
optional
automation[].factor
number | null
optional
automation[].revision_after
integer | null
optional
automation[].revision_before
integer
optional
backing_converted
boolean
optional
The backing was turned into one full-length clip (backing/split whole) so it stretches too; undo puts the backing row back.
backing_restore
object
optional
backing_restore.code
string | null
optional
backing_restore.error
string | null
optional
backing_restore.status
integer | null
optional
backing_restore.track_ids
string[]
optional
backing_restore_failed
boolean
optional
After a failed stretch or an undo, the backing that the stretch converted into a clip could not be put back (details in backing_restore): the backing is still one full-length clip.
bpm
number
optional
= to_bpm.
clips
object[]
optional
clips[].backing
boolean
optional
clips[].duration_sec_after
number | null
optional
clips[].duration_sec_before
number | null
optional
clips[].kind
string
optional
one of audio, loop_repeat, move
clips[].length_ratio
number | null
optional
Measured new/old length (audio: from the render; loop repeats: their parent's).
clips[].render
object
optional
clips[].render.job_id
string | null
optional
clips[].render.source_bpm
number
optional
clips[].render.status
string
optional
clips[].render.target_bpm
number
optional
clips[].start_ms_after
integer | null
optional
clips[].start_ms_before
integer | null
optional
clips[].track_id
string
optional
created_at
string | null
optional
engine
object
optional
engine.at
string
optional
engine.attempts
integer
optional
engine.engine_reload_required
boolean
optional
engine.reload
string
optional
one of pending, reloaded, no_session, failed
pending = the save is done and the engine reload is running in the background (it never blocks this request); read the job again.
engine_reload
object
optional
engine_reload.method
string
optional
engine_reload.operationId
string
optional
engine_reload.path
string
optional
engine_reload_required
boolean
optional
true = the stretch (or its undo) is fully SAVED but the open live engine session could not be reloaded after its retries, so it still plays the previous arrangement. Call reloadEngineSession (POST engine:reload; the job's engine_reload block) or read the job again (each read retries in the background). false when no session is open: the next open reads the saved project.
error
object
optional
error.code
string
optional
error.details
object
optional
tempo_stretch_project_changed: {changed: [...]} names what was edited while the job ran.
error.message
string
optional
finished_at
string | null
optional
first_beat_sec_after
number | null
optional
The bar-ruler anchor (backing first downbeat, project seconds) after a stretch that stretched the backing; null when unchanged.
first_beat_sec_before
number | null
optional
from_bpm
number
required
job_id
string
required
lyrics
object
optional
lyrics.rescaled
boolean
optional
The project's timed custom lyrics (time_ms) were scaled by old/new BPM with the stretch; undo restores the exact previous times.
lyrics.timed_lines
integer
optional
mode
string
required
one of stretch_audio
placements
object[]
optional
progress
object
optional
progress.renders_succeeded
integer
optional
progress.renders_total
integer
optional
projectId
string
required
ratio
number
required
old_bpm / new_bpm: the start/length multiple.
replay
boolean
optional
retryAfterSec
integer
optional
status
string
required
one of queued, running, succeeded, failed, undone
status_url
string
optional
timing_map_revision
integer | null
optional
timing_map_revision_before
integer | null
optional
to_bpm
number
required
undo
object
optional
undo.action
string
optional
undo.available
boolean
optional
undo.method
string
optional
undo.path
string
optional
undone_at
string | null
optional
TimingMapschema
Field
Type
Required
Constraints
Description
bpm_at_start
number
optional
document
object
optional
engine
object
optional
Writes: engine resync status / confirm rule.
fingerprint
string
required
history
object[]
optional
implicit
boolean
required
true = derived from the scalar BPM.
inverse
object
optional
Writes: the call that restores the previous content.
is_constant_tempo
boolean
optional
meter
object[]
optional
ppq
integer
required
projectId
string
required
replayed
boolean
optional
revision
integer
required
min 0
0 = never edited.
tempo
object[]
optional
undo
object
optional
undo.available
boolean
optional
undo.restores_revision
integer | null
optional
Patterns
Step/piano-roll patterns, their timeline placements, splits and previews.
Audible window length (right trim). null clears the trim window: the placement plays its full extent again (Trim Undo). Omit it to keep the stored window.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Move, trim, loop, rename, mute, solo, re-phase (loopPhaseMs, 0 <= phase < loop length) or reroute a pattern clip. Omitted fields keep their stored value (busId defaults to master when omitted, as in the Studio). Trim Undo: windowMs: null clears the trim window and restores the untrimmed placement (send offsetMs: 0 too to drop a left trim, or the before-trim values you read); the engine pattern schedule is resynced. Guarded by If-Match (timeline revision, 412 timeline_revision_conflict).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
placement_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Audible window length (right trim). null clears the trim window: the placement plays its full extent again (Trim Undo). Omit it to keep the stored window.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Soft-delete a pattern clip from the timeline. The response carries `undo`: `{op: "restore", placementId, before, restoreToken, timelineRevision}`, where `before` is the canonical stored placement (every persisted field plus its clip automation) and `restoreToken` is a signed token (24 h, bound to this deletion and your account). POST `before` and `restoreToken` to `:restore` to bring back the same placement with its durable id.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
placement_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Linear gain of one timeline pattern row in the live engine (a level, not a mute; 1.0 = unity, the engine clamps to 0..4), saved on the placement and read back as PatternPlacement.gain. Placement gain applies to everything the pattern plays: its samples and the instrument lanes its notes drive (a lane whose own gain was set explicitly keeps that gain). The reply adds previousGain: the saved gain before this write (1.0 when never set) -- PUT it back to undo.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
placement_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
gain
number
required
min 0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Revive THAT soft-deleted placement with its original id and every stored field (loopPhaseMs, sourceBusOverrides, trim window, row EQ/gain, mute/solo) plus its clip automation. Body `before` and `restoreToken` = the delete response's `undo.before` and `undo.restoreToken`. Only a placement deleted through a delete, and only that deletion, can be restored: a forged, expired or other-placement token is 403 `restore_token_invalid` / `restore_token_expired`; a placement changed or deleted again since is 409 `restore_token_stale`. The stored row is authoritative: a snapshot that does not match it is 409 `placement_snapshot_mismatch` (`details.mismatchedFields`). 409 `placement_not_deleted` when the id is live; 409 `pattern_deleted` / `lane_deleted` when its pattern or lane must be restored first. If-Match = the timeline revision (412 on a stale one). The engine pattern schedule is resynced and open Studios refresh.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
placement_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
before
object (PatternPlacementSnapshot)
required
before.automation
object (PatternPlacementAutomationSnapshot)[]
required
max items 64
before.busId
string
required
before.displayOrder
integer
required
before.durationMs
integer
required
before.id
string
required
before.laneId
string | null
required
before.loopDurationMs
integer
required
before.loopPhaseMs
integer
required
before.muted
boolean
required
before.name
string | null
required
before.nativeEq
object | null
required
before.offsetMs
integer
required
before.patternId
string
required
before.projectId
string
required
before.repeatCount
integer
required
before.rowGain
object | null
required
before.soloed
boolean
required
before.sourceBusOverrides
object
required
before.startMs
integer
required
before.windowMs
integer | null
required
restoreToken
string
required
max length 1024
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Atomically split at the absolute timeline position cut_ms, exactly like the Studio: phase is preserved inside tiled patterns and clip automation is sliced. Returns left, right and before (the undo snapshot). child_id (UUID) names the right half; repeating a split with the same child_id is refused instead of duplicating. Undo: undo=true with child_id and before.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
placement_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
One paint stroke in one request: `ops` (1-256) of `{op: create, placement}`, `{op: update, placementId, placement}`, `{op: delete, placementId}` or `{op: restore, placementId, before, restoreToken}`. Atomic: every op runs in one DB transaction and a refused op (400 `invalid_op` / `invalid_argument` with `details.opIndex`, 404 `not_found` for an id outside this project, the restore codes) writes nothing. Placement fields follow updatePatternPlacement (`windowMs: null` clears the trim; on update an omitted `busId` keeps the stored route). If-Match = the timeline revision, compared inside the transaction (412 `timeline_revision_conflict`); Idempotency-Key replays. The engine pattern schedule is resynced ONCE after the commit and open Studios refresh once. The response carries the created / updated placement cards and `undo.inverse_ops` (reverse order): a create's inverse is a delete, an update's an update to the stored before-values, a delete's a restore with its signed `restoreToken` (24 h, bound to this deletion and your account). POST `{ops: undo.inverse_ops}` back here to undo.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
ops
object (PatternPlacementBatchOp)[]
required
min items 1; max items 256
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Error codes specific to this operation: invalid_argument, invalid_op, not_found, timeline_revision_conflict. Every operation can also answer the common codes.
Starts 1-8 pattern previews you armed (previewPattern arm_only=true with the same client_id) at ONE engine time, so the clips of a Session scene sound in time with each other. Each preview is a layer in its slot (slot_id, default the armed_signature); layers loop repeat_count times (default 64) and keep playing until stopped. quantize: none (default: start after lead_sec) | beat | bar -- the next beat / bar line of the grid of your layers already playing (else of your single preview; with nothing playing the launch starts at once); beats_per_bar (default 4) sets the bar. A slot already playing one of your layers is replaced exactly at the launch time; stop_others=true also ends your layers in the other slots there (a full scene change). Your single preview stops at the launch time too. Reply: engine_time_sec (the shared start, engine audio clock -- the same clock as previewPattern), quantum_sec, grid_anchor_sec, previews [{slot_id, layer_id, armed_signature, engine_time_sec, cycle_duration_sec, repeat_count, replaced_slot}], replaced_slots and layers (all of your layers now playing). Stop one slot with stopPatternPreview slot_id, all with stopAllPatternPreviews. The data-channel equivalent is {type: "pattern_preview_launch", project_id, key, seq, previews, quantize?, ...} -> pattern_preview_ack. At most 8 previews sound at once on a project's engine (409 too_many_previews); 409 not_armed lists missing_signatures (re-arm them). Starting a single preview (previewPattern without arm_only), or the transport, stops every layer. See /docs/realtime.html#pattern-launch. Needs Pro.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Request body application/json
Field
Type
Required
Constraints
Description
beats_per_bar
integer
optional
default 4; min 1; max 32
client_id
string
required
min length 1; max length 128
The client_id of YOUR monitoring peer: the one whose arms the launch starts. Required.
lead_sec
number
optional
default 0.05; min 0; max 2
preview_request_id
integer
optional
min 1; max 9007199254740991
Your own increasing number for this press. A stop with preview_request_id N also refuses any start with an id <= N that arrives late (409 stale_preview_request).
previews
object[]
required
min items 1; max items 8
previews[].armed_signature
string
required
pattern ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$
Names a prepared (armed) preview: 1-128 letters, digits, - or _, starting with a letter or digit.
previews[].gain
number
optional
default 0.92; min 0; max 2
previews[].repeat_count
integer
optional
default 64; min 1; max 64
previews[].slot_id
string
optional
pattern ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$
The Session clip slot (default: the armed_signature). A slot already playing one of your layers is replaced at the launch time.
quantize
string
optional
default "none"; one of none, beat, bar
stop_others
boolean
optional
default false
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Stops the pattern preview playing for you. With client_id it is your monitoring peer's preview (the one started by pattern_preview_start or previewPattern with that client_id); without it, the previews started without one. slot_id stops only that scene-launch slot (launchPatternPreviews), the other slots keep playing; without slot_id your single preview AND all of your scene layers stop (response.stopped_slots). preview_request_id N also refuses any start with an id <= N that is still on its way (409 stale_preview_request); the data-channel equivalent is pattern_preview_stop (slot_id too).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Request body application/json
Field
Type
Required
Constraints
Description
client_id
string
optional
min length 1; max length 128
The client_id of YOUR monitoring peer (monitor/offer). Arms, starts and stops are then kept per peer: a pattern_preview_start / pattern_preview_stop on that peer's mozart-control channel finds this arm, and nobody else's arm or stop can replace or refuse yours (the Studio's never could). Required with arm_only.
placement_id
string
optional
max length 64
preview_id
string
optional
max length 64
preview_request_id
integer
optional
min 1; max 9007199254740991
Your own increasing number for this press. A stop with preview_request_id N also refuses any start with an id <= N that arrives late (409 stale_preview_request).
slot_id
string
optional
pattern ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$
Stop only this scene-launch slot.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Panic stop of your pattern previews (scheduled and sounding), scene layers included. With client_id it covers your monitoring peer's previews and refuses every start it already sent; without it, the previews started without a client_id. Other peers' scene layers keep playing.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Request body application/json
Field
Type
Required
Constraints
Description
client_id
string
optional
min length 1; max length 128
The client_id of YOUR monitoring peer (monitor/offer). Arms, starts and stops are then kept per peer: a pattern_preview_start / pattern_preview_stop on that peer's mozart-control channel finds this arm, and nobody else's arm or stop can replace or refuse yours (the Studio's never could). Required with arm_only.
preview_request_id
integer
optional
min 1; max 9007199254740991
Your own increasing number for this press. A stop with preview_request_id N also refuses any start with an id <= N that arrives late (409 stale_preview_request).
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Edit a pattern's name, length, swing, channels, notes, steps, samples, instruments or MIDI CC automation. Omitted scalar fields keep their stored value. Length: bars and lengthTicks stay consistent -- bars alone sets lengthTicks = ppq * 4 * bars; lengthTicks alone is stored and sets bars = ceil(lengthTicks / (ppq * 4)); both together must agree (bars = ceil(lengthTicks / (ppq * 4)), 400 invalid_argument otherwise) and are then stored as given. Channels (sources[]) keep color / icon / cutGroup / midiChannel / outputLaneId (validated: 400 on a bad value).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
pattern_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
pattern
object
required
pattern.bars
integer
optional
min 1; max 64
Without lengthTicks, a bars change sets lengthTicks = ppq * 4 * bars. With lengthTicks it must equal ceil(lengthTicks / (ppq * 4)) (400 otherwise).
pattern.events
object (PatternNote)[]
optional
Notes / step hits (a MIDI note per event). muted / slide must be booleans when present (400 otherwise).
pattern.lengthTicks
integer
optional
min 1
Stored as given (<= ppq * 4 * 64). Without bars, bars = ceil(lengthTicks / (ppq * 4)); with bars, the two must agree (400 otherwise).
pattern.name
string
optional
max length 255
pattern.ppq
integer
optional
min 24; max 960
pattern.sources
object (PatternChannel)[]
optional
pattern.swing
number
optional
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Insert `channel` (a sources[] entry: kind sample|plugin|instrument, name, audioFileId / laneId, color, icon, cutGroup, midiChannel, ...) at `position` (0-based; omitted = append). Channel `order` is renumbered to the rack order. `events` (notes) and `ccEvents` (MIDI CC automation), both optional, are added with sourceId = the channel id (used to undo a channel delete). `id` is minted when omitted; an id already in the rack is 409 `id_exists`. Validation is updatePattern's (400). If-Match = the timeline revision. `undo` = {method: DELETE, path, body: {}} (plus the older op field): send it as is. A deletePatternChannel undo object may be posted here whole: its op / method / path / body / timelineRevision keys are ignored.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
pattern_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
body
object
optional
Ignored (undo descriptor echo).
ccEvents
object (PatternCcEvent)[]
optional
max items 4096
MIDI CC automation of the channel (a channel delete's undo.ccEvents), added with sourceId = the channel id.
channel
object (PatternChannel)
required
channel.audioFileId
string
optional
max length 64
Pattern sample (sample channels).
channel.busId
string
optional
max length 64
channel.color
string | null
optional
max length 64
Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.
channel.cutGroup
integer | null
optional
min 0; max 64
Cut (choke) group. A new note in a group stops every other sounding note of that group (sample channels, in the engine's pattern sampler). 0 or null = no group.
channel.icon
string | null
optional
pattern ^[a-z0-9][a-z0-9_-]{0,31}$
Short icon name chosen by the client. null clears it.
channel.id
string
optional
max length 128
Channel id (events[].sourceId).
channel.kind
string
optional
one of sample, plugin, instrument
channel.laneId
string
optional
max length 64
Instrument lane (plugin channels).
channel.midiChannel
integer | null
optional
min 1; max 16
MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.
channel.muted
boolean
optional
channel.name
string
optional
max length 255
channel.order
integer
optional
min 0
channel.outputLaneId
string | null
optional
max length 64
Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.
channel.solo
boolean
optional
channel.volume
number
optional
min 0; max 2
events
object (PatternNote)[]
optional
max items 4096
method
string
optional
Ignored (undo descriptor echo).
op
string
optional
Ignored: an undo object's `op`, echoed back.
path
string
optional
Ignored (undo descriptor echo).
position
integer
optional
min 0
timelineRevision
string | null
optional
Ignored; send it as If-Match instead.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Merge `channel` fields into one rack channel (color, icon, cutGroup, midiChannel, outputLaneId, name, volume, busId, muted, solo, ...; `null` removes a field) and/or move it to `position` (0-based). id and kind cannot change. `undo` = {method: PATCH, path, body: {channel: before-values, position}} (plus the older op / channel / position fields): send it as is; posting the whole undo object back also works (op / method / path / body / timelineRevision are ignored). If-Match = the timeline revision.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
pattern_id
path
string
required
max length 128
channel_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
body
object
optional
Ignored (undo descriptor echo).
channel
object (PatternChannel)
optional
channel.audioFileId
string
optional
max length 64
Pattern sample (sample channels).
channel.busId
string
optional
max length 64
channel.color
string | null
optional
max length 64
Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.
channel.cutGroup
integer | null
optional
min 0; max 64
Cut (choke) group. A new note in a group stops every other sounding note of that group (sample channels, in the engine's pattern sampler). 0 or null = no group.
channel.icon
string | null
optional
pattern ^[a-z0-9][a-z0-9_-]{0,31}$
Short icon name chosen by the client. null clears it.
channel.id
string
optional
max length 128
Channel id (events[].sourceId).
channel.kind
string
optional
one of sample, plugin, instrument
channel.laneId
string
optional
max length 64
Instrument lane (plugin channels).
channel.midiChannel
integer | null
optional
min 1; max 16
MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.
channel.muted
boolean
optional
channel.name
string
optional
max length 255
channel.order
integer
optional
min 0
channel.outputLaneId
string | null
optional
max length 64
Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.
channel.solo
boolean
optional
channel.volume
number
optional
min 0; max 2
method
string
optional
Ignored (undo descriptor echo).
op
string
optional
Ignored: an undo object's `op`, echoed back.
path
string
optional
Ignored (undo descriptor echo).
position
integer
optional
min 0
timelineRevision
string | null
optional
Ignored; send it as If-Match instead.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Remove one channel with its notes / step hits and its MIDI CC automation. `undo` = {method: POST, path (addPatternChannel), body: {channel, position, events, ccEvents}}: send it as is to bring the channel back exactly (notes and CC automation included). The older shape (the same channel / position / events / ccEvents at the top level, with op) is still there and may be posted whole to addPatternChannel. If-Match = the timeline revision.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
pattern_id
path
string
required
max length 128
channel_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
FL's "Assign to new instrument track" in one action: creates a new Pattern lane (its own mixer track: insert chain, fader, pan, mute/solo, bus) named after the channel and routes the SAMPLE channel through it (`outputLaneId`), in one transaction. The engine pattern schedule is resynced. An instrument (plugin) channel already plays through its own instrument lane: the answer is 200 with `alreadyAssigned: true` and that `laneId`, and nothing changes. `undo.steps` = the two requests that undo it, in order: PATCH the channel's outputLaneId back, then DELETE the new lane. If-Match = the timeline revision.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
pattern_id
path
string
required
max length 128
channel_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
name
string
optional
max length 255
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Responses
Status
Meaning
Body
Headers
200
an instrument channel already on its own lane (alreadyAssigned: true)
Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.
channel.cutGroup
integer | null
optional
min 0; max 64
Cut (choke) group. A new note in a group stops every other sounding note of that group (sample channels, in the engine's pattern sampler). 0 or null = no group.
channel.icon
string | null
optional
pattern ^[a-z0-9][a-z0-9_-]{0,31}$
Short icon name chosen by the client. null clears it.
channel.id
string
optional
max length 128
Channel id (events[].sourceId).
channel.kind
string
optional
one of sample, plugin, instrument
channel.laneId
string
optional
max length 64
Instrument lane (plugin channels).
channel.midiChannel
integer | null
optional
min 1; max 16
MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.
channel.muted
boolean
optional
channel.name
string
optional
max length 255
channel.order
integer
optional
min 0
channel.outputLaneId
string | null
optional
max length 64
Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.
channel.solo
boolean
optional
channel.volume
number
optional
min 0; max 2
lane
object
optional
laneId
string
required
ok
boolean
required
patternId
string
required
timelineRevision
string | null
required
undo
object (PatternChannelUndo)
optional
undo.body
object
optional
Body of the undo request, to send exactly as is.
undo.method
string
optional
one of POST, PATCH, DELETE
HTTP method of the undo request.
undo.op
string
optional
one of add, update, delete, unassign
What the undo does (kept for older clients).
undo.path
string
optional
Path of the undo request, relative to /api/v1.
undo.steps
object[]
optional
assignToNewInstrumentTrack only: the undo is TWO requests [{method, path, body}], run in order.
undo.timelineRevision
string | null
optional
The revision after this change: send it as If-Match on the undo request.
Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.
channel.cutGroup
integer | null
optional
min 0; max 64
Cut (choke) group. A new note in a group stops every other sounding note of that group (sample channels, in the engine's pattern sampler). 0 or null = no group.
channel.icon
string | null
optional
pattern ^[a-z0-9][a-z0-9_-]{0,31}$
Short icon name chosen by the client. null clears it.
channel.id
string
optional
max length 128
Channel id (events[].sourceId).
channel.kind
string
optional
one of sample, plugin, instrument
channel.laneId
string
optional
max length 64
Instrument lane (plugin channels).
channel.midiChannel
integer | null
optional
min 1; max 16
MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.
channel.muted
boolean
optional
channel.name
string
optional
max length 255
channel.order
integer
optional
min 0
channel.outputLaneId
string | null
optional
max length 64
Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.
channel.solo
boolean
optional
channel.volume
number
optional
min 0; max 2
lane
object
optional
laneId
string
required
ok
boolean
required
patternId
string
required
timelineRevision
string | null
required
undo
object (PatternChannelUndo)
optional
undo.body
object
optional
Body of the undo request, to send exactly as is.
undo.method
string
optional
one of POST, PATCH, DELETE
HTTP method of the undo request.
undo.op
string
optional
one of add, update, delete, unassign
What the undo does (kept for older clients).
undo.path
string
optional
Path of the undo request, relative to /api/v1.
undo.steps
object[]
optional
assignToNewInstrumentTrack only: the undo is TWO requests [{method, path, body}], run in order.
undo.timelineRevision
string | null
optional
The revision after this change: send it as If-Match on the undo request.
Audition a pattern (or unsaved note/step edits) in the live engine. repeat_count 1-64 loops it; gain, phase_offset_sec, lead_sec and swing shape the audition; placement_id previews through that placement's routing. Not idempotent (each call plays). Pre-arm (Session clip launch): arm_only=true with client_id (your monitoring peer) compiles the pattern and resolves its samples WITHOUT playing; the reply carries armedSignature (yours, else a generated one) and the engine's response {ok, armed: true, armed_signature, prepare_ms, session_epoch}. Then start it with ONE message on that peer's mozart-control channel: {type: "pattern_preview_start", project_id, key, seq, armed_signature, preview_request_id, repeat_count?, gain?, phase_offset_sec?, lead_sec?} -> {type: "pattern_preview_ack", ok, key, seq, armed_signature, preview_request_id, engine_time_sec, ...} (code not_armed: re-arm, or call this op without arm_only; stale_preview_request: that id was already stopped). Stop it with {type: "pattern_preview_stop", project_id, key, seq, preview_request_id}. Over REST, armed_signature (with the same client_id) without arm_only starts the armed preview, and compiles pattern instead when the arm is gone. An arm is kept per peer, one at a time (a new arm replaces it), for up to 10 minutes and until the engine session reloads; re-arm after each edit. A peer keeps up to 16 arms at once (one per signature; the oldest is dropped). This single preview replaces everything sounding when it starts (scene layers included); to play several together at one time, arm each and use launchPatternPreviews (see /docs/realtime.html#pattern-launch). Needs Pro, like every pattern preview.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Request body application/json
Field
Type
Required
Constraints
Description
arm_only
boolean
optional
default false
Prepare without playing (needs client_id).
armed_signature
string
optional
pattern ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$
Names a prepared (armed) preview: 1-128 letters, digits, - or _, starting with a letter or digit.
bars
integer
optional
min 1; max 64
bpm
number
optional
min 20; max 400
client_id
string
optional
min length 1; max length 128
The client_id of YOUR monitoring peer (monitor/offer). Arms, starts and stops are then kept per peer: a pattern_preview_start / pattern_preview_stop on that peer's mozart-control channel finds this arm, and nobody else's arm or stop can replace or refuse yours (the Studio's never could). Required with arm_only.
gain
number
optional
min 0
lead_sec
number
optional
min 0
length_ticks
integer
optional
min 1
pattern
object
required
phase_offset_sec
number
optional
min 0
placement_id
string
optional
max length 64
ppq
integer
optional
min 24; max 960
preview_request_id
integer
optional
min 1; max 9007199254740991
Your own increasing number for this press. A stop with preview_request_id N also refuses any start with an id <= N that arrives late (409 stale_preview_request).
repeat_count
integer
optional
min 1; max 64
swing
number
optional
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.
cutGroup
integer | null
optional
min 0; max 64
Cut (choke) group. A new note in a group stops every other sounding note of that group (sample channels, in the engine's pattern sampler). 0 or null = no group.
icon
string | null
optional
pattern ^[a-z0-9][a-z0-9_-]{0,31}$
Short icon name chosen by the client. null clears it.
id
string
optional
max length 128
Channel id (events[].sourceId).
kind
string
optional
one of sample, plugin, instrument
laneId
string
optional
max length 64
Instrument lane (plugin channels).
midiChannel
integer | null
optional
min 1; max 16
MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.
muted
boolean
optional
name
string
optional
max length 255
order
integer
optional
min 0
outputLaneId
string | null
optional
max length 64
Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.
solo
boolean
optional
volume
number
optional
min 0; max 2
PatternChannelResultschema
Field
Type
Required
Constraints
Description
channel
object (PatternChannel)
required
channel.audioFileId
string
optional
max length 64
Pattern sample (sample channels).
channel.busId
string
optional
max length 64
channel.color
string | null
optional
max length 64
Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.
channel.cutGroup
integer | null
optional
min 0; max 64
Cut (choke) group. A new note in a group stops every other sounding note of that group (sample channels, in the engine's pattern sampler). 0 or null = no group.
channel.icon
string | null
optional
pattern ^[a-z0-9][a-z0-9_-]{0,31}$
Short icon name chosen by the client. null clears it.
channel.id
string
optional
max length 128
Channel id (events[].sourceId).
channel.kind
string
optional
one of sample, plugin, instrument
channel.laneId
string
optional
max length 64
Instrument lane (plugin channels).
channel.midiChannel
integer | null
optional
min 1; max 16
MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.
channel.muted
boolean
optional
channel.name
string
optional
max length 255
channel.order
integer
optional
min 0
channel.outputLaneId
string | null
optional
max length 64
Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.
channel.solo
boolean
optional
channel.volume
number
optional
min 0; max 2
ok
boolean
required
pattern
object (Pattern)
optional
pattern.bars
integer
optional
pattern.id
string
required
pattern.lengthTicks
integer
optional
Pattern length in ticks. Kept consistent with bars on every write.
pattern.name
string | null
optional
pattern.pattern
object
optional
pattern.pattern.events
object[]
optional
pattern.pattern.sources
object (PatternChannel)[]
optional
pattern.ppq
integer
optional
pattern.swing
number
optional
patternId
string
required
position
integer
required
timelineRevision
string | null
required
undo
object (PatternChannelUndo)
optional
undo.body
object
optional
Body of the undo request, to send exactly as is.
undo.method
string
optional
one of POST, PATCH, DELETE
HTTP method of the undo request.
undo.op
string
optional
one of add, update, delete, unassign
What the undo does (kept for older clients).
undo.path
string
optional
Path of the undo request, relative to /api/v1.
undo.steps
object[]
optional
assignToNewInstrumentTrack only: the undo is TWO requests [{method, path, body}], run in order.
undo.timelineRevision
string | null
optional
The revision after this change: send it as If-Match on the undo request.
assignToNewInstrumentTrack only: the undo is TWO requests [{method, path, body}], run in order.
timelineRevision
string | null
optional
The revision after this change: send it as If-Match on the undo request.
PatternNoteschema
Field
Type
Required
Constraints
Description
durationTick
number
optional
> 0
id
string
optional
muted
boolean
optional
default false
FL-style note mute: stored with the note and skipped by every player (song, pattern preview, listen/render) -- a muted note never sounds.
note
integer
optional
min 0; max 127
playbackRate
number
optional
min 0.03125; max 32
type sample only: explicit sampler rate (wins over note).
rootPitch
number
optional
min 0; max 127
type sample only: the pitch `note` is measured against.
slide
boolean
optional
default false
FL-style slide (portamento glide into the next note's pitch). STORED ONLY for now: persisted and returned with the note, but playback plays a slide note as an ordinary note (Mozart has no pitch-glide MIDI path yet).
sourceId
string
optional
The channel (sources[].id) it plays.
startTick
number
optional
min 0
type
string
optional
default "midi"; one of midi, note, sample
`sample` = a hit on a SAMPLE channel (sources[].kind sample): it plays that channel's sample (audioFileId). `note` (optional) repitches it by 2^((note - rootPitch)/12) (rootPitch from the event, else the channel, else 60) and `playbackRate` sets the rate directly; with neither it plays at its natural pitch. velocity scales it; durationTick gates it in the channel's gate / hold sampler modes (one-shot plays the whole sample). Only `sample` events sound on a sample channel. `midi` / `note` (synonyms) = a note for an instrument (plugin / instrument) channel.
velocity
number
optional
min 0; max 1
PatternPlacementschema
Field
Type
Required
Constraints
Description
busId
string | null
optional
durationMs
integer
optional
gain
number
optional
min 0; max 4
Saved row gain (setPatternPlacementGain), linear; 1.0 = unity (also when never set). Applies to the pattern's samples and to the instrument lanes its notes drive, except lanes whose own gain was set explicitly.
id
string
required
laneId
string | null
optional
loopDurationMs
integer | null
optional
loopPhaseMs
integer
optional
muted
boolean
optional
name
string | null
optional
offsetMs
integer
optional
patternId
string
required
repeatCount
integer | null
optional
soloed
boolean
optional
startMs
integer
optional
windowMs
integer | null
optional
PatternPlacementAutomationSnapshotschema
Field
Type
Required
Constraints
Description
defaultValue
number
required
id
string
required
points
any[]
required
revision
integer
required
target
object
required
targetKey
string
required
targetKind
string
required
valueType
string
required
PatternPlacementBatchOpschema
Field
Type
Required
Constraints
Description
before
object (PatternPlacementSnapshot)
optional
restore: the delete's inverse op before.
before.automation
object (PatternPlacementAutomationSnapshot)[]
required
max items 64
before.busId
string
required
before.displayOrder
integer
required
before.durationMs
integer
required
before.id
string
required
before.laneId
string | null
required
before.loopDurationMs
integer
required
before.loopPhaseMs
integer
required
before.muted
boolean
required
before.name
string | null
required
before.nativeEq
object | null
required
before.offsetMs
integer
required
before.patternId
string
required
before.projectId
string
required
before.repeatCount
integer
required
before.rowGain
object | null
required
before.soloed
boolean
required
before.sourceBusOverrides
object
required
before.startMs
integer
required
before.windowMs
integer | null
required
op
string
required
one of create, update, delete, restore
placement
object
optional
placement.busId
string
optional
max length 64
Omitted on update = unchanged.
placement.displayOrder
integer
optional
min 0; max 1000000
Timeline row order (stored; omitted on update = unchanged).
Saved row gain (setPatternPlacementGain), linear; 1.0 = unity (also when never set). Applies to the pattern's samples and to the instrument lanes its notes drive, except lanes whose own gain was set explicitly.
Channel Rack / pattern one-shot samples of a project.
GET/api/v1/projects/{project_id}/pattern-samples
List pattern samples
Operation
listPatternSamples
Scope
daw:read
Project role
viewer
Rate class
interactive
Behaviour
paginated
The project's pattern-sample library (direct uploads and registered aliases), oldest first, as the Studio's Add Channel dock offers it: samples the user undid (padConfig.dismissedSampleIds) and aliases of imported audio whose import was undone or whose clip / lane was deleted are left out (include_hidden=true lists them too). Requires Pro.
File -> Channel Rack: store one audio file in the project's pattern-sample library WITHOUT creating a Playlist lane, take or clip, exactly like a file dropped on a rack channel in the Studio, and return the canonical audioFileId (what pattern sources and placeOnTimeline reference). base64 file bytes (max 25 MB decoded), optional filename and name (<= 80 chars). The app's upload scanner validates the bytes and stores them as canonical WAV; the app-wide upload admission (concurrency + byte/storage quotas) applies, so an Idempotency-Key header is required. X-Freestyle-Upload-Intent: media (or omit it); metadata-only is refused. The same audio (SHA-256 of the bytes) already stored in this project, or in another project you own, answers 200 with existing=true and stores nothing. Requires Pro and editor access.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
base64
string
required
min length 4
File bytes, base64 (a data: URL is accepted).
filename
string
optional
max length 160
name
string
optional
max length 80
Responses
Status
Meaning
Body
Headers
200
The same audio is already stored (existing=true); nothing was uploaded.
Low-res peaks for a sample channel's waveform preview. Served from the peaks computed when the sample was ingested (before its storage encryption); a registered alias uses its source asset's peaks. An older sample with no stored peaks is decoded once by the project's live engine (which holds the media decrypt grant; the backend never decrypts the stored source), and the peaks are saved on the sample, so that first read can take a few seconds (it opens the project's engine session if none is open) and answers source=computed; later reads are source=stored. 404 `waveform_unavailable` (details.reason) only when the engine cannot decode it either. buckets 16-2048 (default 256). ETag changes when the stored peaks change.
Browser sound -> Playlist: put a stored pattern sample (audioFileId from registerPatternSample / uploadPatternSample / listPatternSamples) on the timeline as an audio clip at startMs, exactly like the Studio's rack-to-Playlist drag: no bytes move (the clip references the SAME stored audio) and the clip is loaded into the live session (Mozart attach-db-clip). Body: startMs (integer ms, default 0), laneId (an audio lane of this project; omit it for a new audio lane; another project's lane is 404, a pattern / instrument / backing lane is 400 lane_not_audio), name, rackChannelId (the rack channel the sound came from). A sample not stored in this project is 404; the project track limit is 409 project_track_limit. The clip is durable even when the engine attach fails: engine_reload_required=true then means a session reload plays it. Guard: If-Match = timeline revision (412 timeline_revision_conflict). Returns the created clip and lane cards, the new timeline revision (ETag and timelineRevision) and undo {op: remove, clipId, laneId, createdLane}: remove the clip with applyClipBatch (op remove) and, when createdLane is true, deleteLane.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
audio_file_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Error codes specific to this operation: lane_not_audio, project_track_limit, timeline_revision_conflict. Every operation can also answer the common codes.
Register existing project audio as a Channel Rack one-shot, exactly like the Studio's file drop onto the rack: no bytes are re-uploaded. Give ONE of track_id (a clip id), audio_file_id (an audio file from your library or this project), preset_pack_item_id (a preset sound) or sound_pack_item_id / catalog_sound_id (a Sound Library catalog row: every catalog row with canAdd=true carries a `register` handle naming exactly which field to send; any row the caller can see registers), plus an optional name (<= 80 chars). No notes or placements are added. 404 catalog_sound_not_found for a catalog id the caller cannot see. Returns the canonical audioFileId pattern sources reference: 201 for a new sample, 200 with existing=true when the same audio is already registered. Requires Pro and editor access.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
audio_file_id
string
optional
max length 64
catalog_sound_id
string
optional
max length 64
Alias of sound_pack_item_id.
name
string
optional
max length 80
preset_pack_item_id
string
optional
max length 64
sound_pack_item_id
string
optional
max length 64
track_id
string
optional
max length 64
Responses
Status
Meaning
Body
Headers
200
The same audio was already registered (existing=true).
Seconds into the source file where the audible region begins (left trim).
clip.audioSourceId
string | null
optional
Opaque id of the audio this clip plays, null when the clip has no stored audio. Clips that play the same audio (the pieces of a split, a duplicate, a paste) share it, and it changes when the clip's audio is replaced (sample edit, in-place region effect, voice-model or tempo render), so it is the key for a client peak cache: a clip whose audioSourceId is already cached needs no getClipWaveform read. Compare it for equality only; it is not the waveform's revision. Absent on a backend that predates it.
clip.clipMuted
boolean
optional
clip.durationSec
number | null
optional
Audible length in seconds (after trimming).
clip.editUrl
string
optional
clip.fadeIn
object | null
optional
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeIn.curve
string
optional
one of linear, equal_power, exp, log, s_curve
clip.fadeIn.durationSec
number
optional
min 0
clip.fadeOut
object | null
optional
Saved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeOut.curve
string
optional
one of linear, equal_power, exp, log, s_curve
clip.fadeOut.durationSec
number
optional
min 0
clip.id
string
required
clip.isBacking
boolean
optional
clip.isImported
boolean
optional
clip.laneId
string | null
optional
clip.muted
boolean
optional
clip.name
string | null
optional
clip.parked
boolean
optional
Present (true) only on a PARKED take: the earlier take of a live / Endless / group-session lane that a re-record parked instead of deleting. Always muted; restored from the Studio timeline.
clip.sourceDurationSec
number | null
optional
Full length in seconds of the clip's source audio file (untrimmed), null when not known. A slip or a right-edge un-trim stays within it: audioOffsetSec + durationSec <= sourceDurationSec. Read-only (derived from the stored audio file); clips:batch never takes it.
clip.startMs
integer
required
Where the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).
clip.takeGroupId
string
optional
Present only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).
clip.takeIndex
integer
optional
min 0
Order inside the stack, 0 = oldest pass. Present with takeGroupId.
clip.updatedAt
string | null
optional
format date-time
clip.volume
number
optional
clipId
string
required
createdLane
boolean
required
durationSec
number
optional
engine
object
optional
engine.clip_id
number | null
optional
engine.track_id
number | null
optional
engineError
object
optional
engine_attached
boolean
required
engine_reload_required
boolean
required
lane
object (Lane)
required
lane.busId
string
optional
lane.color
string
optional
Lane colour (#rrggbb): the saved colour (updateLane color), else the order-based default the Studio paints.
lane.colorOrigin
string | null
optional
user = set via updateLane / the Studio; automatic = assigned default; null = legacy lane with no recorded origin.
lane.id
string
required
lane.kind
string | null
optional
lane.muted
boolean
required
lane.name
string | null
optional
lane.order
integer
optional
lane.pan
number
required
min -1; max 1
lane.pluginChain
object[]
optional
lane.polarityInverted
boolean
optional
lane.sends
object (LaneSend)[]
optional
Saved parallel aux sends (setLaneSend / deleteLaneSend).
Normalized peak amplitude per bucket (max of the stored peaks it covers).
source
string
required
one of stored, computed
stored: peaks saved at ingest (or computed by an earlier read). computed: this read had the live engine decode the sample and saved the peaks, so the next read is `stored`.
Exports
Full-mix renders through Mozart: start, poll and list with signed download links.
Rendered exports (newest first) and saves with a finished render, each with a one-hour signed downloadUrl. hasMore means older exports exist beyond limit.
Render the full project mix (backing + every lane through its plugins) in the background, like the Studio's Export. Returns a job id for getExportStatus. Send an Idempotency-Key (or idempotency_key): a retry with the same key never starts a second export. Optional options (all default to today's output: 32-bit float WAV at the engine rate, whole song, 1 s tail): format wav | flac | mp3 | ogg; bit_depth (wav 16/24/32 float, flac 16/24); mp3_bitrate_kbps 96-320; ogg_quality -1..10; sample_rate 8000-192000; range "song" or {start_sec, end_sec}; tail_sec 0-10; stems true (FL's Split mixer tracks: one file per lane, the backing included, as ONE job that renders every lane once and uploads the files one after another; every other option applies to each file; muted lanes are skipped unless include_muted; buses are not split; the status lists each stem and, once complete, a signed link per stem). Unknown fields answer 400. While an export runs, a request with different options answers 409 export_in_progress carrying that job's id. Bounded by the app's export concurrency lease and the dedicated api_v1:export budget (60/hour per user by default).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
bit_depth
integer
optional
one of 16, 24, 32
wav: 16, 24 or 32 (float, default); flac: 16 or 24.
format
string
optional
default "wav"; one of wav, flac, mp3, ogg
idempotency_key
string
optional
max length 128
include_muted
boolean
optional
default false
stems only: also export lanes that are muted (skipped by default).
mp3_bitrate_kbps
integer
optional
min 96; max 320
mp3 only (CBR).
ogg_quality
integer
optional
min -1; max 10
ogg only.
range
null | string | object
optional
Omit, null or "song" for the whole song; or {start_sec, end_sec} (e.g. the loop).
sample_rate
integer
optional
min 8000; max 192000
Default: the engine rate.
stems
boolean
optional
default false
Split mixer tracks: one file per lane (the backing included) instead of one mix. The other options apply to every file; the job status lists each stem.
Stems exports only (stems: true): one entry per lane with index, number, label, laneId, state (pending | uploading | done | error), format and bytes; once the job is complete each carries fileName and a one-hour signed downloadUrl.
ExportListschema
Field
Type
Required
Constraints
Description
exports
object[]
required
hasMore
boolean
optional
projectId
string
required
projectUrl
string
optional
saves
object[]
required
Listen
Hear a project: rendered + measured excerpts and the shared listen-page preview.
Render a short excerpt offline (the mix or up to 5 named tracks), measure it (levels, clipping, timing/key fit) and describe it. Default window: the first chorus/section, 8 s. Has its own per-user listen budget, the mcp:listen bucket shared with MCP (RATE_LIMIT_MCP_LISTEN_USER_PER_HOUR, 60/hour by default; 429 rate_limited).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Request body application/json
Field
Type
Required
Constraints
Description
length_sec
number
optional
default 8; min 1; max 30.0
question
string
optional
max length 400
start_sec
number
optional
min 0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
tracks
string | string[]
optional
max items 5
Track names as shown on the timeline, or 'mix' (default).
What the shared listen player shows: title, artist, cover, tempo/key, duration, the latest rendered mix, share and listen URLs. Same admission as the player (public, link, owner or collaborator), so no project role is pre-checked.
Revoke the session: its socket closes within seconds and its tickets stop working. Closing an already closed session is not an error (already_closed=true).
Parameters
Parameter
In
Type
Required
Constraints
Description
session_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Open (or, with session_id, resume) the push channel for a manually operated editor. Call from your backend; hand only session_ticket to the browser, which opens websocket_url (/api/ws/mcp-session) and sends {"type":"auth","ticket":...} first. mode=auto gives editors with daw:write a write session and everyone else a read-only one.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Request body application/json
Field
Type
Required
Constraints
Description
mode
string
optional
default "auto"; one of auto, write, read
origin
string
optional
max length 255
Browser origin that will open the socket (an allowed origin of your OAuth client).
session_id
string
optional
max length 64
Resume this open session.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Close the calling user's own live input (ingest) connection by clientId (the one sent with, or returned by, sendLiveIngestOffer). Only an uplink this user opened through the API is closed: never another member's microphone, whatever clientId is named. response.closed=false when there is no such uplink.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
clientId
string
optional
max length 128
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
SDP offer carrying the microphone track (sendonly Opus) and the negotiated data channel id 200 (label mozart-live-ingest); returns Mozart's answer. Offer Opus as the only audio codec (the engine decodes Opus only). Audio flows client -> Mozart directly (TURN via getTurnCredentials), never through this API. The uplink is the calling user's microphone: Mozart re-checks the user's live write role, resolves the user's own vocal lane (or lane_id) and records takes as that user. Data channel (JSON text): {type:'keepalive', id} every 5 s (answered keepalive_ack); {type:'take_start', take_id, mode:'record', song_start_sec}; {type:'take_stop', take_id, song_end_sec}; Mozart answers take_started / take_stopped / lane_resolved. See startRecording / finalizeRecording for a take. Access is re-checked for the uplink's whole life, not only here: on every take_start / take_restart and every few seconds Mozart re-reads the user's write role and the app's grant. A refused take answers {type:'take_refused', take_id, code, status, closing} (codes: oauth_grant_revoked, project_write_forbidden, peer_delegation_write_required = this offer's access window ended, re-offer; permission_lookup_unavailable = retry; take_id_in_use; take_id_invalid) and a revoked or expired uplink is closed ({type:'uplink_revoked', code}). A take_id is single-use: one that already names a take on the engine (saved or not) is refused with take_id_in_use. Optional clientId (yours alone: uplinks are kept per user, so it never collides with another member's), lane_id (record lane), delay_ms, turn_credentials, profile. Requires a 48 kHz engine.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Request body application/json
Field
Type
Required
Constraints
Description
clientId
string
optional
max length 128
delay_ms
number
optional
lane_id
string
optional
max length 64
offer
object
required
offer.sdp
string
required
min length 1
offer.type
string
optional
profile
string
optional
max length 80
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Error codes specific to this operation: oauth_grant_revoked, peer_delegation_write_required, project_write_forbidden. Every operation can also answer the common codes.
Open the project's live Mozart audio session (the server picks the engine) and return it with short-lived TURN credentials bound to that engine. Then send an SDP offer with sendMonitorOffer; stopAudioMonitor closes the peer. Works like opening the project in the Studio: a project with lanes but no takes, or a brand-new empty project, opens an empty session (track_id is then the first lane, or the project id). Requires editor access.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Request body application/json
Field
Type
Required
Constraints
Description
device_id
string
optional
max length 128
Deprecated and ignored.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Change the Opus bitrate of your monitoring peer live (target_bitrate_bps 48000-510000, capped by the peer's quality profile) and report your receiver's packet loss (packet_loss_pct 0-100; in-band FEC turns on with loss where the peer's quality profile allows it, see fecEnabled). quality_profile and low_latency are fixed per peer: send a new offer with the same client_id to change them (the old peer is replaced). 404 monitor_peer_not_found when no peer has that client_id.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
client_id
string
required
min length 1; max length 128
packet_loss_pct
integer
optional
default 0; min 0; max 100
target_bitrate_bps
integer
required
min 48000; max 510000
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Close the monitoring peer you opened with sendMonitorOffer (client_id = the one you sent): its audio and data channels stop at once. The project's live session stays loaded for the Studio and other listeners. closed=true when the engine tore the peer down; closed=false when it had no peer with that client_id (already gone, never opened, or the project moved to another engine since the offer), which is not an error. 502 webrtc_close_failed when the engine could not be reached: the peer may still be up, retry. client_id may be sent as a query parameter (preferred) or in a JSON body.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
client_id
query
string
optional
min length 1; max length 128
The client_id you sent with sendMonitorOffer (or send it in a JSON body).
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Trickle ICE for a sendMonitorOffer sent with trickle=true: the engine's ICE candidates gathered after its answer (typically the TURN relay candidate that cellular and restrictive networks need), in gathering order, as {candidate, sdpMid} ready for RTCPeerConnection.addIceCandidate. Long-polls up to wait_ms (default 2000, max 3000) for a new candidate or the end of gathering. Pass response.next back as after; stop once complete=true or the peer is connected. Reading candidates never changes the peer. 404 monitor_peer_not_found when no peer of yours has that client_id. See /docs/realtime.html#monitor-latency.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
client_id
query
string
optional
min length 1; max length 128
The client_id you sent with sendMonitorOffer.
after
query
integer
optional
default 0; min 0; max 1000
response.next of the previous call (0 the first time).
wait_ms
query
integer
optional
default 2000; min 0; max 3000
How long to wait for a new candidate.
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
SDP offer for the project's live audio session (startAudioMonitor first); returns Mozart's SDP answer (the rick webrtc offer). Audio then flows Mozart -> client directly. By default the answer waits until the engine has a relay-capable ICE candidate (about 1-2 s, at most about 4 s), so restrictive networks connect. With trickle=true the engine answers as soon as it has a server-reflexive candidate (a few hundred ms) and response.trickle=true; then poll getMonitorCandidates and addIceCandidate each later candidate (the TURN relay one that cellular / restrictive networks need) until complete=true or the peer connects. response.trickle=false means the engine waited as before (nothing to fetch). See /docs/realtime.html#monitor-latency. The peer runs on the engine as this user: with daw:write and the owner/editor role the answer has peerGrant=write and the peer's data channels accept the Studio's fast input (mozart-control: transport_play/pause/seek, set_track_gain/muted/soloed, set_plugin_param, midi_note, midi_all_notes_off, sample_preview, sample_preview_release, live_hold; mozart-editor, negotiated id 100: editor.pointer/scroll/type), re-checked live against the role and the OAuth grant until peerGrantExpiresAt. Otherwise peerGrant=read (audio, clock, meters, editor frames). peerGrant is what the engine confirmed it applied; when it cannot confirm, the peer is closed and the call answers 502 peer_delegation_unconfirmed. An engine that is still being updated answers 503 engine_update_required before anything is sent to it (your existing peer keeps running; retry shortly). An account that never completed a sign-in the engine can re-check answers 403 peer_identity_unavailable. Once mozart-control is open the engine pushes engine_clock frames on it every 100 ms (getTransportClock fields + rtp_sync). Create the data channels before the offer so it has an m=application section; re-offer with the same client_id to renew (the old peer is replaced); stopAudioMonitor closes it and setAudioMonitorQuality changes its bitrate live. client_id is yours: it is scoped to your user, so it can never address another member's peer. Should the engine still report the id as another peer's, the call answers 409 webrtc_client_id_in_use: nothing was replaced, send the offer again with a new client_id. See /docs/realtime.html#fast-input.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Request body application/json
Field
Type
Required
Constraints
Description
client_id
string
optional
max length 128
device_id
string
optional
max length 128
Deprecated and ignored.
low_latency
boolean
optional
mode
string
optional
max length 40
quality_profile
string
optional
max length 80
sdp
string
required
min length 1; max length 65536
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
trickle
boolean
optional
default false
Trickle ICE: answer without waiting for the engine's TURN relay candidate; fetch later candidates with getMonitorCandidates.
turn_credentials
object
optional
username/credential/expiresAt from getTurnCredentials.
write: the peer's data channels accept transport, mixer, plug-in parameter and plug-in editor input as this user. read: audio, clock, meters and editor frames only.
peerGrantConfirmed
boolean
optional
Always true here: an API offer is only answered once the engine confirmed the grant it applied.
peerGrantExpiresAt
integer | null
optional
Unix seconds when channel writes stop; re-offer with the same client_id to renew.
qualityProfile
string
optional
trickle
boolean
optional
true: the engine answered without waiting for its relay candidate (you sent trickle=true); fetch the rest with getMonitorCandidates. false: the answer already carries every candidate the engine waited for.
Error codes specific to this operation: engine_update_required. Every operation can also answer the common codes.
Whether projects' DAW sync rooms have people in them now, their codes and member counts, without joining (no socket). project_id=X: one project (viewer access or better; 404 for a project you cannot see). project_ids=a,b,c (at most 50): {data: [...]} with one row per project you can read, in the order given; ids you cannot read or that do not exist are left out (no error). live is true only while members > 0; an empty room within its 10-minute grace period answers live=false with its code and expires_at. Send exactly one of the two.
curl -X GET "https://freestyle.audio/api/v1/realtime/daw-sync-sessions" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
POST/api/v1/realtime/daw-sync-sessions
Get or create a DAW sync session
Operation
createDawSyncSession
Scope
live:write
Project role
not pre-checked
Rate class
interactive
A DAW sync room (Freestyle for Mac: several people's own DAWs editing one session). With project_id this is the project's ONE live room: its existing room (200, created=false) while it has members or is within its grace period, else a new one (201, created=true); concurrent calls get the same code. Access follows the project's share settings (owner, named collaborators, link/public visitors as the app treats them): anyone with at least viewer access may call this and join; viewers are read-only members (their ops, snapshot and transport frames are refused with editor_required). Without project_id a new code-only room is minted every call (201). Members open websocket_url (/api/ws/daw-sync) with Authorization: Bearer (scope live:write) and send {"type":"join","room":code,"peerId":<device id>} first; see /docs/realtime.html#daw-sync. The room lives while it has members and for 10 minutes after the last one leaves (expires_at slides). 429 daw_sync_session_limit: you already created the maximum number of rooms (they expire on their own; returning a project's existing room never counts); 429 daw_sync_capacity: the server is full; 503 not_available: DAW sync is not served right now.
Request body application/json
Field
Type
Required
Constraints
Description
project_id
string | null
optional
max length 64
Optional Freestyle project: returns its live room (viewer access or better required).
Short-lived TURN relay credentials (urls, username, credential, expiresAt) for the live audio WebRTC connection. Pass the session's dawBaseUrl as mozart_origin.
Six characters (no 0/O/1/I); send it as room in the join frame.
created
boolean
required
true (201): a new room; false (200): the project's existing live room.
expires_at
string
required
format date-time
When the room ends if nobody joins. It slides: a room lives while it has members and for 10 minutes after the last one leaves.
project_id
string | null
required
websocket_url
string
required
wss://<origin>/api/ws/daw-sync
InteractiveSessionschema
The open_interactive_session result (fields follow the MCP tool).
Field
Type
Required
Constraints
Description
expires_at
string | integer | null
optional
mode
string
optional
one of write, read
revision
any
optional
sample_rate
integer | null
optional
session_id
string
required
session_ticket
string
optional
Single-use; hand only this to the browser.
websocket_url
string
optional
TurnCredentialsschema
Field
Type
Required
Constraints
Description
credential
string
optional
expiresAt
integer | string
optional
urls
string[]
optional
username
string
optional
Sync
DAW project-file sync for Freestyle for Mac: links between a project and a DAW folder, immutable content-addressed versions, and direct-to-storage blob uploads and downloads.
GET/api/v1/sync/blobs/{sha256}
Get a blob's state
Operation
getSyncBlob
Scope
projects:read
Project role
not pre-checked
Rate class
interactive
Your view of one hash: stored (available to you), or the state of your own upload (uploading, verifying, rejected + reason). 404 when nothing is known to you. wait=N (seconds, at most 20) long-polls: while the state is uploading or verifying the answer is held until it changes (stored, rejected) or N seconds pass, then the current state is returned. At most 4 waiting requests per account and 32 per server: over that the answer is immediate (same body; just poll again).
Parameters
Parameter
In
Type
Required
Constraints
Description
sha256
path
string
required
pattern ^[0-9a-fA-F]{64}$
SHA-256 of the file's bytes, hex.
wait
query
number
optional
default 0; min 0; max 20.0
Long-poll up to this many seconds for the state to leave uploading / verifying.
curl -X GET "https://freestyle.audio/api/v1/sync/blobs/{sha256}" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
POST/api/v1/sync/blobs/{sha256}/commit
Commit an uploaded blob for verification
Operation
commitSyncUpload
Scope
media:upload
Project role
not pre-checked
Rate class
interactive
After Put Block List: checks that your staging object exists with the declared size and verifies it (SHA-256 and size of what you uploaded, executables refused, then the content-addressed copy). A blob of at most 4 MiB (DAW_FILE_SYNC_INLINE_VERIFY_MAX_BYTES) is verified inside this request: 200 state=stored, or 200 state=rejected with reason. Larger blobs, or a small one while the server is already verifying 4 others inline, are queued: 202 state=verifying; then getSyncBlob (wait=N long-polls) until stored or rejected (reason hash_mismatch, size_mismatch, executable_refused, upload_missing, upload_modified, verification_failed). A small blob can also answer 202 when storage was briefly unavailable (it is retried in the background). Repeating the call answers the current state.
Parameters
Parameter
In
Type
Required
Constraints
Description
sha256
path
string
required
pattern ^[0-9a-fA-F]{64}$
SHA-256 of the file's bytes, hex.
Responses
Status
Meaning
Body
Headers
200
Stored or rejected (verified inline, or already finished).
curl -X POST "https://freestyle.audio/api/v1/sync/blobs/{sha256}/commit" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
GET/api/v1/sync/blobs/{sha256}/content
Download a blob
Operation
getSyncBlobContent
Scope
projects:read
Project role
not pre-checked
Rate class
interactive
302 to a short-lived (at most 10 minutes) read URL for the blob on storage, Content-Disposition: attachment; follow it (Range requests work there). Only when a version of a project you can read references this hash; 404 otherwise.
curl -X GET "https://freestyle.audio/api/v1/sync/blobs/{sha256}/content" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
POST/api/v1/sync/blobs/{sha256}/uploads
Start or resume a blob upload
Operation
openSyncUpload
Scope
media:upload
Project role
not pre-checked
Rate class
interactive
Body {size}. When a verified blob with this hash is already available to you (you uploaded it, or a version you can read references it) the answer is 200 state=stored and there is nothing to upload. Otherwise 201 with uploadUrl: an Azure block-blob SAS (about 1 hour) for YOUR staging object. Upload straight to it: Put Block (blockSizeBytes pieces, base64 block ids of equal length) then Put Block List, or one Put Blob for small files; to resume, Get Block List (comp=blocklist&blocklisttype=uncommitted) on the same URL. Calling this again for the same hash returns a fresh URL for the SAME staging object. Then commitSyncUpload. Whether other users hold the same file is never revealed. 200 state=verifying while a commit is being checked.
Abandon your open (or rejected) upload of this hash: its staging object and any uploaded blocks are discarded and it stops counting against your open-upload limit and quota. An upload you never commit otherwise counts until it expires (7 days). 409 state_conflict while it is verifying or once it is stored.
curl -X GET "https://freestyle.audio/api/v1/sync/links" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
POST/api/v1/sync/links
Link a DAW project folder to a project
Operation
createSyncLink
Scope
projects:write
Project role
not pre-checked
Rate class
interactive
Behaviour
Idempotency-Key
Idempotent per project and DAW: 201 with created=true the first time, then 200 with the existing link. Editors and owners only (viewers 403 editor_required).
Parameters
Parameter
In
Type
Required
Constraints
Description
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Oldest first. after=<versionId> returns only later versions (by seq). When pagination.hasMore is true, pagination.nextCursor is the last versionId: pass it as after.
curl -X GET "https://freestyle.audio/api/v1/sync/links/{link_id}/versions" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
POST/api/v1/sync/links/{link_id}/versions
Create a version
Operation
createSyncVersion
Scope
projects:write
Project role
not pre-checked
Rate class
interactive
Behaviour
Idempotency-Key
Immutable. Every manifest hash must be available to you (uploaded and verified by you, or in a version you can read): otherwise 409 blobs_missing with details.missing. Paths must be relative with no '.' or '..' segments and no duplicates; root must be one of the files; each size must match its blob (400 blob_size_mismatch). parentVersionId must be a version of this link (400 invalid_parent) or null. Two versions with the same parent (both null included) are both kept and both reported with fork=true; nothing is merged or rejected. Followers of the link get version.created on /api/ws/daw-files. Editors and owners only.
Parameters
Parameter
In
Type
Required
Constraints
Description
link_id
path
string
required
min length 1; max length 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
A natural-language instruction, exactly like the Studio assistant bar (mixing, transport, tempo, clips, patterns, sound search, composing). Mozart plans validated engine actions, executes them, records undo and replies. Destructive steps are refused until confirm_destructive=true. With a generator other than mozart it starts a background job (poll getMozartAiJob).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
command
string
required
min length 1; max length 480
confirm_destructive
boolean
optional
default false
generator
string
optional
max length 32
reference
string
optional
max length 80
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Progress and result of a background Mozart AI generation: status, current step and, when done, the new lane/clip. status unknown = finished or no longer tracked.
Global read-only search: sounds, Splice, effect / vocal chain / plug-in presets, drum kits, beats and the marketplace, paged and filtered to what the caller may see.
Freestyle's curated beat catalog (only beats whose audio is stored, so they open instantly): free text, genre, mood, artist, key and BPM range. Use a beat's id as createProject source.beatId. Paged through the catalog's own pages (limit at most 25).
Public marketplace assets of one type (beat kits, patterns, sound packs, sounds, plug-in presets, audio-effect presets) with optional search text, category and creator. One window of up to 50 cards, cursor-paged.
Parameters
Parameter
In
Type
Required
Constraints
Description
asset_type
query
string
required
one of beat_kit, pattern, sound_pack, sound, plugin, audio_effect
The ranked, seeded discovery feed across every public marketplace item type. The order is fixed by seed (default 0), so pages never repeat or skip; pass another seed to reshuffle. Paged through the feed's own offset (limit at most 50).
Public plug-in presets on the marketplace (asset type plugin). Factory presets of plug-ins with a preset catalog are listed by listCatalogEffectPresets and inlined by listPluginCatalog include_presets=true.
The presets inside one marketplace preset pack the caller can see, paged through the pack's own offset. Addable rows carry `register` ({"preset_pack_item_id": id}, or {"sound_pack_item_id": id} for packs served from sound-pack rows) for pattern-samples:register; canAdd=false rows give canAddReason.
Playable sound rows across every inventory the caller can reach (public assets, their own, shared and library-added packs). One window of up to 100 rows, cursor-paged. Every row with canAdd=true carries `register` (e.g. {"sound_pack_item_id": id}): send it as the body of POST /projects/{project_id}/pattern-samples:register to add the sound; rows with canAdd=false say why in canAddReason (not_audio, not_in_storage). Auditioning: a row's previewUrl / audioUrl is the Studio's own same-origin byte route (/api/marketplace/...), which needs a signed-in Studio browser session and answers 401 to an OAuth bearer token, so do not fetch or proxy it. To hear a row without changing any project call previewCatalogSound (GET /catalog/sounds/{id}/preview): it returns a short-lived credential-free previewUrl. Inside a project you can also register the sound (above) and audition it in the live engine with POST /projects/{project_id}/engine/actions/preview_pattern_sample {audio_file_id} (heard on the monitor stream), and draw it with getPatternSampleWaveform. Splice rows use previewCatalogSpliceSound.
curl -X GET "https://freestyle.audio/api/v1/catalog/sounds" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
GET/api/v1/catalog/sounds/{item_id}/preview
Preview a Sound Library sound
Operation
previewCatalogSound
Scope
library:read
Project role
not pre-checked
Rate class
interactive
Audition a Sound Library row (browseCatalogSounds) without adding it to a project: returns a short-lived (under one hour) credential-free previewUrl for that sound's audio; play it directly (e.g. an <audio> element). Nothing is stored and no project changes. Only sounds the caller can browse are previewable (public, own, shared or library-added); anything else is 404. Each call counts against the media preview limits (per-user mint rate and a distinct-sounds-per-hour quota; repeat previews of one sound in the same window are free): over them the answer is 429 rate_limited with Retry-After. Sounds stored encrypted come back with previewRequiresAuth: true and a previewUrl that is the API path of streamCatalogSoundPreview (fetch it with your bearer token). 409 preview_unavailable: the sound has no playable stored audio yet (not scanned). Splice rows use previewCatalogSpliceSound.
Error codes specific to this operation: rate_limited. Every operation can also answer the common codes.
Minimal request (required fields only):
curl -X GET "https://freestyle.audio/api/v1/catalog/sounds/{item_id}/preview" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
GET/api/v1/catalog/sounds/{item_id}/preview/audio
Stream a Sound Library sound's audio
Operation
streamCatalogSoundPreview
Scope
library:read
Project role
not pre-checked
Rate class
interactive
The audio bytes of one Sound Library row (browseCatalogSounds), streamed by the API for sounds that have no direct storage URL (previewCatalogSound returns this path with previewRequiresAuth: true). Send your bearer token; supports HTTP Range. Same access rule as previewCatalogSound (404 for sounds the caller cannot browse) and counted against the same preview limits. Nothing is stored and no project changes.
Splice Sounds through the caller's linked Splice account (q required; optional bpm, key, genre). Downloading a sound spends a credit and is not part of this API. Calls to Splice pay the api_v1:external_search budget (120/min per user, the MCP connector's ceiling). Rows are canAdd=false (canAddReason splice_download_required): only downloaded audio can be registered.
A short-lived preview URL streamed from Splice's CDN; nothing is added to Freestyle. Fetch it again when it expires. This is the supported way for an API client to hear a Splice sound before downloading it (the URL needs no Freestyle credentials). For Freestyle Sound Library rows use previewCatalogSound.
source=library (defaults, your own and saved presets; song_project_id adds that song's default, viewer role) or source=marketplace (public presets, searchable).
Parameters
Parameter
In
Type
Required
Constraints
Description
source
query
string
optional
default "library"; one of library, marketplace
kind
query
string
optional
one of vocal, audio, guitar, instrument, drums, bus
curl -X GET "https://freestyle.audio/api/v1/catalog/vocal-chain-presets/{preset_id}" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
CatalogSoundPreviewschema
Field
Type
Required
Constraints
Description
assetId
string
optional
The sound / sound pack the row belongs to.
durationSec
number | null
optional
expiresAt
string
required
format date-time
expiresInSec
integer
required
min 0
itemId
string
required
The browseCatalogSounds row id.
mimeType
string
optional
name
string | null
optional
previewRequiresAuth
boolean
optional
true: fetch previewUrl with your Authorization header (API-streamed audio); false: fetch it with no credentials (direct storage URL).
previewUrl
string
required
Where to fetch this one sound's audio. When previewRequiresAuth is false it is a short-lived, read-only storage URL that needs no Freestyle credentials (do not send your bearer token to it), supports HTTP Range, and is a bearer secret: do not log, store or share it; request a new one after expiresAt. When previewRequiresAuth is true (sounds stored encrypted) it is the Freestyle API path of streamCatalogSoundPreview: GET it with your bearer token (supports Range).
Engine actions
Typed gateway to every live-engine (Pro catalog) action.
Every Pro catalog action with its typed argument schema, family, risk, mutates, required scope and project role, rate class and the typed operation (engine_<name>) that runs it. Not project-specific.
Library sound (sound_query/sound_id) on beats=[4] or steps, looped on the song grid from the drop to the end, or start/end_measure, start/end_sec, ranges=[{start_sec,end_sec}]. bars, velocity, name optional.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Genre groove (trap, boom_bap, rnb, ...; default guessed) with accents/ghosts/swing from the drop; layers around backing drums unless full_kit; replace_original mutes the song's own drum stem.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Instrument track + its part in one call. role (bass_guitar|rhythm_guitar_sustained|rhythm_guitar_short|lead_guitar|organ|piano|keys|pad|strings|synth_lead|synth_bass|808) picks a real patch from ALL plugins; articulation sustained|short; instrument forces a plugin; preset names one; chords=[...] or ['song'] or notes; fill_song loops it.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Apply several mix changes at once, all-or-nothing, as ONE mix revision step: changes = [{target:'lane', lane_id|track_id, gain?(0-4), pan?(-1..1), muted?, soloed?, bus_id?}, {target:'master', gain?, pan?}, {target:'bus', bus_id, gain?, pan?, muted?, soloed?}] (max 64; one value per control). Every change is validated before any applies. The reply has mix_revision and undo_changes (the inverse batch). Pass expected_mix_revision on execute_pro_action to refuse the move if the mix changed since you read it. pattern_runtime_muted_placement_ids (optional) = the project's full silenced pattern placement set, installed in the same revision step.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
changes
object[]
required
min items 1; max items 64
changes[].bus_id
string
optional
max length 64
changes[].gain
number
optional
min 0; max 4
changes[].lane_id
string
optional
max length 64
changes[].muted
boolean
optional
changes[].pan
number
optional
min -1; max 1
Lane pan, bus pan (target bus) or master pan (target master).
changes[].persist
boolean
optional
changes[].soloed
boolean
optional
changes[].target
string
required
one of lane, master, bus
changes[].track_id
integer
optional
min 0
pattern_runtime_muted_placement_ids
string[]
optional
max items 4096
The project's full silenced pattern placement set (what resync_patterns muted_placement_ids takes), installed by the engine inside the same mix batch.
Load one already-saved clip (db_track_id = the clipId returned by upload_audio / add_audio_from_url / get_project) into the running live session, exactly as session load does (no re-upload, no reload). Returns the engine track_id/clip_id; 409 means it is already loaded.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
AI-tell audit of the song on the timeline: energy drops, entries/exits, intro not full, chorus 2 varies, fills, grid-locked or flat parts, muddy voicings, 808 on the kick. fix=true rewrites the note-level tells; returns the move for the rest.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
HEAR a track's patch: plays a short phrase (chords / bassline / melody in the song's key) through it offline and returns measurements plus what an audio model heard, identified BLIND, and its answer to your question. Pass family + patch_key to set that candidate first.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Whole song in ONE call: genre, key, bpm, structure=[{section,bars,energy}], progressions={section:'i VI III VII'}, parts, patches={part:'name'}; code humanizes, voices, arranges and audits it.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Delete a mixer bus from the live engine. Aux sends into it are removed with it (reply removed_sends), so a later bus with the same id starts with none.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
confirm
query
boolean
optional
default false
Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.
Remove a plugin from a bus chain (bus_id='master' for the master inserts). The reply's removed {instance_id, type, bypassed, chain_position, state_base64} re-adds it with load_bus_plugin (undo).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
confirm
query
boolean
optional
default false
Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.
Remove one plug-in instance from a lane's chain: the live slot and its saved chain row in one operation. A saved row whose plug-in is not live is removed from the saved chain.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
confirm
query
boolean
optional
default false
Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.
End the caller's own recording arm (never a take a browser or live-room member armed or joined) and, with take_id, save the take recorded on the caller's live-ingest uplink as a clip: scanned and promoted as the calling user exactly like a Studio take. Send take_stop on the uplink first. Reply: saved, state, track_id, lane_id, start_ms, duration_sec, engine_disarmed. wait_ms (default 8000, max 10000) bounds the wait; wait_for='placed' answers as soon as the clip is on its lane (about a second; saved=false, state='saving', track_id final) while the scan and store finish, and a later call with the same take_id answers saved=true; the default wait_for='saved' answers once the take is stored. recording_take_pending = retry; recording_take_silent (no audio) and recording_take_rejected (refused or failed) are final: record again with a new take_id (a take_id is single-use).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
confirm
query
boolean
optional
default false
Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.
Request body application/json
Field
Type
Required
Constraints
Description
project_id
string
required
take_id
string
optional
min length 1; max length 96; pattern ^[A-Za-z0-9_-]{1,96}$
The take_id the client sent in take_start on its live-ingest uplink.
wait_for
string
optional
default "saved"; one of saved, placed
placed: answer once the clip is on its lane (saved=false, state=saving; call again for saved=true). saved: answer once the take is stored.
wait_ms
integer
optional
min 0; max 10000
How long to wait for the saved clip (default 8000).
Error codes specific to this operation: confirmation_required, recording_take_pending, recording_take_rejected, recording_take_silent. Every operation can also answer the common codes.
Best library one-shots for a role ('stomp', 'dusty knocking kick'), ranked + auditioned + measured against the producer words; top 3 marked pick 1-3 with why + next step.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Per-channel min/max/RMS waveform of one clip's source audio over a frame range (clip_id = durable clip id or 'backing'; start_frame/end_frame in source frames; buckets 1-8192). Raw PCM, pre clip-gain, pre effects.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Read a lane's EQ: the lane EQ stage (set_track_eq_band) and every native EQ plug-in on its chain (set_lane_plugin_eq_band), as typed bands (band, enabled, type, frequency_hz, gain_db, q).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Waveform peaks (max |sample| per bucket, not normalized) of one pattern sample, from the PCM the engine decodes itself (it holds the media decrypt grant).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Read a set_project_tempo mode=stretch_audio job: status queued|running|succeeded|failed|undone, per-clip render progress, before/after starts and the undo call.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Scene launch: start several ARMED pattern previews (preview_pattern arm_only) together at one engine time. previews [{armed_signature, slot_id?, repeat_count? (default 64), gain?}] (1-8); quantize none|beat|bar aligns the start to the grid of your running layers; stop_others ends your other layers at that instant. A slot already playing is replaced exactly at the launch time. At most 8 previews sound at once (too_many_previews).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
beats_per_bar
integer
optional
default 4; min 1; max 32
lead_sec
number
optional
default 0.05; min 0; max 2
preview_request_id
integer
optional
min 1; max 9007199254740991
Increasing id per press; a stop with id N refuses starts <= N.
previews
object[]
required
min items 1; max items 8
The clips of the scene: one armed preview per slot (slot_id defaults to the armed_signature).
previews[].armed_signature
string
required
pattern ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$
previews[].gain
number
optional
default 0.92; min 0; max 2
previews[].repeat_count
integer
optional
default 64; min 1; max 64
previews[].slot_id
string
optional
pattern ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$
project_id
string
required
quantize
string
optional
default "none"; one of none, beat, bar
Start on the next beat / bar of your running layers' grid.
stop_others
boolean
optional
default false
Your layers in other slots stop at the launch instant.
HEAR tracks or the whole mix over a bar range (tracks omitted or 'mix' = the mix): renders offline, measures, and an audio model describes what it hears (blind) and answers your question.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Send a WebRTC SDP offer with the microphone track (sendonly Opus) and the negotiated data channel id 200 (mozart-live-ingest) for live input; returns Mozart's answer. The uplink is the calling user's microphone (own vocal lane, takes saved as that user). offer={sdp,type}; optional clientId, lane_id (record lane), delay_ms, turn_credentials (from get_turn_credentials), profile. Requires a 48 kHz engine. Data channel: keepalive every 5 s, take_start / take_stop (see start_recording).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
clientId
any
optional
delay_ms
integer
optional
lane_id
string
optional
offer
object
required
offer.sdp
string
required
offer.type
string
required
one of offer
profile
any
optional
turn_credentials
object
optional
username/credential/expiresAt from get_turn_credentials
Add a plugin to a bus chain. bus_id='master' is the master insert chain (processed on the final mix, live and in exports, before the master fader; saved automatically). Optional type_id (catalog id), instance_id, state_base64 / bypassed / position (restore a removed insert in place). The reply carries plugin_index and instance_id.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
confirm
query
boolean
optional
default false
Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.
MEASURE the mix (or tracks) over a bar range like a mix engineer: integrated/short-term LUFS (BS.1770), true peak dBTP, PLR, tonal balance vs the genre's target curve, low-end mono, stereo width, part collisions, vocal vs beat. Returns flags, ONE nextMove, sources; called again after one change it returns the before/after delta and logs it. genre/balance (vocal_on_top|vocal_inside_beat)/stage (mix|master) override the brief.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Open the mirrored native editor (GUI) for a track's plugin; frames and input then use the project's WebRTC editor channels. Call release_plugin_editor when done.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Play one time range once and stop exactly at its end (sample-accurate, in the engine; source audio stops at the end frame, effect tails drain like a pause). Give start_sec and end_sec, or start_frame and end_frame (project-timeline frames at the engine rate; sample_rate converts other rates). Any play/pause/seek/seek_and_play/loop change cancels the pending end; while it plays the range end wins over an enabled loop. get_transport (and get_transport_clock) report play_range {active, stop_reason, stopped_at_frame}.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
end_frame
integer
optional
min 1
end_sec
number
optional
> 0
end_tick
number
optional
> 0
sample_rate
number
optional
min 8000; max 384000
start_frame
integer
optional
min 0
start_sec
number
optional
min 0
start_tick
number
optional
min 0
timing_map_revision
integer
optional
min 0
Optional guard: the engine must hold this timing-map revision (else 409 timing_map_revision_mismatch).
Preview a pattern or its note/step edits. repeat_count (1-64) loops the preview. arm_only=true prepares it without playing (armed_signature names the arm); armed_signature alone starts that prepared arm. preview_request_id orders starts and stops (a stop covers every id up to its own).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
arm_only
boolean
optional
default false
Prepare (compile + resolve samples) without playing.
armed_signature
string
optional
pattern ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$
Names the armed preview; without arm_only, starts that armed preview.
bars
integer
optional
bpm
number
optional
gain
number
optional
min 0; max 4
lead_sec
number
optional
length_ticks
integer
optional
pattern
object
required
phase_offset_sec
number
optional
placement_id
string
optional
ppq
integer
optional
preview_request_id
integer
optional
min 1; max 9007199254740991
Increasing id per press; a stop with id N refuses starts <= N.
Listen to every part + the mix and FIX what sounds off (wrong patch/sample, chords that don't ring, clipping, masking), re-listen up to 3 rounds; tracks optional.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Replace the instrument (generator) of an existing instrument lane in place, keeping the lane, its patterns / notes / pattern clips, insert effects, sends and mix. instrument = a catalog id (GET /instruments/catalog); preset names a patch from its captured catalog; restore_state = the signed undoState a previous replacement answered (exact undo). Answers previousInstrument + undoState.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Re-create a lane plug-in under a given instance id with its saved state (undo of a delete): type, id, state_base64 + state_signature (hosted plug-ins: exactly the state and state_signature a delete_lane_plugin restore returned) or params / native_eq (native effects), bypassed, position, param_overrides (hosted: the delete's captured parameter values [{index, value_norm}], replayed after the state chunk for plug-ins whose chunk does not carry host parameters). Exactly how a saved chain row is restored on load; the saved chain row is written in the same operation.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
bypassed
boolean
optional
id
string
required
lane_id
string
required
native_eq
any
optional
open_editor
any
optional
param_overrides
object[]
optional
max items 4096
Hosted plug-in parameter values to replay after the state chunk (a delete's restore.params): [{index, value_norm}], normalized 0..1.
Put a snapshot_lane_plugin state back into the SAME slot in place (no unload/reload): state_base64 + state_signature (hosted) or native params, host parameters, bypass. Pinned to expected_plugin_instance_id.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Search the REAL instrument patch catalog (LABS, Omnisphere, Splice INSTRUMENT, Xpand!2): query = what it should sound like ('natural acoustic grand piano'); role/track/plugin narrow it; producer words (dusty, glassy, twang) and avoid= must-nots rerank. Returns ~20 candidates (plugin, name, pack, category, tags, probe data, sound-index match), top 3 marked pick 1-3 with reason + next step, for YOU to choose from.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Play notes on an instrument NOW (no timestamps; sent in order). Either one note {note 0-127, action note_on|note_off, velocity 0-1, channel 1-16} or events=[...] of the same shape (1-64). Optional lane_id. Empty/malformed input is rejected; CC is not supported here. Always pair note_on with note_off (or call all_notes_off).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Set a mixer bus fader gain (linear 0-4, 1 = unity, 0.5 = about -6 dB). bus_id=master is the project's MASTER OUTPUT FADER: the whole project output after the master chain, before the output limiter, saved with the project unless persist=false (pass persist=false while sweeping, then a final call without it). It is NOT the Studio's Master strip, which is the user's local monitor volume (the strip only shows a non-unity engine fader as its 'Out' level). Current value: the master entry's gain in list_buses / get_pro_state mix.masterGain.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Pan a mixer bus output: pan -1 = hard left, 0 = center, 1 = hard right (equal-power balance after the bus fader). bus_id=master pans the project's master output (after the master fader, before the limiter). Live session state: re-centered when the project is reopened.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Bus stereo tools: separation -1..1, polarity_inverted, swap_lr (send at least one). Applied after the bus insert chain, before its fader; saved with the project unless persist=false. Not available on the master output.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Set the fade-in and/or fade-out of ONE audio clip (FL Studio clip fade handles): fade_in / fade_out = {duration_sec, curve} (curve linear | equal_power | exp | log | s_curve) or null / duration 0 to clear that side; a side that is not sent is left alone. Non-destructive: a gain ramp at the clip edge, multiplied with clip gain. clip_id = the clip's durable id. Saved with the project and applied live.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Set an individual clip's gain (linear 0-4, 1 = unity). clip_id may be the clip's durable id (clipId from get_project). Saved with the project (project_tracks.volume: get_project clips[].volume, restored on reload) and applied live, unless persist=false (pass persist=false while sweeping, then a final call without it).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
clip_id
string
required
gain
number
required
min 0; max 4
Linear clip gain, 1 = unity (4 = +12 dB).
persist
boolean
optional
default true
false = engine only (a drag tick); send the final value with true.
Mute/unmute ONE audio clip (FL Studio-style clip mute): only that clip goes silent, the rest of its lane keeps playing. clip_id = the clip's durable id (clipId from get_project). Independent of the lane's M button (set_track_muted); a muted lane stays silent either way. Saved with the project and applied live.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Re-voice an instrument track (any plugin): track + preset name, or role (bass_guitar|rhythm_guitar_sustained|rhythm_guitar_short|lead_guitar|clean_guitar|acoustic_guitar|organ|piano|keys|pad|strings|synth_lead|synth_bass|808), articulation sustained|short.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Set a native effect instance's parameters in physical units ({key: value}); the engine clamps to the descriptor range and persists them (the Studio's native param grid).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Edit one band (0-7) of a native EQ plug-in slot on a lane (the chain's EQ, e.g. the default EQ): enabled, frequency (Hz), gain_db, q and type. expected_plugin_instance_id / expected_plugin_type pin the slot (409 plugin_instance_mismatch otherwise).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
band
integer
required
min 0; max 7
Band index 0-7.
enabled
boolean
required
expected_plugin_instance_id
string
optional
max length 128
instance_id the slot must hold.
expected_plugin_type
string
optional
max length 64
type_id the slot must hold.
frequency
number
required
min 20.0; max 20000.0
gain_db
number
required
min -18.0; max 18.0
lane_id
string
required
persist
boolean
optional
default true
false = engine only (a drag tick); send the final value with true.
Edit one band (0-7) of a pattern placement's EQ: enabled, frequency (Hz, 20-20000), gain_db (-18..18), q (0.1-18) and type (bell, low_shelf, high_shelf, low_pass, high_pass, ...; see get_pattern_eq).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
band
integer
required
min 0; max 7
Band index 0-7.
enabled
boolean
required
frequency
number
required
min 20.0; max 20000.0
gain_db
number
required
min -18.0; max 18.0
persist
boolean
optional
default true
false = engine only (a drag tick); send the final value with true.
Step grid, many channels: channels=[{channel:'Kick',steps:[1,7,11],velocities?,sound_query?}]. Steps 1-16 repeat each bar; >16 = later bars. replace default true. New pattern placed at place_at_measure (default drop) x repeat, or fill_song.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Set the project BPM used by the timeline and patterns. Optional expected_revision (the timing-map revision you read) makes it a compare-and-swap: a moved map answers 409 timing_map_revision_conflict and nothing changes. mode=keep_time (default) keeps every clip at its time; mode=stretch_audio (Logic 'Adapt Project Tempo') time-stretches audio clips (pitch kept) and scales clip/pattern starts by old/new BPM so they stay on their bars (loop repeats, automation and the backing bar-ruler anchor follow): it returns a job (job_id, status) to poll with get_tempo_stretch_job; the audio, positions and tempo swap together when every render is done, and until then clip, placement and tempo changes on the project answer 409 tempo_stretch_in_progress (engine_reload_required=true = saved but the live engine still needs a reload: POST /api/v1/projects/{id}/engine:reload); undo_tempo_stretch restores the tempo, positions, automation and original audio exactly.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
bpm
number
required
min 20; max 400
expected_revision
any
optional
mode
string
optional
default "keep_time"; one of keep_time, stretch_audio
keep_time = clips keep their time (default); stretch_audio = audio clips are time-stretched (pitch kept) and clip/pattern starts scale by old/new BPM so they stay on their bars (returns a job).
Edit one band (0-7) of a track's lane EQ stage: enabled, frequency (Hz, 20-20000), gain_db (-18..18), q (0.1-18) and type (bell, low_shelf, high_shelf, low_pass, high_pass, ...; see get_lane_eq).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
band
integer
required
min 0; max 7
Band index 0-7.
enabled
boolean
required
frequency
number
required
min 20.0; max 20000.0
gain_db
number
required
min -18.0; max 18.0
persist
boolean
optional
default true
false = engine only (a drag tick); send the final value with true.
Set a track fader gain (linear 0-4, 1 = unity; a level, not a mute: use set_track_muted). Saved with the project as the lane's volume (get_project lanes[].volume, restored on reload) unless persist=false (pass persist=false while sweeping, then a final call without it).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Mute/unmute a whole lane exactly like its M button (lights M): audio, drums/pattern, instrument, or the backing. track_id = lane name or laneId ('backing' for the beat). ALWAYS use this for mute/unmute/silence — never a gain of 0.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Pan a track (lane): pan -1 = hard left, 0 = center, 1 = hard right. Mono sources use an equal-power -3 dB law compensated to unity at center (hard pan = +3 dB on one side); stereo sources use equal-power balance (only the opposite side is attenuated). Applied post-fader, before bus routing; saved with the project unless persist=false (pass persist=false while sweeping, then a final call without it).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Create or update a parallel aux send from a lane to a bus (in addition to the lane's output route): level linear 0-2 (1 = unity), pre_fader=true taps before the lane fader and pan (mute/solo still silence it), false (default for a new send) after them. Saved with the project unless persist=false. The reply's previous is the send before the write (null = none) for undo.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Solo/unsolo a whole lane exactly like its S button (lights S): audio, drums/pattern, instrument, or the backing. track_id = lane name or laneId ('backing' for the beat).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Lane stereo tools (FL's insert stereo separation, phase invert and swap L/R): separation -1 (mono) .. 0 (neutral) .. +1 (side doubled), polarity_inverted (both channels), swap_lr. Send at least one; only the fields sent change. Applied after the insert chain, before the fader and pan; saved with the project unless persist=false.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Switch the transport loop on or off. A bound left out keeps the current loop region (switching off keeps it; enabled=true alone loops that same region). Enabling with no usable region (end after start) is refused with loop_region_required and changes nothing.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
enabled
boolean
required
end_sec
number
optional
end_tick
number
optional
> 0
start_sec
number
optional
start_tick
number
optional
min 0
timing_map_revision
integer
optional
min 0
Optional guard: the engine must hold this timing-map revision (else 409 timing_map_revision_mismatch).
Snapshot one lane plug-in slot for an in-place restore (undo of an apply-preset): its opaque state (live chunk, else the saved row) with a state_signature, host parameters, bypass and a state hash. Served by a dedicated handler, not the raw route.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Read the project's song brief + change log; with update={genre, key, tempo, structure:[{section,bars,energy}], energy_curve, parts:{part:intent}, mix_balance:vocal_on_top|vocal_inside_beat, references, bans, notes} save what the USER stated or approved (why = their words).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Split a clip at a timeline position (split_ms). Name the clip with clip_id (durable id) or give the lane as track_id; both halves stay on the same lane. Optional new_clip_id makes a retry idempotent. Returns the new right-half clip id.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Arm the engine and start a take as the calling user. The take's AUDIO is the client's own live-ingest microphone uplink (live_ingest_offer: WebRTC, client -> Mozart directly; no audio ever passes through this API): after this reply send {type:'take_start', take_id, mode:'record', song_start_sec: response.recording_start_position_seconds} on the uplink's data channel (lane_id = the record lane, else the user's own vocal lane), {type:'take_stop', take_id, song_end_sec} when done, then finalize_recording(take_id). Optional count-in: count_in_beats 1-8 clicks that many beats (the Studio's count-in) and the reply returns at the recording boundary with count_in {beat_samples, bpm, first_click_sample, recording_start_sample, ...}; seek_seconds parks the transport there first, start_transport=true rolls it on the boundary, bpm (20-400) sets the count-in tempo. Refused with recording_in_progress while anybody records on the engine. The engine keeps the arm while the uplink's keepalive is fresh or the caller polls get_transport_clock (60 s grace, 20 min cap).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
bpm
number
optional
min 20; max 400
Count-in tempo; installed as the engine tempo when the map is constant.
count_in_beats
integer
optional
default 0; min 0; max 8
Metronome count-in beats before the take (0 = record at once). The reply returns at the recording boundary with count_in timing.
lane_id
string
optional
project_id
string
required
seek_seconds
number
optional
min 0
Park the (stopped) transport here before the count-in.
start_transport
boolean
optional
default false
Start the transport on the recording boundary (needs count_in_beats > 0).
Count in, then play: clicks count_in_beats (1-16) beats at the tempo (with the metronome off too) and starts the stopped transport exactly one beat after the last click, without arming a recording. seek_seconds parks the transport there first (0 = project start), bpm (20-400) sets the tempo first when the tempo map is constant. The reply returns on the boundary (transport_started, position_seconds, count_in_first_click_sample, count_in_beat_samples, transport_start_sample on the audio-device clock). Pause / play / seek during the count-in cancels it (count_in_cancelled). Refused with transport_rolling while playing and recording_in_progress while a take is armed.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
bpm
number
optional
min 20; max 400
Count-in tempo; installed as the engine tempo when the map is constant.
count_in_beats
integer
optional
default 4; min 1; max 16
Count-in clicks before the transport starts.
seek_seconds
number
optional
min 0
Park the stopped transport here first (0 = the project start).
wait
boolean
optional
default true
Answer on the boundary (transport_started=true); false answers at once.
Error codes specific to this operation: count_in_cancelled, recording_in_progress, transport_rolling. Every operation can also answer the common codes.
Trim a clip's audible range. Omitted fields keep the clip's current value; audio_offset_sec is the trim-left into the source, duration_sec the audible length.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Undo a succeeded stretch_audio tempo change: the old tempo, every clip/pattern position and the original audio files come back exactly. 409 tempo_stretch_undo_conflict when the project was edited after the stretch.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
MIDI for a track (channel): chords (fit to the song key; ['song'] follows its progression; keep_chords forces) and/or notes=[{pitch,bar,step,length_steps,velocity}]; style pad|stabs|arp. place_at_measure/repeat/fill_song, replace.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Run any catalog action by name: body {action, arguments}. Same rules as the typed engine_<name> operations: allowlisted pure reads need daw:read + viewer, every other action daw:write + editor (+ Idempotency-Key), destructive actions confirm=true, generative (compose) actions pay the AI guard and render actions the export budget. Unknown argument keys are 400. Engine error codes are preserved in the envelope.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live session (defaults to the project's first take).
confirm
query
boolean
optional
default false
Required true for destructive actions.
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Rebuild the project's live engine session from what is saved (clips, lanes, plug-in chains, patterns) and answer once it is loaded: the fix for any result that says engine_reload_required=true (clips:batch, time-range-edits, move-to-lane, clip mute, sample edits, uploads). Uses the engine's /session/load exactly like opening the project, headless (no Studio tab needed). mode=full (default) bypasses the already-loaded fast path and rebuilds everything (every hosted plug-in is re-instantiated: up to ~90 s; listeners hear a short gap); mode=reconcile reuses a running session after pruning deleted clips and restoring missing ones (fast, but it does not rebuild plug-ins or fix a clip on the wrong lane). Idempotent: the result is the saved project whatever the starting state, and Idempotency-Key replays the first answer. Errors: 409 recording_in_progress (a take is being recorded; nothing reloaded, Retry-After), 409 studio_busy_on_other_project, 504 engine_timeout (the load may still finish: poll getEngineState, or retry), 502 engine_* when the engine is unreachable.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
mode
string
optional
default "full"; one of full, reconcile
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
engine_timeout: the load did not answer within 90 s.
Error codes specific to this operation: engine_timeout, recording_in_progress, studio_busy_on_other_project. Every operation can also answer the common codes.
Play notes on an instrument now (send_midi): one note {note, action, velocity, channel} or events[1-64] of that shape; instrument_id from the engine state. Malformed or empty input is 400 before the engine; always pair note_on with note_off (or allNotesOff).
Master gain, per-lane gain / pan / mute / solo / bus and live bus gain / mute / solo from the engine (the get_pro_state mix summary, from list_tracks + list_buses), with mixRevision and ETag: "mix-<n>". Mozart bumps the revision on EVERY mix change from any source, including a Studio user's direct fader moves; send it back as If-Match (or expected_mix_revision) on mixer, bus and mix:apply writes. If-None-Match answers 304 while the mix is unchanged; waitEngineMix long-polls for a change. One engine round trip (GET /mix/state) on current engines; the X-Freestyle-Mix-Read response header says which path served it (state = one call, pair = an older engine's /tracks + /buses).
Apply up to 64 mix changes as ONE step: lane gain / pan / mute / solo / bus routing, master gain / pan, bus gain / pan / mute / solo (bus_pan / master_pan are aliases of pan on bus / master changes). Mozart validates every change first and applies all of them or none, bumping the mix revision once. Guard it with If-Match: "mix-<n>" (or expected_mix_revision): if anyone changed the mix since your read, 412 mix_revision_conflict and nothing changes. The reply's response.undo_changes is the inverse batch (the prior values), so one more mix:apply with If-Match on the new ETag undoes the move. Persistence matches the single-control routes (lane gain as the lane's volume, lane pan and master gain unless persist=false; routing; lane mute/solo rows; bus and master pan are live only); each response.results[] row's db_persisted says whether that control was saved with the project. Pattern timeline lanes (track_type pattern) take mute/solo here too, exactly like setLaneMute / setLaneSolo: the lane's mixer track, its placements' mute/solo rows and the engine's realtime placement filter all change in the SAME mix revision (soloing one also unmutes it unless the change names muted, so results may carry an extra muted row). On an engine older than that, the placement filter follows as one extra revision step and patternRuntimeMuted.sameRevision is false. A legacy rack lane with placements but no mixer track is still 400 unsupported_mix_field. Bus targets and routing need Pro.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane scoping the live session.
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
changes
object[]
required
min items 1; max items 64
changes[].bus_id
string
optional
max length 64
target=bus: the bus. target=lane: route the lane to this bus ('master').
changes[].bus_pan
number
optional
min -1; max 1
target=bus only: alias of pan.
changes[].gain
number
optional
min 0; max 4
changes[].lane_id
string
optional
max length 64
Lane id from listLanes / getEngineMix db_track_id ('backing' = the beat).
changes[].master_pan
number
optional
min -1; max 1
target=master only: alias of pan.
changes[].muted
boolean
optional
changes[].pan
number
optional
min -1; max 1
Lane pan (target lane), bus pan (target bus) or master pan (target master). Bus and master pan are live session state (not saved).
changes[].persist
boolean
optional
default true
Lane pan / master gain: false = live only (while sweeping).
changes[].soloed
boolean
optional
changes[].target
string
required
one of lane, master, bus
changes[].track_id
integer
optional
min 0
Engine track id (alternative to lane_id).
expected_mix_revision
integer
optional
min 0
mix_revision you read (getEngineMix mixRevision / ETag "mix-<n>"). If the live mix changed since, the write is refused (412 mix_revision_conflict, details.currentMixRevision) and nothing changes. Same as If-Match: "mix-<n>".
Long-poll: holds the request until Mozart's mix revision differs from if_none_match (or If-None-Match: "mix-<n>"), then answers the full mix exactly like getEngineMix; 304 (no body, same ETag) when wait_ms (<= 10000) passes unchanged. Any mix change counts, whoever made it: a Studio user's direct fader / mute / solo / routing moves, another agent, a session reload. Polls the engine every 250 ms without holding a database connection. At most 2 waits in flight per user and 32 per server (429 + Retry-After beyond); metered by the wait rate class, separate from the interactive bucket. 409 engine_update_required on an engine that predates mix revisions.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional take/clip/lane scoping the live session.
if_none_match
query
integer
optional
min 0
The mixRevision you hold (or send If-None-Match: "mix-<n>").
Session, transport, tracks, live clips (with clip ids), buses, history status, patterns, placements and the mix summary in one read (MCP get_pro_state, minus the action catalog: see listEngineActions). Tracks, clips and mix rows of deleted lanes / clips (e.g. an undone import a live session still held) and of hidden empty legacy lanes are left out, so the lists match listLanes / listClips.
The engine's loaded tracks/lanes (engine ids, db lane ids, labels, gain, pan, mute/solo, bus, clip_count) -- the list_tracks read, without tracks of deleted lanes / clips or hidden empty legacy lanes (see getEngineState).
curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/engine/tracks" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
EngineMixschema
Field
Type
Required
Constraints
Description
buses
object[]
optional
Per bus: bus_id, label, gain, pan (setBusPan), muted, soloed, and (engines with stereo tools) stereo_separation, polarity_inverted, swap_lr.
features
object
optional
Engine capabilities (only on engines that report them): stereo_tools = setLaneStereo / setBusStereo are supported; slot_mix = setLanePluginMix / setBusPluginMix are supported; export_formats = the containers exportMix can encode (e.g. ["wav", "flac", "mp3"]); stem_export = exportMix with stems:true (Split mixer tracks) is supported.
masterGain
number | null
optional
masterPan
number
optional
min -1; max 1
Master output pan (0 = center; setMasterPan). Live session state, re-centered on reload.
mixRevision
integer | null
optional
Mozart's mix revision (null on an engine that predates it). Send it back as If-Match: "mix-<n>" or expected_mix_revision on mix writes.
tracks
object[]
optional
Per lane: track_id, db_track_id (lane id / 'backing'), label, gain, pan, muted, soloed, bus_id, sends [{bus_id, level (linear 0-2), pre_fader}] (parallel aux sends; setLaneSend), and (engines with stereo tools) stereo_separation, polarity_inverted, swap_lr.
EngineMixApplyResultschema
Field
Type
Required
Constraints
Description
mixRevision
integer
optional
patternRuntimeMuted
object
optional
Present when the batch muted/soloed a pattern timeline lane.
patternRuntimeMuted.applied
boolean
optional
The engine took the filter.
patternRuntimeMuted.laneIds
string[]
optional
patternRuntimeMuted.placementIds
string[]
optional
Placements whose mute/solo rows were written.
patternRuntimeMuted.sameRevision
boolean
optional
true: the placement filter changed in the batch's own mix revision. false: an older engine applied it as one extra revision step (re-read the mix ETag).
response
object
optional
response.applied
integer
optional
response.mix_revision
integer
optional
response.pattern_runtime_muted_applied
boolean
optional
Present (true) when the batch also installed the pattern placement filter of the pattern lanes it muted/soloed.
response.previous_mix_revision
integer
optional
response.results
object[]
optional
response.undo_changes
object[]
optional
response.undo_changes[].bus_id
string
optional
max length 64
target=bus: the bus. target=lane: route the lane to this bus ('master').
response.undo_changes[].bus_pan
number
optional
min -1; max 1
target=bus only: alias of pan.
response.undo_changes[].gain
number
optional
min 0; max 4
response.undo_changes[].lane_id
string
optional
max length 64
Lane id from listLanes / getEngineMix db_track_id ('backing' = the beat).
response.undo_changes[].master_pan
number
optional
min -1; max 1
target=master only: alias of pan.
response.undo_changes[].muted
boolean
optional
response.undo_changes[].pan
number
optional
min -1; max 1
Lane pan (target lane), bus pan (target bus) or master pan (target master). Bus and master pan are live session state (not saved).
response.undo_changes[].persist
boolean
optional
default true
Lane pan / master gain: false = live only (while sweeping).
response.undo_changes[].soloed
boolean
optional
response.undo_changes[].target
string
required
one of lane, master, bus
response.undo_changes[].track_id
integer
optional
min 0
Engine track id (alternative to lane_id).
EngineStateschema
Each read is the engine's JSON; a read that failed is {unavailable: <reason>}.
Field
Type
Required
Constraints
Description
buses
object
optional
capabilityCount
integer
optional
capabilityFamilies
string[]
optional
clips
object
optional
history
object
optional
mix
object (EngineMix)
optional
mix.buses
object[]
optional
Per bus: bus_id, label, gain, pan (setBusPan), muted, soloed, and (engines with stereo tools) stereo_separation, polarity_inverted, swap_lr.
mix.features
object
optional
Engine capabilities (only on engines that report them): stereo_tools = setLaneStereo / setBusStereo are supported; slot_mix = setLanePluginMix / setBusPluginMix are supported; export_formats = the containers exportMix can encode (e.g. ["wav", "flac", "mp3"]); stem_export = exportMix with stems:true (Split mixer tracks) is supported.
mix.masterGain
number | null
optional
mix.masterPan
number
optional
min -1; max 1
Master output pan (0 = center; setMasterPan). Live session state, re-centered on reload.
mix.mixRevision
integer | null
optional
Mozart's mix revision (null on an engine that predates it). Send it back as If-Match: "mix-<n>" or expected_mix_revision on mix writes.
mix.tracks
object[]
optional
Per lane: track_id, db_track_id (lane id / 'backing'), label, gain, pan, muted, soloed, bus_id, sends [{bus_id, level (linear 0-2), pre_fader}] (parallel aux sends; setLaneSend), and (engines with stereo tools) stereo_separation, polarity_inverted, swap_lr.
The Studio undo log (Studio-recorded edits, with before/after state) and its cursor status (get_history + get_history_status). API edits are not logged here.
Move the Studio undo log's cursor forward once and return the entry (history_redo); the caller applies the entry's after state. Send an Idempotency-Key.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional live-session scope.
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Move the Studio undo log's cursor back once and return the entry (history_undo). The log holds Studio-recorded edits only, and the CALLER applies the returned entry's before state (the engine does not); API edits are not in it -- undo those with the undo objects they return. Send an Idempotency-Key so a retry never steps twice.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional live-session scope.
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
canUndo / canRedo / cursor as the engine reports them.
Instruments
The instrument catalog and instrument lanes created from it.
GET/api/v1/instruments/catalog
List the instrument catalog
Operation
listInstrumentCatalog
Scope
daw:read
Project role
not pre-checked
Rate class
interactive
Behaviour
paginated
Every instrument generator by catalog id, with its engine segment, captured patch catalog (LABS, Omnisphere, Splice INSTRUMENT, Xpand!2) and whether createInstrumentLane accepts it. With project_id (editor), availability is checked on that project's engine host. Enterprise organization members only see free instruments (free=true).
Parameters
Parameter
In
Type
Required
Constraints
Description
q
query
string
optional
max length 64
Substring of the id or name.
project_id
query
string
optional
max length 64
Check host availability on this project's engine (editor role).
Create an instrument lane with a catalog instrument loaded and persisted, exactly like the Studio's instrument flow (execute_pro_action add_instrument_track with the instrument forced). preset names a patch from its captured catalog; role (and articulation) pick one by role instead. No audition renders and no notes: add musical content with the MIDI / pattern endpoints.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
articulation
string
optional
one of sustained, short
instrument_id
string
required
min length 1; max length 64
A creatable id from GET /instruments/catalog.
name
string
optional
max length 80
preset
string
optional
max length 200
role
string
optional
one of bass_guitar, rhythm_guitar_sustained, rhythm_guitar_short, lead_guitar, organ, piano, keys, pad, strings, synth_lead, synth_bass, 808
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Swap the instrument (generator) of an existing instrument lane in place, exactly like the Studio's Sound Library replace: the new instrument is loaded and saved first, then the old one is removed; a failed load leaves the lane as it was. The lane (id, name, color, row), its patterns, notes and pattern clips, its insert effects (EQ, effects), sends, fader, pan and mute/solo are kept; pattern channels keep playing the lane. instrument_id is a creatable id from GET /instruments/catalog (same plan rules as createInstrumentLane). preset names a patch from the new instrument's captured catalog (LABS without one gets its Soft Piano, like createInstrumentLane). The response names the previous instrument and an `undo` request (the previous instrument id plus its exact saved state as a signed restore_state): sending it puts the previous instrument back with its sound. Same instrument with no preset and no restore_state: 200 replaced:false, nothing changes. If-Match = the timeline revision; the answer carries the new one.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
Request body application/json
Field
Type
Required
Constraints
Description
instrument_id
string
required
min length 1; max length 64
A creatable id from GET /instruments/catalog.
preset
string
optional
max length 200
restore_state
object
optional
restore_state.signature
string
required
max length 128
undoState.signature.
restore_state.state_base64
string
required
min length 1
undoState.state_base64 of an earlier replacement.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Free to use. Enterprise organization members only see and create free instruments.
instrument.id
string
required
Catalog id (the engine generator type id). Opaque.
instrument.name
string
required
instrument.patchCatalog
string | null
optional
Captured patch catalog (patches by name).
instrument.segment
string | null
optional
Engine load route segment.
laneId
string
required
ok
boolean
required
pluginIndex
integer
required
The new instrument's listLanePlugins slot index (0: an instrument lane's generator always sits first).
presetApplied
string | null
optional
previousInstrument
object (CatalogInstrument) | null
required
The instrument the lane played before (null: it had none saved).
previousPreset
string | null
optional
replaced
boolean
required
false when the lane already played this instrument and nothing (preset / restore_state) was asked: no write.
stateRestored
boolean
optional
timelineRevision
string | null
required
undo
object | null
required
Send as is (with If-Match = this timelineRevision) to put the previous instrument back with its exact saved state (body.restore_state; when the previous instrument had saved no state yet, its patch by name). null when nothing changed or the lane had no saved instrument.
curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/markers" \
-H "Authorization: Bearer $FREESTYLE_TOKEN"
PUT/api/v1/projects/{project_id}/markers
Replace the project's markers
Operation
setMarkers
Scope
daw:write
Project role
editor
Rate class
interactive
Behaviour
Idempotency-KeyIf-Match
Replaces the whole list (create, move, rename and delete are edits of it) at If-Match (or expected_revision) = the revision you read; 412 markers_revision_conflict (details.current = the current list) if it moved. At most 512 markers; ids unique; a loop marker has end_tick > tick. Returns the new revision (ETag) and undo = the previous list.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
The lane's EQ as typed bands (band, enabled, type, type_index, frequency_hz, gain_db, q): eq is the lane EQ stage (setLaneEqBand without plugin_index, MCP set_track_eq_band); inserts are the native EQ plug-ins on its chain (e.g. the default EQ; setLaneEqBand with plugin_index); racks are native Effects racks' EQ stage. Read from the live engine; a lane that is not in the live session is answered from its saved state (live=false). Band types: bell, proportional_q, vintage_bell, band_shelf, low_shelf, resonant_low_shelf, vintage_low_shelf, high_shelf, resonant_high_shelf, vintage_high_shelf, low_pass, resonant_low_pass, high_pass, resonant_high_pass, baxandall_bass, baxandall_treble.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Write one band (0-7) of the lane's EQ in typed units: enabled, type, frequency_hz (20-20000), gain_db (-18..18), q (0.1-18). Without plugin_index it writes the lane EQ stage (MCP set_track_eq_band); with plugin_index it writes that native EQ plug-in slot (native-eq or native-effects; MCP set_lane_plugin_eq_band), and expected_plugin_instance_id / expected_plugin_type pin the slot: a mismatch is 409 plugin_instance_mismatch with the slot's current identity and nothing is written. persist=false writes the engine only (a drag tick). Band types: bell, proportional_q, vintage_bell, band_shelf, low_shelf, resonant_low_shelf, vintage_low_shelf, high_shelf, resonant_high_shelf, vintage_high_shelf, low_pass, resonant_low_pass, high_pass, resonant_high_pass, baxandall_bass, baxandall_treble. Out-of-range values are 400 invalid_argument (never clamped).
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
band
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
enabled
boolean
required
expected_plugin_instance_id
string
optional
max length 128
expected_plugin_type
string
optional
max length 64
frequency_hz
number
required
min 20.0; max 20000.0
gain_db
number
required
min -18.0; max 18.0
persist
boolean
optional
default true
false = engine only (a drag tick); send the final value with true.
plugin_index
integer
optional
min 0; max 64
A native EQ slot from listLanePlugins / getLaneEq inserts.
q
number
required
min 0.1; max 18.0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
The pattern row's EQ as typed bands (band, enabled, type, type_index, frequency_hz, gain_db, q), read from the live engine; outside a live session, from the saved row (live=false). Band types: bell, proportional_q, vintage_bell, band_shelf, low_shelf, resonant_low_shelf, vintage_low_shelf, high_shelf, resonant_high_shelf, vintage_high_shelf, low_pass, resonant_low_pass, high_pass, resonant_high_pass, baxandall_bass, baxandall_treble.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
placement_id
path
string
required
max length 128
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Write one band (0-7) of a pattern row's EQ in typed units (enabled, type, frequency_hz, gain_db, q; MCP set_pattern_eq_band). The engine mirrors it across the pattern's placements and instrument lanes. Band types: bell, proportional_q, vintage_bell, band_shelf, low_shelf, resonant_low_shelf, vintage_low_shelf, high_shelf, resonant_high_shelf, vintage_high_shelf, low_pass, resonant_low_pass, high_pass, resonant_high_pass, baxandall_bass, baxandall_treble.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
placement_id
path
string
required
max length 128
band
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
enabled
boolean
required
frequency_hz
number
required
min 20.0; max 20000.0
gain_db
number
required
min -18.0; max 18.0
persist
boolean
optional
default true
false = engine only (a drag tick); send the final value with true.
q
number
required
min 0.1; max 18.0
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
The plug-in catalog (catalog ids, kinds, formats, presets, host availability), adding and removing plug-ins by catalog id, and plug-in parameter discovery.
GET/api/v1/plugins/catalog
List the plug-in catalog
Operation
listPluginCatalog
Scope
daw:read
Project role
not pre-checked
Rate class
interactive
Behaviour
paginated
Every plug-in a lane or bus can host, by catalog id: kind (effect / instrument), format (vst3 / native), category and preset catalog. With project_id (editor), instrument availability is checked on that project's engine host; native effects are always available and hosted effects report installed=null (the engine has no probe for them). hasEditor is false for native effects (no editor window; openPluginEditor answers 409 editor_not_available). include_presets=true inlines the named presets of plug-ins that have a preset catalog. Enterprise organization members only see free plug-ins (free=true).
Parameters
Parameter
In
Type
Required
Constraints
Description
kind
query
string
optional
one of effect, instrument
format
query
string
optional
one of vst3, native
q
query
string
optional
max length 64
Substring of the id, name or category.
project_id
query
string
optional
max length 64
Check host availability on this project's engine (editor role).
Append (or, with position, insert) a hosted (vst3) effect, named by catalog id, to a bus chain through the Pro catalog's load_bus_plugin. bus_id 'master' is the MASTER INSERT CHAIN: it processes the final mix (every lane, bus and the beat), before the master fader / pan and the output limiter, live and in exports (/render/share); the engine saves it itself (persisted, restored on every session load, copied with the project). Native effects and instruments are not bus plug-ins. Host file paths are refused. LIMITATION: the engine has no add-by-catalog-id route for buses (lanes use /plugins/chain/add), so a bus load names the catalog's bundle on the host: the plug-in must be installed at its catalog location on the project's engine host. When the host reports it missing (or the catalog has no bundle for it) the answer is 409 plugin_not_installed_on_host; host paths are never echoed. Undo of a delete: send the delete's removed.restore.addBusPlugin body (state + state_signature, bypassed, position, instance_id). Remove one with deleteBusPlugin; list the live chain with listBusPlugins.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
bypassed
boolean
optional
Create it bypassed.
instance_id
string
optional
max length 64; pattern ^[A-Za-z0-9_-]{8,64}$
Re-use this instance id (undo of a delete). Minted when omitted.
plugin_id
string
required
min length 1; max length 64
A catalog id from GET /plugins/catalog. Host file paths are refused.
position
integer
optional
min 0; max 64
0-based slot to insert at; omitted or past the end = append.
state
string
optional
max length 4194304
Opaque saved state (base64) from a bus delete's removed.restore.state; accepted only with its state_signature.
state_signature
string
optional
max length 128
removed.restore.stateSignature from that delete.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
The bus counterpart of listLanePluginParameters (normalized 0..1 values, the unit setBusPluginParameter takes). Paginated; the slot summary is in plugin.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
bus_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Append a plug-in, named by catalog id, to the lane's chain: the Studio's own add (the engine loads its template, stamps an instance id and persists the chain row). Effects only (instruments: POST /projects/{project_id}/instrument-lanes); vocal suites (Nectar, AutoTune) are refused on instrument lanes. Host file paths are refused.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
bypassed
boolean
optional
Create it bypassed.
instance_id
string
optional
max length 64; pattern ^[A-Za-z0-9_-]{8,64}$
Re-use this instance id (undo of a delete keeps automation and history references resolving), including a lane default's fixed id (native_eq_default). 409 plugin_instance_exists when the lane already has it.
parameters
object
optional
Hosted plug-ins: host parameter values (index -> normalized 0..1) to re-apply after the state, from a delete's removed.restore.parameters.
plugin_id
string
required
min length 1; max length 64
A catalog id from GET /plugins/catalog. Host file paths are refused.
plugin_index
integer
optional
min 0; max 64
Alias of position.
position
integer
optional
min 0; max 64
0-based slot to insert at (alias plugin_index); the plug-ins from that slot on move down one. Omitted or past the end = append.
preset
string
optional
max length 200
Initial named preset.
state
string
optional
max length 4194304
Opaque saved state (base64) from a delete's removed.restore.state: the plug-in comes back with exactly those settings instead of its defaults. A hosted plug-in's state is accepted only with the state_signature the same delete returned (400 restore_state_invalid otherwise); a native effect's state is checked structurally.
state_signature
string
optional
max length 128
removed.restore.stateSignature from the delete that returned this state.
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Remove one plug-in instance by its instance id (listLanePlugins instance_id, or get_project lanes[].pluginChain[].pluginKey). The live slot is unloaded when it is live and the saved-chain row (what get_project shows and a reload restores) is removed in the same operation; a saved row whose plug-in is not live is removed from the saved chain alone. 409 plugin_instance_not_found when the lane has the instance neither live nor saved. DELETE is the confirmation.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
instance_id
path
string
required
max length 128
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Remove the plug-in in one slot. The slot's instance id is read from the live chain in the same request and the removal targets that instance, so a stale index never removes another plug-in. expected_plugin_type pins the slot's catalog id too (412 precondition_failed on a mismatch). DELETE is the confirmation.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
expected_plugin_type
query
string
optional
max length 64
Catalog id the slot must hold.
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Every parameter of one lane slot with a host-stable id, name, unit, range (normalized 0..1, the unit setLanePluginParameter's value_norm takes; native slots add their physical range rawMin/rawMax/rawDefault, step, physicalValue and physicalDefault), step count when known, default and current value (normalized), and writeForms: the body fields the setter accepts (native: value_norm or value; hosted: value_norm). Read live from the engine the way MCP get_plugin_state does. Paginated; the slot summary is in plugin. A native EQ slot (parameterCount 0: its state is the curve) adds its typed bands as eq (same shape as getLaneEq). plugin.stateHash is only computed with include_state_hash=true (serialising a large plug-in's state is most of this read's cost). The first page reads the whole parameter set once; the following pages (cursor) of the same read are served from that snapshot for up to 15 s, so a paginated read is one consistent snapshot and costs one engine read.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
track_id
query
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
include_state_hash
query
boolean
optional
default false
Also hash the plug-in's state (plugin.stateHash); slower on large plug-ins.
Move the plug-in in one slot to to_index in the lane's chain: the Studio's drag reorder (Mozart /plugins/chain/{instance}/move). A slot's index IS its processing order, so this changes the sound; the engine renumbers every saved row's chain position from its new order, so the lane reopens in that order. The slot's instance id is read from the live chain in the same request and the move targets that instance, so a stale index never moves another plug-in; expected_plugin_type / expected_plugin_instance_id pin the slot too (412 precondition_failed on a mismatch). An instrument lane's generator stays ahead of its effects.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
lane_id
path
string
required
max length 128
plugin_index
path
integer
required
min 0; max 64
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
expected_plugin_instance_id
string
optional
max length 128
Instance id the slot must hold (412 otherwise).
expected_plugin_type
string
optional
max length 64
Catalog id the slot must hold (412 otherwise).
to_index
integer
required
min 0; max 64
track_id
string
optional
max length 64
Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Free to use (native effects and free plug-ins). Enterprise organization members only see and add free plug-ins.
hasEditor
boolean
required
Whether the plug-in has an editor window (openPluginEditor / getPluginEditorFrame). false for native effects: those answer 409 editor_not_available; use their parameters.
The engine's shape index (type position in the enum).
PluginParameterschema
Field
Type
Required
Constraints
Description
automatable
boolean
optional
default
number | null
optional
display
string | null
optional
id
string
required
Host-stable parameter id (index:N when the host has none).
index
integer
required
meta
boolean
optional
name
string
required
physicalDefault
number | null
optional
physicalValue
number | null
optional
Native slots: current value in `unit`.
range
object
required
range.max
number
optional
range.min
number
optional
range.normalized
boolean
optional
range.rawDefault
number | null
optional
range.rawMax
number | null
optional
range.rawMin
number | null
optional
step
number | null
optional
Native slots: physical step.
steps
integer | null
optional
unit
string | null
optional
value
number | null
required
writeForms
string[]
required
Body fields setLanePluginParameter accepts for this parameter.
PluginRestoreStateschema
Field
Type
Required
Constraints
Description
addLanePlugin
object
optional
Ready-to-send addLanePlugin body that undoes the delete.
addLanePlugin.bypassed
boolean
optional
addLanePlugin.instance_id
string
optional
addLanePlugin.parameters
object
optional
addLanePlugin.plugin_id
string
optional
addLanePlugin.position
integer
optional
addLanePlugin.state
string
optional
addLanePlugin.state_signature
string
optional
bypassed
boolean
required
instanceId
string
required
The deleted instance id (send it back as instance_id to keep automation / history references resolving).
name
string | null
optional
native
boolean
optional
parameters
object
optional
Hosted plug-ins: every host parameter (index -> normalized value) read from the running plug-in just before the delete. Some plug-ins keep a host-set parameter out of their state chunk; addLanePlugin parameters replays them after the chunk.
position
integer | null
optional
min 0
0-based chain slot it held.
preset
string | null
optional
state
string | null
optional
max length 4194304
Opaque saved state, base64 (null when the plug-in had none, or it exceeds 4 MiB: see stateOmitted).
stateEncoding
string | null
optional
one of base64, None
stateFormat
string | null
optional
one of plugin_chunk, native_json, None
stateOmitted
string
optional
one of too_large
stateSignature
string
optional
max length 128
Our signature over typeId + state: send it back as addLanePlugin state_signature with this exact state.
stateSource
string | null
optional
one of live, saved, None
live = read from the running plug-in just before the delete; saved = the saved chain row.
typeId
string | null
optional
Recording
Start, finalize and inspect a live recording take on the engine.
GET/api/v1/projects/{project_id}/recording
Get recording status
Operation
getRecordingStatus
Scope
daw:read
Project role
viewer
Rate class
interactive
Whether the engine is recording or armed (counting in), where the take started and the count-in beats left, read from the engine clock (/transport/clock), the same state the Studio's record button follows. This is a recording view of the clock, not the clock: for the full transport clock (loop, metronome, position) call getTransportClock. Keepalive: the engine holds a startRecording arm for 60 s after the caller's last sign of life (startRecording, a fresh keepalive on the caller's live-ingest uplink, or this status read with a daw:write token), and never longer than the 20 minute take limit.
End the caller's own recording arm and, with take_id, save the take recorded on the caller's live-ingest uplink as a clip of the project (finalize_recording; destructive in the catalog, so confirm=true is required). Send {type:'take_stop', take_id, song_end_sec} on the uplink's data channel first (finalize may be sent right after it: a finalize that arrives before the engine processed take_stop waits for it). response: saved, state, track_id (the new clip), lane_id, start_ms, duration_sec, engine_disarmed. The take is scanned and promoted as the calling user exactly like a Studio take; only a take the calling user recorded can be saved (403 recording_take_owner_mismatch). wait_for='placed' (recommended for UIs): the call answers 200 as soon as the take is captured and its clip is on the lane, usually about a second after take_stop, with saved=false, state='saving' and the clip's final track_id / lane_id / start_ms / duration_sec (in_engine=true: it already plays in the engine). The malware scan and store (about 10 s) finish in the background; call finalizeRecording again with the same take_id to learn the outcome: saved=true (state='saved') or a final 422 recording_take_rejected (the clip is then removed). wait_for='saved' (default, the original contract): a 200 means the take is fully saved (scanned and stored); that can take longer than one call waits. Each call waits up to wait_ms (default 8000, max 10000), then answers 409 recording_take_pending: the expected 'still saving' signal, not an error. Show the take as saving and call again with the same take_id (idempotent). 404 recording_take_not_found. Final, do not retry: 422 recording_take_silent (the take held no audio; nothing saved) and 422 recording_take_rejected (refused by the media scan, superseded by a newer take on its lane, access revoked, or its save failed); record again with a new take_id. The caller's own arm always ends here; a take a browser or live-room member armed or joined keeps recording for them (engine_disarmed=false) and they can stop it. Without take_id only the arm is ended.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional live-session scope.
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
confirm
query
boolean
optional
default false
Must be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.
Request body application/json
Field
Type
Required
Constraints
Description
confirm
boolean
optional
take_id
string
optional
min length 1; max length 96; pattern ^[A-Za-z0-9_-]{1,96}$
The take_id sent in take_start on the live-ingest uplink.
wait_for
string
optional
default "saved"; one of saved, placed
placed: answer once the clip is on its lane (saved=false, state='saving'); saved: answer once the take is stored.
Error codes specific to this operation: confirmation_required, recording_take_not_found, recording_take_owner_mismatch, recording_take_pending, recording_take_rejected, recording_take_silent. Every operation can also answer the common codes.
Arm the engine and start a take as the calling user (start_recording). The take's audio is the client's own live-ingest microphone uplink (sendLiveIngestOffer: WebRTC, client -> Mozart directly; pass lane_id there to pick the record lane); no audio ever passes through this API. Sequence: (1) sendLiveIngestOffer with the microphone track and the negotiated data channel (id 200, label mozart-live-ingest); send {type:'keepalive', id} on it every 5 s; (2) startRecording; (3) on the data channel send response.audio.take_start plus your own take_id ([A-Za-z0-9_-], <= 96, no '__', single-use: a reused id is refused with take_refused take_id_in_use): {type:'take_start', take_id, mode:'record', song_start_sec, lane_id?} (lane_id here, a lane of this project or 404, is echoed into it; default = the user's own vocal lane); (4) {type:'take_stop', take_id, song_end_sec} when done (song_end_sec = song_start_sec + the take's length in seconds; it bounds the saved clip); (5) finalizeRecording(take_id, wait_for='placed'): the clip is on the lane in about a second, then it is scanned and promoted as the calling user exactly like a Studio take. Existing clips on the lane are kept: an API take on a normal project only adds its clip. In a live room / Endless session the room's one-take-per-lane rule applies (the take replaces the earlier takes on its lane at take_start). The take is placed on the song timeline from song_start_sec. Like Record in any DAW, a take_start (mode 'record', engine_mode true or false) on a STOPPED transport rolls the transport from song_start_sec (take_started.started_transport=true); send sync song_sec from the engine clock as it moves. A take whose song clock still never moved (every sync at the same song_sec) is saved whole from song_start_sec, never cut to the last seconds. count_in_beats with start_transport=true rolls it on the count-in boundary instead. See /docs/realtime.html#recording-takes. A failed start stops a transport it started (start_transport) and parks the playhead back. Count-in: count_in_beats (1-8) is the Studio's count-in (Mozart /transport/record-arm, wait=true): the metronome clicks that many beats and the reply returns AT the recording boundary with response.count_in {beats, beat_samples, bpm, first_click_sample, recording_start_sample, recording_start_position_seconds, audio_device_sample, sample_rate, transport_started, ...} (also response.count_in_beat_samples / count_in_bpm, the legacy names). Samples are on the engine's audio-device clock: last click -> boundary = one beat. seek_seconds parks a stopped transport there first, start_transport=true rolls it on the boundary, bpm (20-400) is the count-in tempo. 0 or absent = armed at once. While anybody (a browser, a live room, another API client) records on the engine the start is 409 recording_in_progress and that take is untouched. Keepalive: the engine keeps the arm while the uplink's data-channel keepalive is fresh or the caller polls getRecordingStatus, drops it 60 s after the last sign of life and never holds it longer than the 20 minute take limit. finalizeRecording ends the arm (response.engine_disarmed) but never a take a browser or live-room member armed or joined. 409 engine_update_required: the engine host does not support API recording yet.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
scope_track_id
query
string
optional
max length 64
Optional live-session scope.
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
bpm
number
optional
min 20; max 400
With count_in_beats: the count-in tempo.
count_in_beats
integer
optional
default 0; min 0; max 8
Metronome count-in beats before the take.
lane_id
string
optional
max length 64
seek_seconds
number
optional
min 0
With count_in_beats: park the stopped transport here first.
start_transport
boolean
optional
default false
With count_in_beats: roll the transport on the boundary.
Separate one audio clip (clip_id = its id; 'backing' = the project's backing slot) into stems on the GPU -- the Studio clip menu's Extract stems, deterministic. mode: vocals (vocals + instrumental), four_stems (vocals, drums, bass, other), instruments (vocals, drums, bass, guitar, piano, other), drums (kit pieces kick, snare, toms, hh, ride, crash; on audio that is not already a drum stem it runs as drums_full and also returns vocals, bass, other). Each stem lands as a new lane aligned to the source clip (same start, trim, gain, loop repeats). replace=true (default) mutes the source when the stems land, so the mix sounds the same; replace=false lands the stem lanes muted. Answers 202 with a job (jobId, Location = getStemJob). A backing that was split before answers at once with the finished job (status done, cached=true): 201 when it created the stem lanes, 200 with deduplicated=true when the project still has every stem lane of an earlier split of that backing (nothing new is created; once one of those lanes was deleted, a repeat creates the stem lanes again). One split runs per project at a time (409 while one is processing). Send an Idempotency-Key: a retry never starts a second split. Metered like the Studio: the per-user stem.5min / stem.hour / stem.day buckets (refunded when no GPU job was queued) plus the project track limit (429 project_track_limit). 503 stem_extraction_disabled where no separator runs.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
clip_id
path
string
required
max length 128
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
Request body application/json
Field
Type
Required
Constraints
Description
mode
string
required
one of vocals, four_stems, instruments, drums
replace
boolean
optional
default true
Responses
Status
Meaning
Body
Headers
200
Cached backing split the project still has in full (deduplicated=true): the earlier job, nothing created.
Poll a splitClipStems job (every ~10 s; Retry-After while processing). A pure read: it never loads, acknowledges or mutes anything. status done lists every created lane (laneId, stem, name, clipIds) and what the job muted (sourceMuted), with undo = the one undoStemJob call that removes them. The job stays readable after the Studio acknowledges it (status undone once undone); a failed job stays readable (status failed) after newer splits. 404 stem_job_not_found for an unknown id.
Remove exactly what one finished split created: soft-delete its clips and lanes (a lane you have since put other audio on is kept, minus the job's clips; the rows they leave close like deleteLane) and restore the source clip mute it set (only where that mute is still in place; a lane mute set since is kept). When the project is open in a live engine session the lanes are dropped and the source clip un-muted there at once (liveEngine; a backing un-mute needs engine:reload, engine_reload_required says so). Idempotent: a second undo answers alreadyUndone. If-Match takes the timeline revision; the response ETag is the new one. 409 stem_job_running while the job is processing, 409 nothing_to_undo for a failed job.
Parameters
Parameter
In
Type
Required
Constraints
Description
project_id
path
string
required
max length 128
job_id
path
string
required
pattern ^[a-f0-9]{32}$
Idempotency-Key
header
string
optional
min length 8; max length 128
Makes a retry safe: the stored response is replayed for 24 h.
If-Match
header
string
optional
ETag from a previous read; 412 if the resource changed since.
splitClipStems only: the backing was split before, so the lanes were created at once (no GPU job).
deduplicated
boolean
optional
splitClipStems only (200): the project still has every stem lane of an earlier split of this backing; the answer is that job and nothing new was created.
elapsedSec
integer
optional
min 0
error
string
optional
etaSec
integer
optional
min 0
expectedStems
string[]
optional
jobId
string
required
pattern ^[a-f0-9]{32}$
lanes
object (StemLane)[]
optional
done / undone: every lane the job created, in stem order.
mode
string | null
optional
one of vocals, four_stems, instruments, drums, drums_full, None
The mode that ran: drums on a full mix runs as drums_full (Demucs, then DrumSep on its drum stem).
projectId
string
required
reload
object
optional
done: a headless live session plays the new lanes after this reload (an open Studio loads them by itself).
reload.hint
string
optional
reload.method
string
required
one of POST
reload.path
string
required
replace
boolean
optional
requestedMode
string
optional
one of vocals, four_stems, instruments, drums
splitClipStems only: the mode you asked for.
retryAfterSec
integer
optional
min 1
sourceClipId
string
optional
The split clip, or 'backing'.
sourceMuted
object
optional
sourceMuted.backing
boolean
required
sourceMuted.clipIds
string[]
required
startedAt
string | null
optional
format date-time
status
string
required
one of processing, failed, done, undone
processing: on the GPU (poll); failed: nothing was created; done: the stem lanes exist; undone: undoStemJob removed them.
statusUrl
string
optional
getStemJob for this job (also the Location header of splitClipStems).
undo
object
optional
done: the ONE call that removes exactly what this job created (undoStemJob).
Result of one live-engine action (Pro catalog): the engine response plus a one-line summary; projectChanged/changeId when open Studios were told.
Field
Type
Required
Constraints
Description
action
string
optional
The Pro catalog action that ran.
family
string
optional
Catalog family (mixer, timeline, patterns, ...).
mixRevision
integer
optional
Mix writes: the mix revision after the write (also the ETag "mix-<n>").
mutated
boolean
optional
Whether the action changed project / engine state.
projectUrl
string
optional
resolvedArgs
object
optional
The arguments as the catalog validated and resolved them (ids, defaults).
response
object
optional
The engine's own JSON reply. Mix writes carry mix_revision. Lane mute/solo (setLaneMute / setLaneSolo) answer {ok, laneId, laneName, laneKind (audio | pattern | backing), field, before, after, engineApplied, trackIds? (audio clips written), placementIds? (pattern placements written), mozartTrackId?, mix_revision?, summary}; engineApplied=false means the saved rows changed but the live engine did not take it (the next session load plays it).
risk
string
optional
Catalog risk class (read, reversible, destructive).
summary
string
optional
tool
string
optional
The MCP tool it ran through (execute_pro_action).
Errorschema
Field
Type
Required
Constraints
Description
error
object
required
error.code
string
required
Stable machine-readable reason.
error.details
object
optional
error.engineStatus
integer
optional
Mozart's HTTP status when known.
error.message
string
required
Human sentence; do not parse.
error.requestId
string
optional
error.stage
string
required
one of auth, validation, precondition, rate_limit, engine_dispatch, engine, internal