FreestyleDevelopers Open the app

Studio API reference

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.

All operations

MethodPathSummaryGroupScopeRoleRate
GET/api/v1/projectsList projectsProjectsprojects:list—interactive
GET/api/v1/projects/{project_id}Get a projectProjectsprojects:readviewerinteractive
POST/api/v1/projects/{project_id}/key-analysisDetect the key of the backing or a takeProjectsprojects:writeeditorinteractive
GET/api/v1/projects/{project_id}/key-analysis/{job_id}Poll a key analysisProjectsprojects:readeditorinteractive
POST/api/v1/projectsCreate a projectProject lifecycleprojects:write—interactive
PATCH/api/v1/projects/{project_id}Update a project (title, key, scale)Project lifecycleprojects:writeeditorinteractive
DELETE/api/v1/projects/{project_id}Delete a projectProject lifecycleprojects:writeownerinteractive
POST/api/v1/projects/{project_id}/collaboratorsInvite a collaboratorProject lifecycleprojects:writeownerinteractive
DELETE/api/v1/projects/{project_id}/collaborators/{user}Remove a collaboratorProject lifecycleprojects:writeownerinteractive
PUT/api/v1/projects/{project_id}/collaborators/{user}/roleChange a collaborator's roleProject lifecycleprojects:writeownerinteractive
GET/api/v1/projects/{project_id}/savesList project savesProject lifecycleprojects:readviewerinteractive
POST/api/v1/projects/{project_id}/savesCreate a project saveProject lifecycleprojects:writeeditorinteractive
POST/api/v1/projects/{project_id}/saves/{save_id}:restoreRestore a project saveProject lifecycleprojects:writeeditorinteractive
GET/api/v1/projects/{project_id}/shareGet share settingsProject lifecycleprojects:readviewerinteractive
PATCH/api/v1/projects/{project_id}/shareUpdate visibility / default roleProject lifecycleprojects:writeownerinteractive
POST/api/v1/projects/{project_id}/share:resetLinkReset the share linkProject lifecycleprojects:writeownerinteractive
POST/api/v1/projects/{project_id}:duplicateDuplicate a projectProject lifecycleprojects:writeviewerinteractive
GET/api/v1/projects/{project_id}/lanesList lanesLanesprojects:readviewerinteractive
POST/api/v1/projects/{project_id}/lanesCreate an empty laneLane managementprojects:writeeditorinteractive
PATCH/api/v1/projects/{project_id}/lanes/{lane_id}Rename / recolor / mix a laneLane managementprojects:writeeditorinteractive
DELETE/api/v1/projects/{project_id}/lanes/{lane_id}Delete a laneLane managementprojects:writeeditorinteractive
POST/api/v1/projects/{project_id}/lanes/{lane_id}:duplicateDuplicate a laneLane managementprojects:writeeditorinteractive
POST/api/v1/projects/{project_id}/lanes/{lane_id}:restoreRestore a deleted laneLane managementprojects:writeeditorinteractive
POST/api/v1/projects/{project_id}/lanes:fromLatestVocalNew vocal lane with the latest vocal chainLane managementprojects:writeeditorinteractive
POST/api/v1/projects/{project_id}/lanes:reorderReorder lanesLane managementprojects:writeeditorinteractive
GET/api/v1/projects/{project_id}/clipsList clipsClipsprojects:readviewerinteractive
PUT/api/v1/projects/{project_id}/clips/{clip_id}/fadesSet one clip's fade-in and fade-outClipsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/clips/{clip_id}/gainSet one clip's gainClipsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/clips/{clip_id}/muteMute or unmute one clipClipsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/clips/{clip_id}/takeChoose the audible take of a stackClipsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/clips/{clip_id}/waveformGet a clip waveformClipsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/clips/{clip_id}:move-to-laneMove a clip to another laneClipsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/clips:batchApply an atomic clip batchClipsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/take-groupsStack clips as takes of one laneClipsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/time-range-editsEdit a time range across lanesClipsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/clips/{clip_id}/sample-editsEdit clip samples (pencil)Sample editsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/clips/{clip_id}/sample-edits:undoUndo the last sample editSample editsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/clips/{clip_id}/region-effects:applyApply an effect to a regionRegion effectsdaw:writeeditorai
POST/api/v1/projects/{project_id}/clips/{clip_id}/region-effects:previewPreview an effect on a regionRegion effectsdaw:readviewerai
GET/api/v1/projects/{project_id}/region-effect-jobs/{job_id}Get a region effect jobRegion effectsdaw:readviewerinteractive
GET/api/v1/region-effectsList region effectsRegion effectsdaw:read—interactive
GET/api/v1/library/assetsList my Sound LibraryMedialibrary:read—interactive
POST/api/v1/media/uploadUpload an audio fileMediamedia:upload—interactive
POST/api/v1/projects/{project_id}/audio:fromUrlAdd audio from a URLMediamedia:uploadeditorinteractive
POST/api/v1/projects/{project_id}/clips/{clip_id}:attachToSessionAttach a stored clip to the live sessionMediadaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/daw-import/uploadReplace a project's contents with a DAW project fileMediamedia:uploadeditorinteractive
GET/api/v1/projects/{project_id}/transportGet transport statusTransportdaw:readviewerinteractive
GET/api/v1/projects/{project_id}/transport/clockGet the transport clockTransportdaw:readviewerinteractive
PUT/api/v1/projects/{project_id}/transport/loopEnable / disable the transport loopTransportdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/transport/pausePause playbackTransportdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/transport/playStart playback (optionally after a count-in)Transportdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/transport/play-rangePlay a range onceTransportdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/transport/seekMove the playheadTransportdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/gainSet a lane faderMixerdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/muteMute / unmute a laneMixerdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/panPan a laneMixerdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/soloSolo / unsolo a laneMixerdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/stereoSet a lane's stereo toolsMixerdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/master/gainSet the master output faderMixerdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/master/panPan the master outputMixerdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/busesList busesBusesdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/busesCreate a busBusesdaw:writeeditorinteractive
PATCH/api/v1/projects/{project_id}/buses/{bus_id}Update a busBusesdaw:writeeditorinteractive
DELETE/api/v1/projects/{project_id}/buses/{bus_id}Delete a busBusesdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/buses/{bus_id}/gainSet a bus fader (live)Busesdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/buses/{bus_id}/muteMute / unmute a bus (live)Busesdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/buses/{bus_id}/panPan a bus (live)Busesdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/buses/{bus_id}/plugin-stateSaved plugin state of a busBusesdaw:readviewerinteractive
PUT/api/v1/projects/{project_id}/buses/{bus_id}/plugin-stateSave one bus plugin's stateBusesdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/buses/{bus_id}/soloSolo / unsolo a bus (live)Busesdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/buses/{bus_id}/stereoSet a bus's stereo tools (live)Busesdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/routingRoute a lane to a busBusesprojects:writeeditorinteractive
GET/api/v1/projects/{project_id}/lanes/{lane_id}/sendsList a lane's aux sendsBusesdaw:readviewerinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/sends/{bus_id}Create or update a lane aux sendBusesdaw:writeeditorinteractive
DELETE/api/v1/projects/{project_id}/lanes/{lane_id}/sends/{bus_id}Remove a lane aux sendBusesdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/buses/{bus_id}/pluginsList a bus's live plugin chain (master included)Pluginsdaw:readeditorinteractive
DELETE/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}Remove a bus pluginPluginsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/bypassBypass / re-enable a bus pluginPluginsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editorPlugin editor window status (master bus)Pluginsdaw:readeditorinteractive
GET/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/frameCurrent master-bus plugin editor frame (JPEG)Pluginsdaw:readeditoreditor
POST/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/pointerSend a pointer event to a master-bus plugin editorPluginsdaw:writeeditoreditor
POST/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/scrollSend a scroll (wheel) event to a master-bus plugin editorPluginsdaw:writeeditoreditor
POST/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/typeType text or a key into a master-bus plugin editorPluginsdaw:writeeditoreditor
POST/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor:closeClose a master-bus plugin editor windowPluginsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor:openOpen (mirror) a master-bus plugin editor windowPluginsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor:releaseRelease a master-bus plugin editor windowPluginsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/mixSet a bus plugin slot's wet/dry mixPluginsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/parameters/{parameter_index}Set a bus plugin parameterPluginsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}:moveReorder a bus pluginPluginsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/clips/{clip_id}/plugin-chain-stateSave a take's chain on/off + added modulesPluginsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/clips/{clip_id}/plugin-stateSaved plugin snapshots of a takePluginsdaw:readeditorinteractive
POST/api/v1/projects/{project_id}/lanes/{lane_id}/effect-chain:copyCopy another lane's effect chain onto this lanePluginsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/effects/{effect}/enabledEnable / disable a Nectar effect modulePluginsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/lanes/{lane_id}/effects/{effect}/wetAdjust a Nectar effect module's wet mixPluginsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/lanes/{lane_id}/plugin-stateSaved plugin snapshots of a lanePluginsdaw:readeditorinteractive
GET/api/v1/projects/{project_id}/lanes/{lane_id}/pluginsList a lane's live plugin chainPluginsdaw:readeditorinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/bypassBypass / re-enable a lane pluginPluginsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editorPlugin editor window statusPluginsdaw:readeditorinteractive
GET/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/frameCurrent plugin editor frame (JPEG)Pluginsdaw:readeditoreditor
POST/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/pointerSend a pointer event to a plugin editorPluginsdaw:writeeditoreditor
POST/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/scrollSend a scroll (wheel) event to a plugin editorPluginsdaw:writeeditoreditor
POST/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/typeType text or a key into a plugin editorPluginsdaw:writeeditoreditor
POST/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor:closeClose a plugin editor windowPluginsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor:openOpen (mirror) a plugin editor windowPluginsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor:releaseRelease a plugin editor windowPluginsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/mixSet a lane plugin slot's wet/dry mixPluginsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/parameters/{parameter_index}Set a lane plugin parameterPluginsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/preset:applyApply a named preset to a lane pluginPluginsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/programSelect a lane plugin programPluginsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/snapshotSnapshot a lane plugin for an in-place restorePluginsdaw:readeditorinteractive
GET/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/stateSnapshot a lane plugin's statePluginsdaw:readeditorinteractive
POST/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/state:restoreRestore a lane plugin's state in placePluginsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/automationList automation envelopesAutomationdaw:readviewerinteractive
GET/api/v1/projects/{project_id}/automation/{envelope_id}Get one automation envelopeAutomationdaw:readviewerinteractive
PUT/api/v1/projects/{project_id}/automation/{envelope_id}Replace an envelope's points / default / value typeAutomationdaw:writeeditorinteractive
DELETE/api/v1/projects/{project_id}/automation/{envelope_id}Delete an automation envelopeAutomationdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/automation/{envelope_id}/pointsAdd points to an envelopeAutomationdaw:writeeditorinteractive
DELETE/api/v1/projects/{project_id}/automation/{envelope_id}/pointsRemove points from an envelopeAutomationdaw:writeeditorinteractive
PATCH/api/v1/projects/{project_id}/automation/{envelope_id}/points/{index}Change one pointAutomationdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/clips/{clip_id}/automationList a clip's automation envelopesAutomationdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/clips/{clip_id}/automationCreate an automation envelopeAutomationdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/lanes/{lane_id}/automationList a lane's automation envelopesAutomationdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/lanes/{lane_id}/automationCreate a lane volume / pan automation envelopeAutomationdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/plugins/{plugin_instance_id}/automationList a plugin instance's automation envelopesAutomationdaw:readviewerinteractive
PUT/api/v1/projects/{project_id}/tempoSet the scalar project tempoTimingdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/tempo-jobs/{job_id}Get a tempo stretch jobTimingdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/tempo-jobs/{job_id}:undoUndo a tempo stretchTimingdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/timing-mapGet the tempo + meter mapTimingdaw:readviewerinteractive
PUT/api/v1/projects/{project_id}/timing-mapReplace the tempo and/or meter mapTimingdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/timing-map:convertConvert musical positionsTimingdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/timing-map:undoUndo the last tempo/meter editTimingdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/pattern-placementsList pattern placementsPatternsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/pattern-placementsPlace a pattern on the timelinePatternsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/pattern-placements/{placement_id}Get a pattern placementPatternsdaw:readviewerinteractive
PATCH/api/v1/projects/{project_id}/pattern-placements/{placement_id}Move / trim / loop / reroute a placementPatternsdaw:writeeditorinteractive
DELETE/api/v1/projects/{project_id}/pattern-placements/{placement_id}Delete a pattern placementPatternsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/pattern-placements/{placement_id}/gainSet a placement's gainPatternsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/pattern-placements/{placement_id}:restoreRestore a deleted pattern placement (undo a delete)Patternsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/pattern-placements/{placement_id}:splitSplit a placement (or undo a split)Patternsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/pattern-placements:batchCreate / move / delete many placements at oncePatternsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/pattern-previews:launchScene launch: start several armed pattern previews togetherPatternsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/pattern-previews:stopStop one pattern previewPatternsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/pattern-previews:stopAllStop all pattern previewsPatternsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/patternsList patternsPatternsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/patternsCreate a patternPatternsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/patterns/{pattern_id}Get a patternPatternsdaw:readviewerinteractive
PATCH/api/v1/projects/{project_id}/patterns/{pattern_id}Update a patternPatternsdaw:writeeditorinteractive
DELETE/api/v1/projects/{project_id}/patterns/{pattern_id}Delete a patternPatternsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/patterns/{pattern_id}/channelsAdd a Channel Rack channel (at a position)Patternsdaw:writeeditorinteractive
PATCH/api/v1/projects/{project_id}/patterns/{pattern_id}/channels/{channel_id}Edit a channel / move it in the rackPatternsdaw:writeeditorinteractive
DELETE/api/v1/projects/{project_id}/patterns/{pattern_id}/channels/{channel_id}Remove a channel from the rackPatternsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/patterns/{pattern_id}/channels/{channel_id}:assignToNewInstrumentTrackAssign a channel to a new instrument trackPatternsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/patterns/{pattern_id}:restoreRestore a deleted patternPatternsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/patterns:previewPreview a pattern, or arm it for a data-channel startPatternsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/patterns:resyncRecompile patterns in the enginePatternsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/pattern-samplesList pattern samplesPattern samplesdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/pattern-samples/uploadUpload a Channel Rack samplePattern samplesmedia:uploadeditorinteractive
GET/api/v1/projects/{project_id}/pattern-samples/{audio_file_id}/waveformWaveform preview of a pattern samplePattern samplesdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/pattern-samples/{audio_file_id}:placeOnTimelinePlace a Channel Rack sample on the PlaylistPattern samplesdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/pattern-samples:registerRegister a pattern samplePattern samplesdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/exportsList exportsExportsexports:readviewerinteractive
POST/api/v1/projects/{project_id}/exportsExport the mixExportsprojects:writeeditorinteractive
GET/api/v1/projects/{project_id}/exports/jobs/{job_id}Get export statusExportsexports:readviewerinteractive
POST/api/v1/projects/{project_id}/listenListen to the projectListenaudio:listeneditorinteractive
GET/api/v1/projects/{project_id}/listen-previewGet the listen-page previewListenprojects:read—interactive
DELETE/api/v1/interactive-sessions/{session_id}Close an interactive editing sessionRealtimedaw:read—interactive
POST/api/v1/projects/{project_id}/interactive-sessionsOpen an interactive editing sessionRealtimedaw:readviewerinteractive
POST/api/v1/projects/{project_id}/live-ingest/closeClose a live input connectionRealtimedaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/live-ingest/offerSend the live input WebRTC offerRealtimedaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/live-ingest/statusGet live input statusRealtimedaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/monitorStart live audio monitoringRealtimeaudio:listeneditorinteractive
PATCH/api/v1/projects/{project_id}/monitorChange live monitor qualityRealtimeaudio:listenviewerinteractive
DELETE/api/v1/projects/{project_id}/monitorStop live audio monitoringRealtimeaudio:listenviewerinteractive
GET/api/v1/projects/{project_id}/monitor/candidatesGet the monitoring peer's late ICE candidatesRealtimeaudio:listenviewerinteractive
POST/api/v1/projects/{project_id}/monitor/offerSend the monitoring WebRTC offerRealtimeaudio:listeneditorinteractive
GET/api/v1/realtime/daw-sync-sessionsIs a project's DAW sync room liveRealtimelive:read—interactive
POST/api/v1/realtime/daw-sync-sessionsGet or create a DAW sync sessionRealtimelive:write—interactive
GET/api/v1/realtime/turn-credentialsGet TURN credentialsRealtimeaudio:listen—interactive
GET/api/v1/sync/blobs/{sha256}Get a blob's stateSyncprojects:read—interactive
POST/api/v1/sync/blobs/{sha256}/commitCommit an uploaded blob for verificationSyncmedia:upload—interactive
GET/api/v1/sync/blobs/{sha256}/contentDownload a blobSyncprojects:read—interactive
POST/api/v1/sync/blobs/{sha256}/uploadsStart or resume a blob uploadSyncmedia:upload—interactive
DELETE/api/v1/sync/blobs/{sha256}/uploadsCancel an uploadSyncmedia:upload—interactive
GET/api/v1/sync/linksList sync linksSyncprojects:read—interactive
POST/api/v1/sync/linksLink a DAW project folder to a projectSyncprojects:write—interactive
GET/api/v1/sync/links/{link_id}/versionsList versionsSyncprojects:read—interactive
POST/api/v1/sync/links/{link_id}/versionsCreate a versionSyncprojects:write—interactive
GET/api/v1/sync/links/{link_id}/versions/{version_id}Get a version with its manifestSyncprojects:read—interactive
GET/api/v1/sync/projects/{project_id}/linksList a project's sync linksSyncprojects:readviewerinteractive
POST/api/v1/projects/{project_id}/ai/commandsRun a Mozart AI commandMozart AIai:useeditorai
GET/api/v1/projects/{project_id}/ai/jobs/{job_id}Get a Mozart AI jobMozart AIai:useeditorinteractive
POST/api/v1/projects/{project_id}/ai:undoUndo the last Mozart AI actionMozart AIdaw:writeeditorinteractive
GET/api/v1/catalog/beatsSearch the beat catalogCatalogprojects:read—interactive
GET/api/v1/catalog/drum-kitsList drum kitsCataloglibrary:read—interactive
GET/api/v1/catalog/effect-presetsList AutoTune / Nectar / filter presetsCatalogdaw:read—interactive
GET/api/v1/catalog/marketplaceBrowse the marketplaceCataloglibrary:read—interactive
GET/api/v1/catalog/marketplace/feedThe marketplace discovery feedCataloglibrary:read—interactive
GET/api/v1/catalog/plugin-presetsSearch plug-in presetsCataloglibrary:read—interactive
GET/api/v1/catalog/plugin-presets/nectar/{preset_name}Get a Nectar presetCatalogdaw:read—interactive
GET/api/v1/catalog/preset-packs/{asset_id}/itemsList a preset pack's itemsCataloglibrary:read—interactive
GET/api/v1/catalog/soundsBrowse soundsCataloglibrary:read—interactive
GET/api/v1/catalog/sounds/{item_id}/previewPreview a Sound Library soundCataloglibrary:read—interactive
GET/api/v1/catalog/sounds/{item_id}/preview/audioStream a Sound Library sound's audioCataloglibrary:read—interactive
GET/api/v1/catalog/splice-soundsSearch Splice soundsCataloglibrary:read—interactive
GET/api/v1/catalog/splice-sounds/{sound_id}/previewPreview a Splice soundCataloglibrary:read—interactive
GET/api/v1/catalog/vocal-chain-presetsList vocal chain presetsCatalogdaw:read—interactive
GET/api/v1/catalog/vocal-chain-presets/{preset_id}Get a vocal chain presetCatalogdaw:read—interactive
GET/api/v1/engine/actionsList engine actionsEngine actionsdaw:read—interactive
POST/api/v1/projects/{project_id}/engine/actions/add_808add_808 (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/add_drum_hitsadd_drum_hits (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/add_grooveadd_groove (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/add_hat_rollsadd_hat_rolls (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/add_instrument_trackadd_instrument_track (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/add_lane_pluginadd_lane_plugin (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/adjust_volumeadjust_volume (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/align_to_beatalign_to_beat (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/all_notes_offall_notes_off (instruments, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/analyze_harmonyanalyze_harmony (compose, read)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/analyze_song_sectionsanalyze_song_sections (compose, read)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/apply_lane_plugin_presetapply_lane_plugin_preset (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/apply_mixapply_mix (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/attach_clip_to_sessionattach_clip_to_session (timeline, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/audit_arrangementaudit_arrangement (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/audition_patchaudition_patch (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/clear_track_pluginsclear_track_plugins (plugins, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/close_plugin_editorclose_plugin_editor (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/compose_songcompose_song (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/convert_musical_timeconvert_musical_time (tempo, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/copy_append_clipcopy_append_clip (timeline, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/create_empty_lanecreate_empty_lane (timeline, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/create_patterncreate_pattern (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/create_pattern_placementcreate_pattern_placement (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/create_trackcreate_track (timeline, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/delete_busdelete_bus (mixer, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/delete_bus_plugindelete_bus_plugin (plugins, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/delete_clipdelete_clip (timeline, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/delete_lane_plugindelete_lane_plugin (plugins, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/delete_patterndelete_pattern (patterns, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/delete_pattern_placementdelete_pattern_placement (patterns, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/delete_trackdelete_track (timeline, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/detect_tempodetect_tempo (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/finalize_recordingfinalize_recording (recording, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/find_soundsfind_sounds (compose, read)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/find_splice_soundsfind_splice_sounds (compose, read)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/get_bus_plugin_live_stateget_bus_plugin_live_state (plugins, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_clip_waveformget_clip_waveform (timeline, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_historyget_history (history, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_history_statusget_history_status (history, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_lane_eqget_lane_eq (mixer, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_lane_plugin_stateget_lane_plugin_state (plugins, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_live_statusget_live_status (recording, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_loop_regionget_loop_region (transport, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_mix_revisionget_mix_revision (mixer, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_pattern_eqget_pattern_eq (patterns, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_pattern_sample_peaksget_pattern_sample_peaks (patterns, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_plugin_editor_statusget_plugin_editor_status (plugins, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_session_statusget_session_status (project, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_tempo_stretch_jobget_tempo_stretch_job (tempo, read)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_timing_mapget_timing_map (tempo, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_transportget_transport (transport, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/get_transport_clockget_transport_clock (transport, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/history_redohistory_redo (history, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/history_undohistory_undo (history, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/launch_pattern_previewslaunch_pattern_previews (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/list_buseslist_buses (mixer, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/list_installed_instrumentslist_installed_instruments (instruments, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/list_lane_pluginslist_lane_plugins (plugins, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/list_pattern_placementslist_pattern_placements (patterns, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/list_patternslist_patterns (patterns, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/list_track_sendslist_track_sends (mixer, read)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/list_trackslist_tracks (timeline, read)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/actions/listenlisten (compose, read)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/listen_backlisten_back (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/live_ingest_closelive_ingest_close (recording, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/live_ingest_offerlive_ingest_offer (recording, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/load_bus_pluginload_bus_plugin (plugins, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/load_labsload_labs (instruments, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/load_lane_chainload_lane_chain (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/load_omnisphereload_omnisphere (instruments, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/load_track_pluginload_track_plugin (plugins, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/mix_checkmix_check (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/move_bus_pluginmove_bus_plugin (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/move_clip_to_lanemove_clip_to_lane (timeline, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/move_lane_pluginmove_lane_plugin (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/open_plugin_editoropen_plugin_editor (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/pausepause (transport, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/playplay (transport, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/play_rangeplay_range (transport, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/preview_patternpreview_pattern (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/preview_pattern_samplepreview_pattern_sample (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/read_skillread_skill (compose, read)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/refine_songrefine_song (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/release_plugin_editorrelease_plugin_editor (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/remove_trackremove_track (compose, destructive)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/remove_track_sendremove_track_send (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/rename_busrename_bus (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/rename_trackrename_track (timeline, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/render_live_windowrender_live_window (render, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/render_sharerender_share (render, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/replace_lane_instrumentreplace_lane_instrument (instruments, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/replace_stem_partreplace_stem_part (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/restore_lane_pluginrestore_lane_plugin (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/restore_lane_plugin_staterestore_lane_plugin_state (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/restore_originalrestore_original (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/restore_patternrestore_pattern (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/resync_patternsresync_patterns (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/route_track_to_busroute_track_to_bus (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/search_patchessearch_patches (compose, read)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/seekseek (transport, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/seek_and_playseek_and_play (transport, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/send_midisend_midi (instruments, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/separate_stemsseparate_stems (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/set_bus_gainset_bus_gain (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_bus_mutedset_bus_muted (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_bus_panset_bus_pan (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_bus_plugin_bypassedset_bus_plugin_bypassed (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_bus_plugin_mixset_bus_plugin_mix (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_bus_plugin_parameterset_bus_plugin_parameter (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_bus_soloedset_bus_soloed (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_bus_stereoset_bus_stereo (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_clip_fadeset_clip_fade (automation, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_clip_fadesset_clip_fades (timeline, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_clip_gainset_clip_gain (timeline, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_clip_mutedset_clip_muted (timeline, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_instrument_patchset_instrument_patch (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/set_labs_presetset_labs_preset (instruments, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_lane_native_paramsset_lane_native_params (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_lane_plugin_bypassedset_lane_plugin_bypassed (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_lane_plugin_eq_bandset_lane_plugin_eq_band (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_lane_plugin_mixset_lane_plugin_mix (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_lane_plugin_parameterset_lane_plugin_parameter (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_lane_plugin_programset_lane_plugin_program (plugins, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_metronomeset_metronome (transport, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_omnisphere_patchset_omnisphere_patch (instruments, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_patchset_patch (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/set_pattern_eq_bandset_pattern_eq_band (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_pattern_placement_gainset_pattern_placement_gain (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_pattern_source_gainset_pattern_source_gain (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_pattern_stepsset_pattern_steps (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/set_project_loop_regionset_project_loop_region (transport, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_project_temposet_project_tempo (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_speaker_mutedset_speaker_muted (transport, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_timing_mapset_timing_map (tempo, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_track_eq_bandset_track_eq_band (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_track_gainset_track_gain (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_track_mutedset_track_muted (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_track_panset_track_pan (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_track_sendset_track_send (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_track_soloedset_track_soloed (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_track_stereoset_track_stereo (mixer, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/set_transport_loopset_transport_loop (transport, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/shift_clipshift_clip (timeline, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/snapshot_lane_pluginsnapshot_lane_plugin (plugins, read)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/song_briefsong_brief (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/split_clipsplit_clip (timeline, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/start_recordingstart_recording (recording, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/start_streamstart_stream (stream, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/stem_statusstem_status (compose, read)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/stop_all_pattern_previewsstop_all_pattern_previews (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/stop_pattern_previewstop_pattern_preview (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/stop_streamstop_stream (stream, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/swap_soundswap_sound (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine/actions/transport_count_intransport_count_in (transport, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/trim_cliptrim_clip (timeline, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/undo_tempo_stretchundo_tempo_stretch (tempo, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/undo_timing_mapundo_timing_map (tempo, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/unload_laneunload_lane (timeline, destructive)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/update_patternupdate_pattern (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/update_pattern_placementupdate_pattern_placement (patterns, reversible)Engine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/actions/write_pattern_noteswrite_pattern_notes (compose, reversible)Engine actionsdaw:writeeditorai
POST/api/v1/projects/{project_id}/engine:executeExecute an engine action by name (generic)Engine actionsdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine:reloadReload the live session from the saved projectEngine actionsdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/midiAudition MIDI notesEngine statedaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/engine/midi:allNotesOffSilence an instrumentEngine statedaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/engine/mixGet the live mixEngine statedaw:readviewerinteractive
POST/api/v1/projects/{project_id}/engine/mix:applyApply a mix move atomicallyEngine statedaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/engine/mix:waitWait for the live mix to changeEngine statedaw:readviewerwait
GET/api/v1/projects/{project_id}/engine/stateGet live engine stateEngine statedaw:readviewerinteractive
GET/api/v1/projects/{project_id}/engine/tracksList live engine tracksEngine statedaw:readviewerinteractive
GET/api/v1/projects/{project_id}/historyGet the engine historyHistorydaw:readviewerinteractive
POST/api/v1/projects/{project_id}/history:redoRedo (engine history)Historydaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/history:undoUndo (engine history)Historydaw:writeeditorinteractive
GET/api/v1/instruments/catalogList the instrument catalogInstrumentsdaw:read—interactive
POST/api/v1/projects/{project_id}/instrument-lanesCreate an instrument laneInstrumentsdaw:writeeditorinteractive
PUT/api/v1/projects/{project_id}/lanes/{lane_id}/instrumentReplace an instrument lane's instrumentInstrumentsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/markersList the project's markersMarkersdaw:readviewerinteractive
PUT/api/v1/projects/{project_id}/markersReplace the project's markersMarkersdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/lanes/{lane_id}/eqRead a lane's EQ bandsNative EQdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/lanes/{lane_id}/eq/bands/{band}Set one EQ band on a laneNative EQdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/pattern-placements/{placement_id}/eqRead a pattern placement's EQ bandsNative EQdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/pattern-placements/{placement_id}/eq/bands/{band}Set one EQ band on a pattern placementNative EQdaw:writeeditorinteractive
GET/api/v1/plugins/catalogList the plug-in catalogPlug-in catalogdaw:read—interactive
GET/api/v1/plugins/catalog/{plugin_id}Get one catalog plug-inPlug-in catalogdaw:read—interactive
POST/api/v1/projects/{project_id}/buses/{bus_id}/pluginsAdd a catalog plug-in to a bus (master included)Plug-in catalogdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/parametersDiscover a bus plug-in's parametersPlug-in catalogdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/lanes/{lane_id}/pluginsAdd a catalog plug-in to a lanePlug-in catalogdaw:writeeditorinteractive
DELETE/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/instances/{instance_id}Remove a plug-in instance from a lane (live and saved chain)Plug-in catalogdaw:writeeditorinteractive
DELETE/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}Remove a plug-in from a lanePlug-in catalogdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/parametersDiscover a lane plug-in's parametersPlug-in catalogdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}:moveReorder a lane plug-inPlug-in catalogdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/recordingGet recording statusRecordingdaw:readviewerinteractive
POST/api/v1/projects/{project_id}/recording:finalizeStop and finalize the takeRecordingdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/recording:startStart recordingRecordingdaw:writeeditorinteractive
POST/api/v1/projects/{project_id}/clips/{clip_id}/stemsSplit a clip into stemsStemsdaw:writeeditorinteractive
GET/api/v1/projects/{project_id}/stems/jobs/{job_id}Get a stem split jobStemsdaw:readeditorinteractive
POST/api/v1/projects/{project_id}/stems/jobs/{job_id}:undoUndo a stem splitStemsdaw:writeeditorinteractive

Projects

Projects the caller owns or that are shared with them, with their role.

GET /api/v1/projects

List projects

OperationlistProjects
Scopeprojects:list
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated
MCP equivalentlist_projects

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
searchquerystringoptionalmax length 120Matches title or artist.
include_sharedquerybooleanoptionaldefault true
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (ProjectSummary)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses ProjectSummary, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/projects/{project_id}

Get a project

OperationgetProject
Scopeprojects:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match
MCP equivalentget_project

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).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKProjectETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/key-analysis

Detect the key of the backing or a take

OperationstartKeyAnalysis
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentdetect_project_key

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64

Responses

StatusMeaningBodyHeaders
200OKKeyAnalysis
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
410uncached_backing_key_analysis_retired: the backing has no stored key.
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/key-analysis" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/v1/projects/{project_id}/key-analysis/{job_id}

Poll a key analysis

OperationgetKeyAnalysis
Scopeprojects:read
Project roleeditor
Rate classinteractive
MCP equivalentget_key_analysis_status

The job startKeyAnalysis returned: pending / running (Retry-After), succeeded with analysis {key, scale, confidence, detector}, or failed with error {code, message}.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
job_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKKeyAnalysis
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/key-analysis/{job_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

KeyAnalysis schema

FieldTypeRequiredConstraintsDescription
analysisobjectoptionalPresent when succeeded: the detector's key / scale / confidence.
analysis.confidencenumber | nulloptional
analysis.detectorstring | nulloptional
analysis.keystring | nulloptional
analysis.scalestring | nulloptional
errorobjectoptionalPresent when failed: {code, message}.
jobIdstring | nulloptional
projectobjectoptionalThe project card once the job is done.
projectIdstringrequired
retryAfterSecintegeroptional
statusstringrequiredone of pending, running, succeeded, failed

Project schema

The get_project card: lanes and clips are capped (see truncated); page through /lanes and /clips for everything.

FieldTypeRequiredConstraintsDescription
bpmnumberoptionalThe 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.
bpmSourcestringoptionalone of set, backing, defaultset = 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.
clipsobject (Clip)[]optional
countsobjectoptional
idstringrequired
lanesobject (Lane)[]optional
masterGainnumberoptional
rolestringrequiredone of owner, editor, viewer
timelineRevisionstringoptional
timingMapobject | nulloptional
titlestringrequired
truncatedobjectoptional

Uses Clip, Lane.

ProjectSummary schema

FieldTypeRequiredConstraintsDescription
artiststring | nulloptional
bpmnumber | nulloptionalThe 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).
idstringrequired
liveRoomobject | nullrequiredThe project's DAW sync room while it exists (members 0 = inside its grace period), else null. Same as getProjectShare.liveRoom.
liveRoom.codestringrequired
liveRoom.membersintegerrequiredmin 0
rolestringrequiredone of owner, editor, viewer
sharedbooleanrequiredShared 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.
titlestringrequired
updated_atstring | nulloptionalformat date-time
visibilitystringrequiredone of private, link, publicThe 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.

POST /api/v1/projects

Create a project

OperationcreateProject
Scopeprojects:write
Project rolenot pre-checked
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentcreate_project

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

ParameterInTypeRequiredConstraintsDescription
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bpmnumberoptionalmin 20; max 400Initial project tempo (quarter notes per minute).
sourceobjectoptional
source.beatIdstringoptionalmax length 64
source.typestringoptionalone of empty, youtube, catalog, url
source.urlstringoptionalmax length 2048
titlestringoptionalmax length 255

Responses

StatusMeaningBodyHeaders
201OKProjectLifecycleResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

PATCH /api/v1/projects/{project_id}

Update a project (title, key, scale)

OperationrenameProject
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentrename_project / set_project_key

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
expectedobjectoptional
expected.keystring | nulloptional
expected.scalestring | nulloptional
keystring | nulloptional
13 allowed values
C C# D D# E F F# G G# A A# B None
keyAutoDetectedbooleanoptionalUndo payloads only: restores the auto-detected flag with key/scale (any other write is manual).
scalestring | nulloptionalone of major, minor, chromatic, None
titlestringoptionalmin length 1; max length 255

Responses

StatusMeaningBodyHeaders
200OKProjectUpdateResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PATCH "https://freestyle.audio/api/v1/projects/{project_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

DELETE /api/v1/projects/{project_id}

Delete a project

OperationdeleteProject
Scopeprojects:write
Project roleowner
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentdelete_project

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
confirmbooleanoptionaldefault falseMust be true: the user explicitly confirmed this destructive action.

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"confirm": true}'

POST /api/v1/projects/{project_id}/collaborators

Invite a collaborator

OperationinviteCollaborator
Scopeprojects:write
Project roleowner
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentinvite_collaborator

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
rolestringoptionalone of viewer, editor
userstringoptionalmax length 120
user_idstringoptionalmax length 64

Responses

StatusMeaningBodyHeaders
200OKProjectShare
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/collaborators" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

DELETE /api/v1/projects/{project_id}/collaborators/{user}

Remove a collaborator

OperationremoveCollaborator
Scopeprojects:write
Project roleowner
Rate classinteractive
BehaviourIdempotency-Key destructive (the DELETE is the confirmation)
MCP equivalentremove_collaborator

Owner only. Revokes their access at once. The DELETE itself is the confirmation. {user} is a user id or an @username.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
userpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Responses

StatusMeaningBodyHeaders
200OKProjectShare
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/collaborators/{user}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

PUT /api/v1/projects/{project_id}/collaborators/{user}/role

Change a collaborator's role

OperationsetCollaboratorRole
Scopeprojects:write
Project roleowner
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentset_collaborator_role

Owner only. {user} is a user id or an @username from getProjectShare.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
userpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
rolestringrequiredone of viewer, editor

Responses

StatusMeaningBodyHeaders
200OKProjectShare
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/collaborators/{user}/role" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"role": "viewer"}'

GET /api/v1/projects/{project_id}/saves

List project saves

OperationlistProjectSaves
Scopeprojects:read
Project roleviewer
Rate classinteractive
Behaviourpaginated
MCP equivalentlist_project_saves

Named saves (version history), newest first (the most recent 50).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (ProjectSave)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses ProjectSave, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/saves" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/saves

Create a project save

OperationcreateProjectSave
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentcreate_project_save

Snapshot the current project state as a named save (auto-named when name is omitted).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
namestringoptionalmax length 255
snapshot_onlybooleanoptionaldefault true

Responses

StatusMeaningBodyHeaders
201OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

201 body:

JSON object with any fields.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/saves" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/saves/{save_id}:restore

Restore a project save

OperationrestoreProjectSave
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentrestore_project_save

Roll the project back to one of the caller's saves. Destructive: pass confirm=true after the user agreed.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
save_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
confirmbooleanoptionaldefault falseMust be true: the user explicitly confirmed this destructive action.

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/saves/{save_id}:restore" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"confirm": true}'

GET /api/v1/projects/{project_id}/share

Get share settings

OperationgetProjectShare
Scopeprojects:read
Project roleviewer
Rate classinteractive
MCP equivalentget_project_share

Visibility, default link role, collaborators with their roles, the share URL and the caller's own role. Owners, editors and viewers.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKProjectShare
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/share" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

PATCH /api/v1/projects/{project_id}/share

Update visibility / default role

OperationupdateProjectShare
Scopeprojects:write
Project roleowner
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentupdate_project_share

Owner only. visibility private | link | public and/or default_role viewer | editor for link visitors.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
default_rolestringoptionalone of viewer, editor
visibilitystringoptionalone of private, link, public

Responses

StatusMeaningBodyHeaders
200OKProjectShare
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PATCH "https://freestyle.audio/api/v1/projects/{project_id}/share" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}:duplicate

Duplicate a project

OperationduplicateProject
Scopeprojects:write
Project roleviewer
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentduplicate_project

Saves a copy (lanes, clips, patterns, plugin state) as a new project owned by the caller. Viewers may duplicate projects they can open.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
titlestringoptionalmax length 255

Responses

StatusMeaningBodyHeaders
201OKProjectLifecycleResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}:duplicate" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

ProjectLifecycleResult schema

FieldTypeRequiredConstraintsDescription
okbooleanoptional
projectobjectoptional
projectUrlstringoptional
studioUrlstringoptional

ProjectSave schema

FieldTypeRequiredConstraintsDescription
createdAtstring | nulloptional
downloadUrlstring | nulloptional
idstringrequired
namestringoptional
renderStatusstring | nulloptional
snapshotHashstring | nulloptional
updatedAtstring | nulloptional

ProjectShare schema

The get_project_share summary (fields follow the MCP tool).

FieldTypeRequiredConstraintsDescription
defaultRolestringoptionalone of viewer, editor
liveRoomobject | nulloptionalgetProjectShare only: the project's live DAW sync room (Freestyle for Mac) while it exists, else null. Join it with createDawSyncSession / getDawSyncLiveStatus.
liveRoom.codestringoptional
liveRoom.membersintegeroptionalmin 0
peopleobject[]optional
projectIdstringoptional
shareUrlstring | nulloptional
visibilitystringoptionalone of private, link, public

ProjectUpdateResult schema

FieldTypeRequiredConstraintsDescription
keystring | nulloptional
13 allowed values
C C# D D# E F F# G G# A A# B None
keyChangedbooleanoptional
okbooleanoptional
projectobjectoptional
projectUrlstringoptional
scalestring | nulloptionalone of major, minor, chromatic, None
titlestringoptional
undoobjectoptional
undo.keystring | nullrequired
undo.keyAutoDetectedbooleanrequired
undo.scalestring | nullrequired

Lanes

Timeline lanes (tracks) of a project.

GET /api/v1/projects/{project_id}/lanes

List lanes

OperationlistLanes
Scopeprojects:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match paginated
MCP equivalentget_project (lanes)

Lanes in display order with mute/solo/volume/pan, bus and plugin-chain summary. ETag = timeline revision.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
kindquerystringoptionalmax length 32Only lanes of this kind.
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (Lane)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Lane, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/lanes" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

Lane schema

FieldTypeRequiredConstraintsDescription
busIdstringoptional
colorstringoptionalLane colour (#rrggbb): the saved colour (updateLane color), else the order-based default the Studio paints.
colorOriginstring | nulloptionaluser = set via updateLane / the Studio; automatic = assigned default; null = legacy lane with no recorded origin.
idstringrequired
kindstring | nulloptional
mutedbooleanrequired
namestring | nulloptional
orderintegeroptional
pannumberrequiredmin -1; max 1
pluginChainobject[]optional
polarityInvertedbooleanoptional
sendsobject (LaneSend)[]optionalSaved parallel aux sends (setLaneSend / deleteLaneSend).
solobooleanrequired
stereoSeparationnumberoptionaldefault 0; min -1; max 1
swapLrbooleanoptional
trackTypestring | nulloptional
volumenumberrequired

Uses LaneSend.

Lane management

Create, edit, delete, restore, duplicate and reorder timeline lanes.

POST /api/v1/projects/{project_id}/lanes

Create an empty lane

OperationcreateLane
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentcreate_track

Add an empty vocal or audio lane (a vocal lane gets the account's default effect chain). Returns track.id, usable as lane_id / track_id everywhere.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
kindstringoptionaldefault "vocal"; one of vocal, audio
namestringoptionalmax length 80

Responses

StatusMeaningBodyHeaders
201OKLaneWriteResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

PATCH /api/v1/projects/{project_id}/lanes/{lane_id}

Rename / recolor / mix a lane

OperationupdateLane
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentset_lane_identity

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
colorstringoptionalmax length 32
expected_mix_revisionintegeroptionalmin 0mix_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>".
mutedbooleanoptional
namestringoptionalmax length 255
pannumberoptionalmin -1; max 1
soloedbooleanoptional
volumenumberoptionalmin 0; max 4

Responses

StatusMeaningBodyHeaders
200OKLaneWriteResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

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.

Minimal request (required fields only):

curl -X PATCH "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

DELETE /api/v1/projects/{project_id}/lanes/{lane_id}

Delete a lane

OperationdeleteLane
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match destructive (the DELETE is the confirmation)
MCP equivalentdelete_lane

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
alreadyDeletedbooleanoptional
deletedClipIdsstring[]optional
deletedPatternChannelsobject[]optional
deletedPatternChannels[].channelIdstringrequired
deletedPatternChannels[].patternIdstringrequired
laneIdstringoptional
liveEngineobjectoptional
liveEngine.alreadyUnloadedbooleanoptional
liveEngine.appliedbooleanrequiredtrue = the running engine session took the change (the next audio block hears it).
liveEngine.attachedClipIdsstring[]optional
liveEngine.reasonstringoptionalone of no_live_session, engine_rejected, engine_unreachableWhy it was not applied live. The saved change still stands; the next session load plays it.
okbooleanoptional
projectIdstringoptional
timelineRevisionstring | nulloptional

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/lanes/{lane_id}:duplicate

Duplicate a lane

OperationduplicateLane
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentduplicate_lane

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
201OKsee belowETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

201 body:

FieldTypeRequiredConstraintsDescription
clipIdsobjectoptional{source clip id: copied clip id}
laneIdstringoptional
liveEngineobjectoptional
liveEngine.alreadyUnloadedbooleanoptional
liveEngine.appliedbooleanrequiredtrue = the running engine session took the change (the next audio block hears it).
liveEngine.attachedClipIdsstring[]optional
liveEngine.reasonstringoptionalone of no_live_session, engine_rejected, engine_unreachableWhy it was not applied live. The saved change still stands; the next session load plays it.
namestringoptional
okbooleanoptional
patternIdsobjectoptional{source pattern id: independent pattern copy id}
patternRowLaneIdstring | nulloptionalThe 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).
placementIdsobjectoptional{source pattern clip id: copied pattern clip id}
projectIdstringoptional
sourceLaneIdstringoptional
timelineRevisionstring | nulloptional
undoobjectoptional
undo.methodstringrequiredone of DELETE
undo.pathstringrequired

Error codes specific to this operation: project_track_limit. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}:duplicate" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/lanes/{lane_id}:restore

Restore a deleted lane

OperationrestoreLane
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentrestore_lane

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
clip_idsstring[]optionalmax items 200

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
laneIdstringoptional
liveEngineobjectoptional
liveEngine.alreadyUnloadedbooleanoptional
liveEngine.appliedbooleanrequiredtrue = the running engine session took the change (the next audio block hears it).
liveEngine.attachedClipIdsstring[]optional
liveEngine.reasonstringoptionalone of no_live_session, engine_rejected, engine_unreachableWhy it was not applied live. The saved change still stands; the next session load plays it.
okbooleanoptional
projectIdstringoptional
restoredPatternChannelsobject[]optional
restoredPatternChannels[].channelIdstringrequired
restoredPatternChannels[].patternIdstringrequired
timelineRevisionstring | nulloptional

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}:restore" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/lanes:fromLatestVocal

New vocal lane with the latest vocal chain

OperationcreateLaneFromLatestVocal
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentcreate_vocal_lane_from_latest

A new vocal lane that copies the effect chain of your most recent vocal lane.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
201OKLaneWriteResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes:fromLatestVocal" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/lanes:reorder

Reorder lanes

OperationreorderLanes
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentreorder_lanes

lane_ids top to bottom, or rows [{laneIds, placementIds, backing}] for the Pro timeline's mixed rows.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
lane_idsstring[]optionalmax items 2048
rowsobject[]optionalmax items 2048

Responses

StatusMeaningBodyHeaders
200OKLaneWriteResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes:reorder" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

LaneWriteResult schema

FieldTypeRequiredConstraintsDescription
changedstring[]optionalupdateLane: the lane fields this write changed.
laneobject | nulloptionalupdateLane: the saved lane identity.
laneIdstringoptional
liveMixobjectoptionalupdateLane 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.appliedbooleanrequiredAlways true when present: the mix fields went through the engine's atomic compare-and-set first (POST /mix/apply).
livePanobjectoptionalupdateLane with pan: whether the running engine session took the saved pan too (absent when pan was not sent).
livePan.appliedbooleanrequiredtrue = the running engine session took the change (the next audio block hears it).
livePan.reasonstringoptionalone of no_live_session, engine_rejected, engine_unreachableWhy it was not applied live. The saved change still stands; the next session load plays it.
mixRevisionintegeroptionalupdateLane with a mix precondition: the mix revision after the write (send it as the next If-Match: "mix-<n>").
okbooleanoptional
projectIdstringoptional
timelineRevisionstring | nulloptional

Clips

Audio clips on the timeline: listing, waveforms and atomic edits.

GET /api/v1/projects/{project_id}/clips

List clips

OperationlistClips
Scopeprojects:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match paginated
MCP equivalentget_project (clips)

Live (not deleted) audio clips ordered by start time. ETag = timeline revision.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idquerystringoptionalmax length 64Only clips on this lane.
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (Clip)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Clip, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/clips" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

PUT /api/v1/projects/{project_id}/clips/{clip_id}/fades

Set one clip's fade-in and fade-out

OperationsetClipFades
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_clip_fades)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
fade_inobject | nulloptional{duration_sec >= 0, curve?}; null or duration_sec 0 clears this side.
fade_in.curvestringoptionaldefault "linear"; one of linear, equal_power, exp, log, s_curve
fade_in.duration_secnumberrequiredmin 0
fade_outobject | nulloptional{duration_sec >= 0, curve?}; null or duration_sec 0 clears this side.
fade_out.curvestringoptionaldefault "linear"; one of linear, equal_power, exp, log, s_curve
fade_out.duration_secnumberrequiredmin 0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKClipFadesResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: timeline_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/fades" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

PUT /api/v1/projects/{project_id}/clips/{clip_id}/gain

Set one clip's gain

OperationsetClipGain
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_clip_gain)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
gainnumberrequiredmin 0; max 4Linear clip gain, 1 = unity.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKClipGainResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: timeline_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/gain" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"gain": 0.0}'

PUT /api/v1/projects/{project_id}/clips/{clip_id}/mute

Mute or unmute one clip

OperationsetClipMuted
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_clip_muted)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
mutedbooleanrequired
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKClipMuteResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: timeline_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/mute" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"muted": false}'

PUT /api/v1/projects/{project_id}/clips/{clip_id}/take

Choose the audible take of a stack

OperationsetActiveTake
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_clip_muted) per 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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKTakeStackResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: timeline_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/take" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/v1/projects/{project_id}/clips/{clip_id}/waveform

Get a clip waveform

OperationgetClipWaveform
Scopedaw:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match
MCP equivalentget_clip_waveform

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
start_framequeryintegeroptionalmin 0First source frame of the range (default 0).
end_framequeryintegeroptionalmin 0End of the range, exclusive, greater than start_frame (default: the end of the source). Clamped to frame_count.
bucketsqueryintegeroptionaldefault 1024; min 1; max 8192Buckets 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_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKClipWaveformETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: 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}/clips/{clip_id}/waveform" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/clips/{clip_id}:move-to-lane

Move a clip to another lane

OperationmoveClipToLane
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (move_clip_to_lane)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expectedobjectoptional
expected.lane_idstringoptional
expected.start_msintegeroptionalmin 0
lane_idstringrequiredmin length 1; max length 64
start_msintegeroptionalmin 0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKClipMoveResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: clip_changed, lane_not_audio, timeline_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}:move-to-lane" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>"}'

POST /api/v1/projects/{project_id}/clips:batch

Apply an atomic clip batch

OperationapplyClipBatch
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentapply_clip_batch

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
opsobject (ClipBatchOp)[]requiredmin items 1; max items 256
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Uses ClipBatchOp.

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
appliedbooleanoptional
applied_opsinteger | nulloptionalmin 0How many ops the batch applied (the engine's count; 0 or null on a replay that applied nothing new).
engine_attachedbooleanoptionalPresent when the batch inserted/restored clips: all of them play in the live session now.
engine_divergentobject[]optional
engine_divergent[].idstringrequired
engine_divergent[].reasonstringrequiredone of still_playing, missing, duplicate, wrong_lane, timing, unreadable
engine_loadedboolean | nulloptionalWhether a live session hosts the project (null: an older engine did not say).
engine_reload_requiredbooleanoptional
engine_verifiedboolean | nulloptionaltrue: the live clip list was read back and checked; false: the read failed; null: nothing to check (no live session, or a replay).
insertedobject (InsertedClip)[]optional
postCommitErrorobjectoptionalPresent 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).
projectIdstringoptional
reloadobject (EngineReloadGuidance)optional
reload.hintstringoptional
reload.methodstringrequiredone of POST
reload.pathstringrequired/api/v1/projects/{id}/engine:reload
replaybooleanoptional
timelineRevisionstring | nulloptional
undoobject (ClipBatchUndo)optional
undo.inverse_opsarray | nullrequiredPOST 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).
undo.reasonstringoptional
undo.toolstringoptionalone of apply_clip_batch

Uses InsertedClip, EngineReloadGuidance, ClipBatchUndo.

Error codes specific to this operation: conflict, invalid_op, timeline_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/clips:batch" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"ops": []}'

POST /api/v1/projects/{project_id}/take-groups

Stack clips as takes of one lane

OperationgroupTakes
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIf-Match
MCP equivalentexecute_pro_action (set_clip_muted) per take

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
active_clip_idstringoptionalmax length 64
clip_idsstring[]requiredmin items 2; max items 64
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKTakeStackResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: timeline_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/take-groups" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Content-Type: application/json" \
  -d '{"clip_ids": []}'

POST /api/v1/projects/{project_id}/time-range-edits

Edit a time range across lanes

OperationeditTimeRange
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentedit_time_range

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
dry_runbooleanoptionaldefault false
end_frameintegeroptionalmin 0
end_msnumberoptionalmin 0
idempotency_keystringoptionalmax length 128
lane_idsstring[]requiredmin items 1; max items 64
operationstringrequiredone of split, delete, trim_to_selection
ripplebooleanoptionaldefault false
sample_ratenumberoptionalmin 8000; max 384000
start_frameintegeroptionalmin 0
start_msnumberoptionalmin 0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/time-range-edits" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_ids": [], "operation": "split"}'

Clip schema

FieldTypeRequiredConstraintsDescription
audioOffsetSecnumberrequiredSeconds into the source file where the audible region begins (left trim).
audioSourceIdstring | nulloptionalOpaque 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.
clipMutedbooleanoptional
durationSecnumber | nulloptionalAudible length in seconds (after trimming).
editUrlstringoptional
fadeInobject | nulloptionalSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
fadeIn.curvestringoptionalone of linear, equal_power, exp, log, s_curve
fadeIn.durationSecnumberoptionalmin 0
fadeOutobject | nulloptionalSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
fadeOut.curvestringoptionalone of linear, equal_power, exp, log, s_curve
fadeOut.durationSecnumberoptionalmin 0
idstringrequired
isBackingbooleanoptional
isImportedbooleanoptional
laneIdstring | nulloptional
mutedbooleanoptional
namestring | nulloptional
parkedbooleanoptionalPresent (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.
sourceDurationSecnumber | nulloptionalFull 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.
startMsintegerrequiredWhere the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).
takeGroupIdstringoptionalPresent only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).
takeIndexintegeroptionalmin 0Order inside the stack, 0 = oldest pass. Present with takeGroupId.
updatedAtstring | nulloptionalformat date-time
volumenumberoptional

ClipBatchOp schema

FieldTypeRequiredConstraintsDescription
audio_offset_secnumberoptionalmin 0Seconds into the source file where the audible region begins.
duration_secnumberoptional> 0Audible length in seconds.
expectedobjectoptional
expected.audio_offset_secnumberoptionalmin 0Seconds into the source file where the audible region begins.
expected.duration_secnumberoptional> 0Audible length in seconds.
expected.start_msnumberoptionalmin 0Timeline start of the audible region, ms from the project start.
idstringrequiredmax length 64
opstringrequiredone of update, insert, remove, restore
source_idstringoptionalmax length 64
start_msnumberoptionalmin 0Timeline start of the audible region, ms from the project start.

ClipBatchUndo schema

FieldTypeRequiredConstraintsDescription
inverse_opsarray | nullrequiredPOST 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).
reasonstringoptional
toolstringoptionalone of apply_clip_batch

Uses ClipBatchOp.

ClipFadesResult schema

FieldTypeRequiredConstraintsDescription
changedbooleanoptional
clipobject (Clip)required
clip.audioOffsetSecnumberrequiredSeconds into the source file where the audible region begins (left trim).
clip.audioSourceIdstring | nulloptionalOpaque 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.clipMutedbooleanoptional
clip.durationSecnumber | nulloptionalAudible length in seconds (after trimming).
clip.editUrlstringoptional
clip.fadeInobject | nulloptionalSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeIn.curvestringoptionalone of linear, equal_power, exp, log, s_curve
clip.fadeIn.durationSecnumberoptionalmin 0
clip.fadeOutobject | nulloptionalSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeOut.curvestringoptionalone of linear, equal_power, exp, log, s_curve
clip.fadeOut.durationSecnumberoptionalmin 0
clip.idstringrequired
clip.isBackingbooleanoptional
clip.isImportedbooleanoptional
clip.laneIdstring | nulloptional
clip.mutedbooleanoptional
clip.namestring | nulloptional
clip.parkedbooleanoptionalPresent (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.sourceDurationSecnumber | nulloptionalFull 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.startMsintegerrequiredWhere the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).
clip.takeGroupIdstringoptionalPresent only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).
clip.takeIndexintegeroptionalmin 0Order inside the stack, 0 = oldest pass. Present with takeGroupId.
clip.updatedAtstring | nulloptionalformat date-time
clip.volumenumberoptional
engine_appliedbooleanrequired
engine_reload_requiredbooleanrequired
fadeInobject | nullrequiredSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
fadeIn.curvestringoptionalone of linear, equal_power, exp, log, s_curve
fadeIn.durationSecnumberoptionalmin 0
fadeOutobject | nullrequiredSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
fadeOut.curvestringoptionalone of linear, equal_power, exp, log, s_curve
fadeOut.durationSecnumberoptionalmin 0
projectIdstringrequired
timelineRevisionstring | nulloptional
undoobjectrequired
undo.clip_idstringrequired
undo.fade_inobject | nullrequired
undo.fade_in.curvestringoptionalone of linear, equal_power, exp, log, s_curve
undo.fade_in.duration_secnumberoptionalmin 0
undo.fade_outobject | nullrequired
undo.fade_out.curvestringoptionalone of linear, equal_power, exp, log, s_curve
undo.fade_out.duration_secnumberoptionalmin 0
undo.opstringrequiredone of fades

Uses Clip.

ClipGainResult schema

FieldTypeRequiredConstraintsDescription
changedbooleanoptional
clipobject (Clip)required
clip.audioOffsetSecnumberrequiredSeconds into the source file where the audible region begins (left trim).
clip.audioSourceIdstring | nulloptionalOpaque 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.clipMutedbooleanoptional
clip.durationSecnumber | nulloptionalAudible length in seconds (after trimming).
clip.editUrlstringoptional
clip.fadeInobject | nulloptionalSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeIn.curvestringoptionalone of linear, equal_power, exp, log, s_curve
clip.fadeIn.durationSecnumberoptionalmin 0
clip.fadeOutobject | nulloptionalSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeOut.curvestringoptionalone of linear, equal_power, exp, log, s_curve
clip.fadeOut.durationSecnumberoptionalmin 0
clip.idstringrequired
clip.isBackingbooleanoptional
clip.isImportedbooleanoptional
clip.laneIdstring | nulloptional
clip.mutedbooleanoptional
clip.namestring | nulloptional
clip.parkedbooleanoptionalPresent (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.sourceDurationSecnumber | nulloptionalFull 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.startMsintegerrequiredWhere the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).
clip.takeGroupIdstringoptionalPresent only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).
clip.takeIndexintegeroptionalmin 0Order inside the stack, 0 = oldest pass. Present with takeGroupId.
clip.updatedAtstring | nulloptionalformat date-time
clip.volumenumberoptional
engine_appliedbooleanrequired
engine_reload_requiredbooleanrequired
gainnumberrequiredmin 0; max 4The saved clip gain (linear, 1 = unity); also clip.volume.
projectIdstringrequired
timelineRevisionstring | nulloptional
undoobjectrequired
undo.clip_idstringrequired
undo.gainnumberrequiredmin 0; max 4
undo.opstringrequiredone of gain

Uses Clip.

ClipMoveResult schema

FieldTypeRequiredConstraintsDescription
clipobject (Clip)required
clip.audioOffsetSecnumberrequiredSeconds into the source file where the audible region begins (left trim).
clip.audioSourceIdstring | nulloptionalOpaque 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.clipMutedbooleanoptional
clip.durationSecnumber | nulloptionalAudible length in seconds (after trimming).
clip.editUrlstringoptional
clip.fadeInobject | nulloptionalSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeIn.curvestringoptionalone of linear, equal_power, exp, log, s_curve
clip.fadeIn.durationSecnumberoptionalmin 0
clip.fadeOutobject | nulloptionalSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeOut.curvestringoptionalone of linear, equal_power, exp, log, s_curve
clip.fadeOut.durationSecnumberoptionalmin 0
clip.idstringrequired
clip.isBackingbooleanoptional
clip.isImportedbooleanoptional
clip.laneIdstring | nulloptional
clip.mutedbooleanoptional
clip.namestring | nulloptional
clip.parkedbooleanoptionalPresent (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.sourceDurationSecnumber | nulloptionalFull 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.startMsintegerrequiredWhere the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).
clip.takeGroupIdstringoptionalPresent only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).
clip.takeIndexintegeroptionalmin 0Order inside the stack, 0 = oldest pass. Present with takeGroupId.
clip.updatedAtstring | nulloptionalformat date-time
clip.volumenumberoptional
engine_movedbooleanrequired
engine_reload_requiredbooleanrequired
movedbooleanoptional
projectIdstringrequired
timelineRevisionstring | nulloptional
undoobjectrequired
undo.clip_idstringrequired
undo.lane_idstringrequired
undo.opstringrequiredone of move
undo.start_msintegerrequired

Uses Clip.

ClipMuteResult schema

FieldTypeRequiredConstraintsDescription
changedbooleanoptional
clipobject (Clip)required
clip.audioOffsetSecnumberrequiredSeconds into the source file where the audible region begins (left trim).
clip.audioSourceIdstring | nulloptionalOpaque 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.clipMutedbooleanoptional
clip.durationSecnumber | nulloptionalAudible length in seconds (after trimming).
clip.editUrlstringoptional
clip.fadeInobject | nulloptionalSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeIn.curvestringoptionalone of linear, equal_power, exp, log, s_curve
clip.fadeIn.durationSecnumberoptionalmin 0
clip.fadeOutobject | nulloptionalSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeOut.curvestringoptionalone of linear, equal_power, exp, log, s_curve
clip.fadeOut.durationSecnumberoptionalmin 0
clip.idstringrequired
clip.isBackingbooleanoptional
clip.isImportedbooleanoptional
clip.laneIdstring | nulloptional
clip.mutedbooleanoptional
clip.namestring | nulloptional
clip.parkedbooleanoptionalPresent (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.sourceDurationSecnumber | nulloptionalFull 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.startMsintegerrequiredWhere the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).
clip.takeGroupIdstringoptionalPresent only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).
clip.takeIndexintegeroptionalmin 0Order inside the stack, 0 = oldest pass. Present with takeGroupId.
clip.updatedAtstring | nulloptionalformat date-time
clip.volumenumberoptional
clipMutedbooleanrequired
engine_appliedbooleanrequired
engine_reload_requiredbooleanrequired
projectIdstringrequired
timelineRevisionstring | nulloptional
undoobjectrequired
undo.clip_idstringrequired
undo.mutedbooleanrequired
undo.opstringrequiredone of mute

Uses Clip.

ClipWaveform schema

FieldTypeRequiredConstraintsDescription
bucket_countintegeroptionalBuckets returned: min(buckets, end_frame - start_frame).
channel_countintegeroptional
channelsobject[]optionalOne entry per source channel; each array holds bucket_count values in [-1, 1] (rms in [0, 1]).
channels[].maxnumber[]optional
channels[].minnumber[]optional
channels[].rmsnumber[]optional
clipobjectoptionalThe clip's placement when the read was made.
clip.audio_offset_framesintegeroptional
clip.audio_offset_secnumberoptional
clip.duration_framesintegeroptional
clip.duration_secnumberoptional
clip.gainnumberoptional
clip.start_msnumberoptional
clip_idstringoptional
end_frameintegeroptionalEnd (exclusive) of the answered range.
frame_countintegeroptionalLength of the whole source, not of the clip's audible region.
frames_per_bucketnumberoptional(end_frame - start_frame) / bucket_count.
projectIdstringoptional
revisionstringoptionalIdentity 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_ratenumberoptionalSample rate of the source frames this read indexes.
session_recoveredstringoptionalone of session_load, clip_attachPresent only when the clip had to be loaded for this read.
start_frameintegeroptionalFirst frame of the answered range (after clamping to the source).

EngineReloadGuidance schema

FieldTypeRequiredConstraintsDescription
hintstringoptional
methodstringrequiredone of POST
pathstringrequired/api/v1/projects/{id}/engine:reload

InsertedClip schema

FieldTypeRequiredConstraintsDescription
audioOffsetSecnumberrequired
clipIdstringrequired
durationSecnumberrequired
engine_attachedbooleanrequired
laneIdstring | nulloptional
opstringoptionalone of insert, restore
sourceIdstring | nulloptional
startMsintegerrequired

TakeStackResult schema

FieldTypeRequiredConstraintsDescription
activeClipIdstring | nulloptionalThe audible take.
changedbooleanoptional
engine_appliedbooleanrequired
engine_reload_requiredbooleanrequired
groupIdstringrequired
projectIdstringrequired
takesobject (Clip)[]requiredThe stack, oldest take first.
timelineRevisionstring | nulloptional
undoobjectoptional
undo.clip_idstring | nulloptionalPUT this clip's take again to undo (null: the stack had no audible take).
undo.opstringrequiredone of take

Uses Clip.

Sample edits

Audacity Draw-tool (pencil) edits of a clip's source samples, copy-on-write, with one-step undo.

POST /api/v1/projects/{project_id}/clips/{clip_id}/sample-edits

Edit clip samples (pencil)

OperationeditClipSamples
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentedit_clip_samples

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
editsobject (SampleEditRange)[]requiredmin items 1; max items 64
expected_revisionstringoptionalpattern ^[a-f0-9]{16}$Alternative to If-Match.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Uses SampleEditRange.

Responses

StatusMeaningBodyHeaders
200OKSampleEditResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

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.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/sample-edits" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"edits": []}'

POST /api/v1/projects/{project_id}/clips/{clip_id}/sample-edits:undo

Undo the last sample edit

OperationundoClipSampleEdit
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentundo_clip_sample_edit

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_revisionstringoptionalpattern ^[a-f0-9]{16}$Alternative to If-Match.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKSampleEditUndoResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: nothing_to_undo, revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/sample-edits:undo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

SampleEditRange schema

FieldTypeRequiredConstraintsDescription
channelintegerrequiredmin 0
start_frameintegerrequiredmin 0
valuesnumber[]requiredmin items 1

SampleEditResult schema

FieldTypeRequiredConstraintsDescription
changed_rangesany[]optional
channel_countinteger | nulloptional
clip_idstringrequired
encrypted_at_restbooleanoptional
engine_reload_requiredbooleanoptional
frame_countinteger | nulloptional
previous_revisionstring | nulloptional
projectIdstringoptional
replaybooleanoptional
revisionstringrequiredpattern ^[a-f0-9]{16}$
sample_ratenumber | nulloptional
undoobjectoptional

SampleEditUndoResult schema

FieldTypeRequiredConstraintsDescription
clip_idstringrequired
engine_reload_requiredbooleanoptional
projectIdstringoptional
remaining_undo_stepsintegeroptional
replaybooleanoptional
revisionstringrequired
undone_revisionstringoptional

Region effects

Audacity-style "select, then Effect" on a region of one clip: catalog, non-destructive preview, and apply as a job.

POST /api/v1/projects/{project_id}/clips/{clip_id}/region-effects:apply

Apply an effect to a region

OperationapplyRegionEffect
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key If-Match
MCP equivalentapply_effect_to_region

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
allow_clippingbooleanoptionaldefault false
crossfade_msnumberoptionaldefault 0; min 0; max 100
dry_runbooleanoptionaldefault false
effectstringrequiredmax length 32An effect id from the catalog.
end_frameintegeroptionalmin 0
end_msnumberoptionalmin 0
idempotency_keystringoptionalmax length 128
modestringoptionaldefault "split"; one of split, in_placesplit = split the clip and fill the gap (default); in_place = keep one clip and write a new source version of it.
paramsobjectoptionalTyped parameters from the catalog; omitted ones take their defaults.
sample_ratenumberoptionalmin 8000; max 384000
splitbooleanoptionalfalse = mode "in_place".
start_frameintegeroptionalmin 0
start_msnumberoptionalmin 0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
wait_secnumberoptionaldefault 20; min 0; max 50

Responses

StatusMeaningBodyHeaders
200OKRegionEffectJobETag
202The job is still running (status queued|running, job_id); poll the Location header.RegionEffectJob
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

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.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/region-effects:apply" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"effect": "<effect>"}'

POST /api/v1/projects/{project_id}/clips/{clip_id}/region-effects:preview

Preview an effect on a region

OperationpreviewRegionEffect
Scopedaw:read
Project roleviewer
Rate classai (interactive + Mozart AI quota)
MCP equivalentpreview_region_effect

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128

Request body application/json

FieldTypeRequiredConstraintsDescription
context_msnumberoptionaldefault 0; min 0; max 2000
crossfade_msnumberoptionaldefault 0; min 0; max 100
effectstringrequiredmax length 32An effect id from the catalog.
end_frameintegeroptionalmin 0
end_msnumberoptionalmin 0
paramsobjectoptionalTyped parameters from the catalog; omitted ones take their defaults.
sample_ratenumberoptionalmin 8000; max 384000
start_frameintegeroptionalmin 0
start_msnumberoptionalmin 0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

Error codes specific to this operation: region_too_long. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/region-effects:preview" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"effect": "<effect>"}'

GET /api/v1/projects/{project_id}/region-effect-jobs/{job_id}

Get a region effect job

OperationgetRegionEffectJob
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalentget_region_effect_job

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).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
job_idpathstringrequiredmax length 128
wait_secqueryintegeroptionaldefault 0; min 0; max 50

Responses

StatusMeaningBodyHeaders
200OKRegionEffectJob
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/region-effect-jobs/{job_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/region-effects

List region effects

OperationlistRegionEffects
Scopedaw:read
Project rolenot pre-checked
Rate classinteractive
MCP equivalentlist_region_effects

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.

Responses

StatusMeaningBodyHeaders
200OKRegionEffectCatalog
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/region-effects" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

RegionEffectCatalog schema

FieldTypeRequiredConstraintsDescription
effectsobject[]optional

RegionEffectJob schema

FieldTypeRequiredConstraintsDescription
assetobjectoptional
clips_afterany[]optional
dry_runbooleanoptional
engine_reload_requiredbooleanoptional
engine_statusstringoptionalin_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_swappedbooleanoptional
idempotency_keystringoptional
job_idstringoptional
modestringoptionalone of split, in_place
previous_revisionstringoptional
projectIdstringoptional
regionobjectoptional
replaybooleanoptional
revisionstringoptionalin_place: the clip's new source revision.
rolled_backbooleanoptionalfailed in_place apply: whether the new source version was unbound (true = nothing changed).
statusstringoptionalone of queued, running, done, failed
stepstring | nulloptional
timelineRevisionstring | nulloptional
undoobjectoptional

Media

Audio uploads and imports, attaching stored clips to the live session, and the Sound Library.

GET /api/v1/library/assets

List my Sound Library

OperationlistLibraryAssets
Scopelibrary:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated
MCP equivalentlist_my_library_assets

The caller's Sound Library for one asset type: assets they made, added from the marketplace, were invited to, plus the built-in packs.

Parameters

ParameterInTypeRequiredConstraintsDescription
asset_typequerystringrequiredone of beat_kit, pattern, sound_pack, sound, plugin, audio_effectMarketplace asset type.
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (LibraryAsset)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses LibraryAsset, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/library/assets?asset_type=<asset_type>" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/media/upload

Upload an audio file

OperationuploadAudio
Scopemedia:upload
Project rolenot pre-checked
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentupload_audio

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

ParameterInTypeRequiredConstraintsDescription
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
base64stringrequiredmin length 4File bytes, base64 (a data: URL is accepted).
filenamestringoptionalmax length 160
kindstringoptionaldefault "vocal"; one of vocal, audio, backing
new_projectbooleanoptionaldefault false
project_idstringoptionalmax length 64
startMsintegeroptionalmin 0; max 86400000Alias of start_ms.
start_msintegeroptionaldefault 0; min 0; max 86400000Timeline position of the new clip in ms (vocal/audio only).
titlestringoptionalmax length 120
track_idstringoptionalmax length 64

Responses

StatusMeaningBodyHeaders
201OKMediaAddResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
413upload_too_large / file_too_large: the decoded file exceeds the limit.
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/media/upload" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"base64": "<base64>"}'

POST /api/v1/projects/{project_id}/audio:fromUrl

Add audio from a URL

OperationaddAudioFromUrl
Scopemedia:upload
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentadd_audio_from_url

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
kindstringoptionaldefault "vocal"; one of vocal, audio, backing
titlestringoptionalmax length 120
urlstringrequiredmin length 1; max length 8192

Responses

StatusMeaningBodyHeaders
201OKMediaAddResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
413file_too_large: the downloaded file exceeds the limit.
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/audio:fromUrl" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/audio.wav"}'

POST /api/v1/projects/{project_id}/clips/{clip_id}:attachToSession

Attach a stored clip to the live session

OperationattachClipToSession
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (attach_clip_to_session)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
namestringoptionalmax length 255
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}:attachToSession" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/daw-import/upload

Replace a project's contents with a DAW project file

OperationimportDawProjectIntoProject
Scopemedia:upload
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentimport_daw_project (project_id)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
base64stringrequiredmin length 4File bytes, base64 (a data: URL is accepted).
filenamestringoptionalmax length 160e.g. Song.flp or Song.zip.
formatstringrequiredone of flp

Responses

StatusMeaningBodyHeaders
200OKDawImportResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
413file_too_large: the decoded file exceeds 25 MB.
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

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.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/daw-import/upload" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"format": "flp", "base64": "<base64>"}'

DawImportResult schema

The MCP import_daw_project result (with project_id).

FieldTypeRequiredConstraintsDescription
createdbooleanoptionalAlways false here: nothing new is created.
engineobjectoptionalAn open live session is reloaded from the saved project in the background; reloadEngineSession reloads and waits.
engine.notestringoptional
engine.reloadstringoptionalone of scheduled, skipped
formatstringrequiredone of flp
okbooleanrequired
previousSaveIdstringrequiredThe save written with the replace (owned by the project owner, restorable by the owner and every editor): restoreProjectSave with it undoes the import.
projectobjectrequired
projectUrlstringrequired
replacedbooleanrequiredtrue: the project's contents were replaced.
titlestringoptional
warningsstring[]optional

LibraryAsset schema

The compact marketplace asset card (fields follow MCP list_my_library_assets).

FieldTypeRequiredConstraintsDescription
assetTypestringoptional
idstringrequired
namestringoptional

MediaAddResult schema

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.

FieldTypeRequiredConstraintsDescription
backingTrackobjectoptional
clipIdstringoptional
durationSecnumber | nulloptional
editUrlstringoptional
engineErrorobjectoptional
engine_attachedbooleanoptionaluploadAudio: 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_requiredbooleanoptionalThe clip is saved but an open live session could not load it: attachClipToSession or a session reload plays it.
kindstringoptional
laneIdstringoptional
okbooleanoptional
postCommitErrorobjectoptional
projectobjectoptional
projectUrlstringoptional
startMsintegeroptionalWhere the new clip sits on the timeline (ms).
titlestringoptional

Transport

Live Mozart transport of a project's session (play/pause/seek/range/loop).

GET /api/v1/projects/{project_id}/transport

Get transport status

OperationgetTransport
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalenttransport_control (status) / execute_pro_action (get_transport)

Playhead, playing, loop and play_range state of the live session.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKTransportState
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409engine_unavailable: the project has no live engine target.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/transport" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/projects/{project_id}/transport/clock

Get the transport clock

OperationgetTransportClock
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalentexecute_pro_action (get_transport_clock)

Lock-free engine clock: position_seconds, is_playing, sample_rate, producer_latency_seconds (cursor source of truth; poll it to draw a playhead).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKTransportState
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409engine_unavailable: the project has no live engine target.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/transport/clock" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

PUT /api/v1/projects/{project_id}/transport/loop

Enable / disable the transport loop

OperationsetLoop
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_transport_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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
enabledbooleanrequired
end_secnumberoptionalmin 0
end_tickintegeroptionalmin 0
start_secnumberoptionalmin 0
start_tickintegeroptionalmin 0
timing_map_revisionintegeroptionalmin 0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: loop_region_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/transport/loop" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"enabled": false}'

POST /api/v1/projects/{project_id}/transport/pause

Pause playback

Operationpause
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalenttransport_control (pause)

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/transport/pause" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/transport/play

Start playback (optionally after a count-in)

Operationplay
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalenttransport_control (play) / execute_pro_action (transport_count_in)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bpmnumberoptionalmin 20; max 400With count_in_beats: the tempo (constant tempo maps).
count_in_beatsintegeroptionalmin 1; max 16Count-in clicks before the transport starts.
seek_secondsnumberoptionalmin 0With count_in_beats: park the transport here first.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
waitbooleanoptionaldefault trueWith count_in_beats: answer on the boundary.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: count_in_cancelled. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/transport/play" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/transport/play-range

Play a range once

OperationplayRange
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalenttransport_control (play_range)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
end_frameintegeroptionalmin 1
end_secnumberoptional> 0
sample_ratenumberoptionalmin 8000; max 384000
start_frameintegeroptionalmin 0
start_secnumberoptionalmin 0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/transport/play-range" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/transport/seek

Move the playhead

Operationseek
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalenttransport_control (seek|seek_and_play)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
playbooleanoptionaldefault false
secondsnumberoptionalmin 0
tickintegeroptionalmin 0
timing_map_revisionintegeroptionalmin 0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: no_audio_loaded, timing_map_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/transport/seek" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

TransportState schema

Engine transport state: position, playing, loop and play_range {active, start_sec, end_sec, start_frame, end_frame, stop_reason, stopped_at_frame}.

JSON object with any fields.

Mixer

Lane faders, pan, mute/solo and the project's master output fader.

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/gain

Set a lane fader

OperationsetLaneGain
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_track_gain)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
gainnumberrequiredmin 0; max 16
persistbooleanoptionaldefault truefalse while sweeping (live only), then a final call without it.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/gain" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"gain": 0.0}'

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/mute

Mute / unmute a lane

OperationsetLaneMute
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_track_muted)

Exactly like the lane's M button (any lane kind; lane_id 'backing' for the beat).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
mutedbooleanrequired
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/mute" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"muted": false}'

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/pan

Pan a lane

OperationsetLanePan
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_track_pan)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
pannumberrequiredmin -1; max 1
persistbooleanoptionaldefault true
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/pan" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"pan": -1.0}'

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/solo

Solo / unsolo a lane

OperationsetLaneSolo
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_track_soloed)

Exactly like the lane's S button (any lane kind; lane_id 'backing' for the beat).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
soloedbooleanrequired
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/solo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"soloed": false}'

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/stereo

Set a lane's stereo tools

OperationsetLaneStereo
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_track_stereo)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
persistbooleanoptionaldefault truefalse while sweeping (live only), then a final call without it.
polarity_invertedbooleanoptionalPhase invert (both channels).
separationnumberoptionalmin -1; max 1Stereo separation, -1 (mono) .. 0 (neutral) .. +1 (side doubled); FL shows -100..+100 %. Applied after the insert chain, before the fader.
swap_lrbooleanoptionalSwap the left and right channels.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: engine_update_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/stereo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

PUT /api/v1/projects/{project_id}/master/gain

Set the master output fader

OperationsetMasterGain
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_bus_gain bus_id=master)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
gainnumberrequiredmin 0; max 4
persistbooleanoptionaldefault true
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/master/gain" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"gain": 0.0}'

PUT /api/v1/projects/{project_id}/master/pan

Pan the master output

OperationsetMasterPan
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_bus_pan bus_id=master)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
pannumberrequiredmin -1; max 1
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/master/pan" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"pan": -1.0}'

Buses

Mixer buses, lane routing and bus plugin state.

GET /api/v1/projects/{project_id}/buses

List buses

OperationlistBuses
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourpaginated
MCP equivalentlist_buses

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (Bus)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Bus, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/buses" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/buses

Create a bus

OperationcreateBus
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentcreate_bus

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequiredmin length 1; max length 64
display_orderintegeroptionalmin 1; max 1024
gainnumberoptionalmin 0; max 4
mutedbooleanoptional
namestringoptionalmax length 255
plugin_chainany[]optionalmax items 32
soloedbooleanoptional

Responses

StatusMeaningBodyHeaders
201OKBusResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/buses" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>"}'

PATCH /api/v1/projects/{project_id}/buses/{bus_id}

Update a bus

OperationupdateBus
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentupdate_bus

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
display_orderintegeroptionalmin 1; max 1024
gainnumberoptionalmin 0; max 4
mutedbooleanoptional
namestringoptionalmax length 255
plugin_chainany[]optionalmax items 32
soloedbooleanoptional

Responses

StatusMeaningBodyHeaders
200OKBusResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PATCH "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

DELETE /api/v1/projects/{project_id}/buses/{bus_id}

Delete a bus

OperationdeleteBus
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key destructive (the DELETE is the confirmation)
MCP equivalentdelete_bus

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
busIdstringoptional
deletedbooleanoptional
liveEngineobjectoptionalWhether 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.appliedbooleanrequiredtrue = the running engine session took the change (the next audio block hears it).
liveEngine.reasonstringoptionalone of no_live_session, engine_rejected, engine_unreachableWhy it was not applied live. The saved change still stands; the next session load plays it.
okbooleanoptional
projectIdstringoptional

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

PUT /api/v1/projects/{project_id}/buses/{bus_id}/gain

Set a bus fader (live)

OperationsetBusGain
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_bus_gain)

Linear gain on the live engine bus; saved with the project unless persist=false.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
gainnumberrequiredmin 0; max 4
persistbooleanoptional
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/gain" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"gain": 0.0}'

PUT /api/v1/projects/{project_id}/buses/{bus_id}/mute

Mute / unmute a bus (live)

OperationsetBusMute
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_bus_muted)

Mute or unmute the live engine bus.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
mutedbooleanrequired
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/mute" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"muted": false}'

PUT /api/v1/projects/{project_id}/buses/{bus_id}/pan

Pan a bus (live)

OperationsetBusPan
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_bus_pan)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
pannumberrequiredmin -1; max 1
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/pan" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"pan": -1.0}'

GET /api/v1/projects/{project_id}/buses/{bus_id}/plugin-state

Saved plugin state of a bus

OperationgetBusPluginState
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalentget_bus_plugin_state

Persisted plugin snapshots on a bus chain (keys, types, positions, hashes). bus_id 'master' lists the saved master insert chain (rows the engine writes).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKBusPluginState
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugin-state" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

PUT /api/v1/projects/{project_id}/buses/{bus_id}/plugin-state

Save one bus plugin's state

OperationsaveBusPluginState
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentsave_bus_plugin_state

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
chain_positionintegeroptionalmin 0; max 1024
plugin_keystringrequiredmin length 1; max length 64
stateobjectoptional
state_hashstringoptionalmax length 128

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

Error codes specific to this operation: not_found. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugin-state" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"plugin_key": "<plugin_key>"}'

PUT /api/v1/projects/{project_id}/buses/{bus_id}/solo

Solo / unsolo a bus (live)

OperationsetBusSolo
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_bus_soloed)

Solo or unsolo the live engine bus.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
soloedbooleanrequired
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/solo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"soloed": false}'

PUT /api/v1/projects/{project_id}/buses/{bus_id}/stereo

Set a bus's stereo tools (live)

OperationsetBusStereo
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_bus_stereo)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
persistbooleanoptional
polarity_invertedbooleanoptionalPhase invert (both channels).
separationnumberoptionalmin -1; max 1Stereo separation, -1 (mono) .. 0 (neutral) .. +1 (side doubled); FL shows -100..+100 %. Applied after the insert chain, before the fader.
swap_lrbooleanoptionalSwap the left and right channels.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: engine_update_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/stereo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/routing

Route a lane to a bus

OperationsetLaneRouting
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentset_lane_routing

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequiredmin length 1; max length 64
expected_mix_revisionintegeroptionalmin 0mix_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>".

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
laneobjectoptional
okbooleanoptional
projectIdstringoptional

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/routing" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>"}'

GET /api/v1/projects/{project_id}/lanes/{lane_id}/sends

List a lane's aux sends

OperationlistLaneSends
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalentexecute_pro_action (list_track_sends)

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
laneIdstringrequired
projectIdstringrequired
sendsobject (LaneSend)[]required

Uses LaneSend.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/sends" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/sends/{bus_id}

Create or update a lane aux send

OperationsetLaneSend
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_track_send)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_mix_revisionintegeroptionalmin 0mix_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>".
levelnumberrequiredmin 0; max 2
pre_faderbooleanoptional
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKLaneSendResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: invalid_argument. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/sends/{bus_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"level": 0.0}'

DELETE /api/v1/projects/{project_id}/lanes/{lane_id}/sends/{bus_id}

Remove a lane aux send

OperationdeleteLaneSend
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match destructive (the DELETE is the confirmation)
MCP equivalentexecute_pro_action (remove_track_send)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Responses

StatusMeaningBodyHeaders
200OKLaneSendResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/sends/{bus_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)"

Bus schema

FieldTypeRequiredConstraintsDescription
busIdstringrequired
displayOrderinteger | nulloptional
gainnumberoptional
idstringoptional
mutedbooleanoptional
namestring | nulloptional
pluginChainany[]optional
polarityInvertedbooleanoptional
soloedbooleanoptional
stereoSeparationnumberoptionaldefault 0; min -1; max 1
swapLrbooleanoptional

BusPluginState schema

FieldTypeRequiredConstraintsDescription
busIdstringrequired
pluginsobject[]required
projectIdstringrequired

BusResult schema

FieldTypeRequiredConstraintsDescription
busobject (Bus)optional
bus.busIdstringrequired
bus.displayOrderinteger | nulloptional
bus.gainnumberoptional
bus.idstringoptional
bus.mutedbooleanoptional
bus.namestring | nulloptional
bus.pluginChainany[]optional
bus.polarityInvertedbooleanoptional
bus.soloedbooleanoptional
bus.stereoSeparationnumberoptionaldefault 0; min -1; max 1
bus.swapLrbooleanoptional
liveEngineobjectoptionalWhether 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.appliedbooleanrequiredtrue = the running engine session took the change (the next audio block hears it).
liveEngine.reasonstringoptionalone of no_live_session, engine_rejected, engine_unreachableWhy it was not applied live. The saved change still stands; the next session load plays it.
okbooleanoptional
projectIdstringoptional

Uses Bus.

LaneSend schema

FieldTypeRequiredConstraintsDescription
busIdstringrequired
levelnumberrequiredmin 0; max 2Linear send level (1 = unity, 2 = +6 dB).
preFaderbooleanrequiredtrue = tapped before the lane fader and pan (mute/solo still silence it); false = after them.

LaneSendResult schema

FieldTypeRequiredConstraintsDescription
busIdstringrequired
dbPersistedbooleanoptional
laneIdstringrequired
mixRevisioninteger | nulloptional
okbooleanrequired
previousobject (LaneSend) | nullrequired
projectIdstringrequired
sendobject (LaneSend) | nullrequired
undoobject | nullrequiredThe request that undoes this write (send it with the new mix ETag), or null when there is nothing to undo.

Uses LaneSend.

Plugins

Lane and bus plugin chains, parameters, presets, saved state, native effects and plugin editor windows.

GET /api/v1/projects/{project_id}/buses/{bus_id}/plugins

List a bus's live plugin chain (master included)

OperationlistBusPlugins
Scopedaw:read
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (list_buses)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
busIdstringrequired
chainLatencySamplesinteger | nulloptional
livebooleanrequired
masterEffectsSupportedbooleanoptionalThe engine host runs the master insert chain.
pluginsobject[]required
projectIdstringrequired

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

DELETE /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}

Remove a bus plugin

OperationdeleteBusPlugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key destructive (the DELETE is the confirmation)
MCP equivalentexecute_pro_action (delete_bus_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON any.

Uses EngineActionResult, BusPluginRestoreState.

Error codes specific to this operation: master_effects_not_supported. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

PUT /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/bypass

Bypass / re-enable a bus plugin

OperationsetBusPluginBypassed
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_bus_plugin_bypassed)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bypassedbooleanrequired
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: master_effects_not_supported. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/bypass" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bypassed": false}'

GET /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor

Plugin editor window status (master bus)

OperationgetBusPluginEditorStatus
Scopedaw:read
Project roleeditor
Rate classinteractive

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409editor_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.).
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: editor_not_available. 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" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/frame

Current master-bus plugin editor frame (JPEG)

OperationgetBusPluginEditorFrame
Scopedaw:read
Project roleeditor
Rate classeditor (own plug-in editor buckets)
BehaviourETag / If-None-Match

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
max_widthqueryintegeroptionaldefault 640; min 64; max 1280Scale the frame to at most this width.
wait_msqueryintegeroptionaldefault 0; min 0; max 500With if_revision: wait up to this long for a changed frame.
if_revisionquerystringoptionalmax length 128X-Editor-Revision of the frame you hold.
expected_plugin_instance_idquerystringoptionalmax length 128Refuse (409 plugin_instance_mismatch) if the slot's editor belongs to another instance.

Responses

StatusMeaningBodyHeaders
200OK
304Unchanged since if_revision / If-None-Match (no body).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409editor_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).).
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

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"

POST /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/pointer

Send a pointer event to a master-bus plugin editor

OperationsendBusPluginEditorPointer
Scopedaw:write
Project roleeditor
Rate classeditor (own plug-in editor buckets)
BehaviourIdempotency-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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
alt_keybooleanoptional
buttonintegeroptionalmin -1; max 4
buttonsintegeroptionalmin 0; max 31
ctrl_keybooleanoptional
gesture_idstringoptionalmax length 64
meta_keybooleanoptional
phasestringrequiredone of down, move, up
pressurenumberoptionalmin 0; max 1
shift_keybooleanoptional
x_normnumberrequiredmin 0; max 1
y_normnumberrequiredmin 0; max 1

Responses

StatusMeaningBodyHeaders
200OKPluginEditorInputResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: editor_not_available, editor_not_open. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/pointer" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"phase": "down", "x_norm": 0.0, "y_norm": 0.0}'

POST /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/scroll

Send a scroll (wheel) event to a master-bus plugin editor

OperationsendBusPluginEditorScroll
Scopedaw:write
Project roleeditor
Rate classeditor (own plug-in editor buckets)
BehaviourIdempotency-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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
alt_keybooleanoptional
ctrl_keybooleanoptional
delta_modeintegeroptionaldefault 0; one of 0, 1, 2
delta_xnumberoptionaldefault 0; min -10000; max 10000
delta_ynumberrequiredmin -10000; max 10000
meta_keybooleanoptional
shift_keybooleanoptional
x_normnumberrequiredmin 0; max 1
y_normnumberrequiredmin 0; max 1

Responses

StatusMeaningBodyHeaders
200OKPluginEditorInputResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: editor_not_available, editor_not_open. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/scroll" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"x_norm": 0.0, "y_norm": 0.0, "delta_y": -10000.0}'

POST /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/type

Type text or a key into a master-bus plugin editor

OperationsendBusPluginEditorKeys
Scopedaw:write
Project roleeditor
Rate classeditor (own plug-in editor buckets)
BehaviourIdempotency-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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
alt_keybooleanoptional
ctrl_keybooleanoptional
keycodeintegeroptionalmin 0; max 65535
meta_keybooleanoptional
shift_keybooleanoptional
textstringoptionalmin length 1; max length 256

Responses

StatusMeaningBodyHeaders
200OKPluginEditorInputResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: editor_not_available, editor_not_open. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor/type" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor:close

Close a master-bus plugin editor window

OperationcloseBusPluginEditor
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: editor_not_available. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor:close" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor:open

Open (mirror) a master-bus plugin editor window

OperationopenBusPluginEditor
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: editor_not_available. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor:open" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor:release

Release a master-bus plugin editor window

OperationreleaseBusPluginEditor
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: editor_not_available. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/editor:release" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

PUT /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/mix

Set a bus plugin slot's wet/dry mix

OperationsetBusPluginMix
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_bus_plugin_mix)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
mixnumberrequiredmin 0; max 1Wet/dry mix of the slot: 0 = dry (slot input), 1 = fully wet (default).
persistbooleanoptionaldefault true
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: engine_update_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/mix" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"mix": 0.0}'

PUT /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/parameters/{parameter_index}

Set a bus plugin parameter

OperationsetBusPluginParameter
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_bus_plugin_parameter)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
parameter_indexpathintegerrequiredmin 0; max 100000
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
value_normnumberrequiredmin 0; max 1

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: master_effects_not_supported. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/parameters/{parameter_index}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"value_norm": 0.0}'

POST /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}:move

Reorder a bus plugin

OperationmoveBusPlugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (move_bus_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
to_indexintegerrequiredmin 0; max 64
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: master_effects_not_supported. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}:move" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"to_index": 0}'

PUT /api/v1/projects/{project_id}/clips/{clip_id}/plugin-chain-state

Save a take's chain on/off + added modules

OperationsaveClipPluginChainState
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentsave_track_chain_state

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
plugin_chain_addedobjectoptional
plugin_chain_enabledobjectoptional
vocal_gainnumberoptionalmin 0; max 4

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
okbooleanoptional
projectIdstringoptional
savedstring[]optional
trackIdstringoptional

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/plugin-chain-state" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/v1/projects/{project_id}/clips/{clip_id}/plugin-state

Saved plugin snapshots of a take

OperationgetSavedClipPluginState
Scopedaw:read
Project roleeditor
Rate classinteractive
MCP equivalentget_saved_plugin_state (track_id)

Persisted plugin snapshots stored on one take (clip).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKPluginSavedState
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/plugin-state" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/lanes/{lane_id}/effect-chain:copy

Copy another lane's effect chain onto this lane

OperationcopyLaneEffectChain
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentcopy_lane_effect_chain

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
source_lane_idstringrequiredmin length 1; max length 64

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
engine_appliedbooleanrequired
engine_reload_requiredbooleanrequired
engine_skippedobject[]optional
laneIdstringrequired
okbooleanrequired
projectIdstringrequired
sourceLaneIdstringrequired

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/effect-chain:copy" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"source_lane_id": "<source_lane_id>"}'

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/effects/{effect}/enabled

Enable / disable a Nectar effect module

OperationsetEffectEnabled
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentset_effect_enabled

Turn one module of the lane's Nectar instance on or off (undoable). effect: compressor | deesser | delay | dimension | eq | gate | reverb | saturation.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
effectpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
enabledbooleanrequired
plugin_indexintegeroptionalmin 0; max 64
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/effects/{effect}/enabled" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"enabled": false}'

POST /api/v1/projects/{project_id}/lanes/{lane_id}/effects/{effect}/wet

Adjust a Nectar effect module's wet mix

OperationadjustEffectWet
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentadjust_effect_wet

Relative nudge (direction increase|decrease + amount) or absolute target_percent 0-100 (undoable).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
effectpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
amountstringoptional
directionstringoptionalone of increase, decrease
plugin_indexintegeroptionalmin 0; max 64
target_percentnumberoptionalmin 0; max 100
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/effects/{effect}/wet" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/v1/projects/{project_id}/lanes/{lane_id}/plugin-state

Saved plugin snapshots of a lane

OperationgetSavedLanePluginState
Scopedaw:read
Project roleeditor
Rate classinteractive
MCP equivalentget_saved_plugin_state (lane_id)

Persisted (session-independent) lane chain: plugin keys, types, positions, bypass, state hashes, voice settings. Live values come from /plugins/{index}/state.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKPluginSavedState
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugin-state" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/projects/{project_id}/lanes/{lane_id}/plugins

List a lane's live plugin chain

OperationlistLanePlugins
Scopedaw:read
Project roleeditor
Rate classinteractive
MCP equivalentlist_plugins

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409lane_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.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: editor_not_available. 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" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/bypass

Bypass / re-enable a lane plugin

OperationsetLanePluginBypassed
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentset_plugin_bypassed

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bypassedbooleanrequired
expected_plugin_instance_idstringoptionalmax length 128instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.
expected_plugin_typestringoptionalmax length 128type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: plugin_instance_mismatch. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/bypass" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bypassed": false}'

GET /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor

Plugin editor window status

OperationgetPluginEditorStatus
Scopedaw:read
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (get_plugin_editor_status)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409editor_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.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/frame

Current plugin editor frame (JPEG)

OperationgetPluginEditorFrame
Scopedaw:read
Project roleeditor
Rate classeditor (own plug-in editor buckets)
BehaviourETag / If-None-Match

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
max_widthqueryintegeroptionaldefault 640; min 64; max 1280Scale the frame to at most this width.
wait_msqueryintegeroptionaldefault 0; min 0; max 500With if_revision: wait up to this long for a changed frame.
if_revisionquerystringoptionalmax length 128X-Editor-Revision of the frame you hold.
expected_plugin_instance_idquerystringoptionalmax length 128Refuse (409 plugin_instance_mismatch) if the slot's editor belongs to another instance.

Responses

StatusMeaningBodyHeaders
200OK
304Unchanged since if_revision / If-None-Match (no body).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409editor_not_open, target_not_loaded, plugin_instance_mismatch or editor_not_available (a native effect: no editor window; final, no engine call).
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

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"

POST /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/pointer

Send a pointer event to a plugin editor

OperationsendPluginEditorPointer
Scopedaw:write
Project roleeditor
Rate classeditor (own plug-in editor buckets)
BehaviourIdempotency-Key

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
alt_keybooleanoptional
buttonintegeroptionalmin -1; max 4
buttonsintegeroptionalmin 0; max 31
ctrl_keybooleanoptional
gesture_idstringoptionalmax length 64
meta_keybooleanoptional
phasestringrequiredone of down, move, up
pressurenumberoptionalmin 0; max 1
shift_keybooleanoptional
x_normnumberrequiredmin 0; max 1
y_normnumberrequiredmin 0; max 1

Responses

StatusMeaningBodyHeaders
200OKPluginEditorInputResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: editor_not_open. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/pointer" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"phase": "down", "x_norm": 0.0, "y_norm": 0.0}'

POST /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/scroll

Send a scroll (wheel) event to a plugin editor

OperationsendPluginEditorScroll
Scopedaw:write
Project roleeditor
Rate classeditor (own plug-in editor buckets)
BehaviourIdempotency-Key

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
alt_keybooleanoptional
ctrl_keybooleanoptional
delta_modeintegeroptionaldefault 0; one of 0, 1, 2
delta_xnumberoptionaldefault 0; min -10000; max 10000
delta_ynumberrequiredmin -10000; max 10000
meta_keybooleanoptional
shift_keybooleanoptional
x_normnumberrequiredmin 0; max 1
y_normnumberrequiredmin 0; max 1

Responses

StatusMeaningBodyHeaders
200OKPluginEditorInputResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: editor_not_open. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/scroll" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"x_norm": 0.0, "y_norm": 0.0, "delta_y": -10000.0}'

POST /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/type

Type text or a key into a plugin editor

OperationsendPluginEditorKeys
Scopedaw:write
Project roleeditor
Rate classeditor (own plug-in editor buckets)
BehaviourIdempotency-Key

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
alt_keybooleanoptional
ctrl_keybooleanoptional
keycodeintegeroptionalmin 0; max 65535
meta_keybooleanoptional
shift_keybooleanoptional
textstringoptionalmin length 1; max length 256

Responses

StatusMeaningBodyHeaders
200OKPluginEditorInputResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: editor_not_open. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor/type" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor:close

Close a plugin editor window

OperationclosePluginEditor
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (close_plugin_editor)

Close the slot's editor window.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor:close" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor:open

Open (mirror) a plugin editor window

OperationopenPluginEditor
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (open_plugin_editor)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor:open" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor:release

Release a plugin editor window

OperationreleasePluginEditor
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (release_plugin_editor)

Release this caller's hold on the slot's editor window.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/editor:release" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/mix

Set a lane plugin slot's wet/dry mix

OperationsetLanePluginMix
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentset_plugin_mix

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_plugin_instance_idstringoptionalmax length 128instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.
expected_plugin_typestringoptionalmax length 128type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.
mixnumberrequiredmin 0; max 1Wet/dry mix of the slot: 0 = dry (slot input), 1 = fully wet (default).
persistbooleanoptionaldefault truefalse while dragging (live only), then a final call without it.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: engine_update_required, plugin_instance_mismatch. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/mix" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"mix": 0.0}'

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/parameters/{parameter_index}

Set a lane plugin parameter

OperationsetLanePluginParameter
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentset_plugin_parameter

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
parameter_indexpathintegerrequiredmin 0; max 100000
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_plugin_instance_idstringoptionalmax length 128instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.
expected_plugin_typestringoptionalmax length 128type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.
expected_value_normnumberoptionalmin 0; max 1valueNorm 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_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
valuenumberoptionalPhysical value (native effects).
value_normnumberoptionalmin 0; max 1

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: plugin_instance_mismatch, plugin_parameter_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/parameters/{parameter_index}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/preset:apply

Apply a named preset to a lane plugin

OperationapplyLanePluginPreset
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentapply_plugin_preset

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_plugin_instance_idstringoptionalmax length 128instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.
expected_plugin_typestringoptionalmax length 128type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.
presetstringrequiredmin length 1; max length 200
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: plugin_instance_mismatch, preset_not_supported. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/preset:apply" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"preset": "<preset>"}'

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/program

Select a lane plugin program

OperationsetLanePluginProgram
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_lane_plugin_program)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_plugin_instance_idstringoptionalmax length 128instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.
expected_plugin_typestringoptionalmax length 128type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.
programintegerrequiredmin 0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: plugin_instance_mismatch. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/program" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"program": 0}'

GET /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/snapshot

Snapshot a lane plugin for an in-place restore

OperationgetLanePluginSnapshot
Scopedaw:read
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (snapshot_lane_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
expected_plugin_instance_idquerystringoptionalmax length 128instance_id from listLanePlugins; 409 plugin_instance_mismatch if the slot holds another.
expected_plugin_typequerystringoptionalmax length 128type_id from listLanePlugins; 409 plugin_instance_mismatch if the slot holds another.
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKLanePluginSnapshot
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409plugin_instance_mismatch: the slot holds a different instance or type.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: plugin_instance_mismatch. 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}/snapshot" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/state

Snapshot a lane plugin's state

OperationgetLanePluginState
Scopedaw:read
Project roleeditor
Rate classinteractive
MCP equivalentget_plugin_state

Live parameters (index + normalized value) and state of one lane plugin slot. include_parameters=false skips the parameter list.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
include_parametersquerybooleanoptionaldefault true
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/state" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/state:restore

Restore a lane plugin's state in place

OperationrestoreLanePluginState
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (restore_lane_plugin_state)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bypassedbooleanoptional
expected_plugin_instance_idstringrequiredmax length 128instance_id from listLanePlugins. If the slot now holds another instance, 409 plugin_instance_mismatch (details: currentInstanceId, currentPluginType) and no write.
expected_plugin_typestringoptionalmax length 128type_id from listLanePlugins (case-insensitive). If the slot now holds another plug-in type, 409 plugin_instance_mismatch and no write.
paramsobject[]optionalmax items 4096snapshot.params (hosted plug-ins).
params[].indexintegerrequiredmin 0
params[].value_normnumberrequiredmin 0; max 1
statestringrequiredmin length 1snapshot.state (base64, at most 4 MiB).
state_signaturestringoptionalmax length 128snapshot.state_signature.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
413state_too_large: state is larger than 4 MiB.
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
bypass_appliedbooleanoptional
engine_appliedbooleanrequired
instance_idstringrequired
restoredbooleanrequired
savedstringoptionalone of engine_debouncedMozart saves the slot's row itself shortly after the apply.
state_hash_afterstringoptional

Error codes specific to this operation: plugin_instance_mismatch, restore_state_invalid. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/state:restore" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"expected_plugin_instance_id": "<expected_plugin_instance_id>", "state": "<state>"}'

BusPluginRestoreState schema

FieldTypeRequiredConstraintsDescription
addBusPluginobject | nulloptionalReady-to-send addBusPlugin body that undoes the delete (null when the plug-in is not a catalog hosted effect).
bypassedbooleanrequired
instanceIdstring | nulloptional
namestring | nulloptional
parametersobjectoptionalHost parameters (index -> normalized value) at delete time, for reference (the state chunk carries them).
positioninteger | nulloptional
statestring | nulloptionalThe 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).
stateEncodingstring | nulloptionalone of base64, None
stateOmittedstringoptionalone of too_large
stateSignaturestringoptionalmax length 128Send back as addBusPlugin state_signature with this exact state.
typeIdstring | nulloptional

LanePluginSnapshot schema

FieldTypeRequiredConstraintsDescription
bypassedbooleanrequired
instance_idstringrequired
namestring | nulloptional
nativebooleanrequired
paramsobject[]optional
params[].indexintegerrequiredmin 0
params[].value_normnumberrequiredmin 0; max 1
params_sourcestringoptionalone of live, saved
plugin_indexintegeroptional
presetstring | nulloptional
size_bytesintegeroptional
statestring | nullrequiredOpaque base64 state; null when none or larger than 4 MiB.
state_encodingstring | nulloptionalone of base64, None
state_formatstring | nulloptionalone of plugin_chunk, native_json, None
state_hashstringoptionalsha256 of the state bytes.
state_omittedstringoptionalone of too_large
state_signaturestringoptionalSend back with the state to restoreLanePluginState (hosted plug-ins).
state_sourcestring | nulloptionalone of live, saved, None
typestring | nulloptional

PluginEditorInputResult schema

FieldTypeRequiredConstraintsDescription
busIdstringoptional'master' (master-bus editor routes).
codestring | nulloptionalWhy 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.
confirmationstring | nulloptionalone of parameter_changed, frame_changed, unconfirmed, not_checked, None
deliverystring | nulloptionalone of dispatched, confirmed, rejected, Noneconfirmed: 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.
editorTargetobject | nulloptionalThe window and plug-in instance the event was sent to (windowId, instanceId, hitView, firstResponder, windowKey).
engineTrackIdintegeroptional
laneIdstring | nulloptionalThe lane (lane editor routes).
messagestring | nulloptional
okbooleanrequired
phasestringoptional
pluginIndexintegerrequired

PluginSavedState schema

FieldTypeRequiredConstraintsDescription
laneIdstring | nulloptional
notestringoptional
pluginsobject[]required
projectIdstringrequired
songPresetSeedIdstring | nulloptional
trackIdstring | nulloptional
voiceSettingsobject | nulloptional

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.

GET /api/v1/projects/{project_id}/automation

List automation envelopes

OperationlistAutomation
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourpaginated
MCP equivalentlist_automation

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idquerystringoptionalmax length 96Only this clip ('pattern:<id>' / 'backing:<id>' too).
lane_idquerystringoptionalmax length 64Only clips on this lane ('backing' = the backing lane).
target_kindquerystringoptionalone of clip_gain, plugin_parameter, lane_volume, lane_pan
plugin_instance_idquerystringoptionalmax length 128
stable_param_idquerystringoptionalmax length 128
persistedquerybooleanoptionaltrue = stored envelopes only (drops the default gain curves).
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (AutomationEnvelope)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses AutomationEnvelope, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/automation" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/projects/{project_id}/automation/{envelope_id}

Get one automation envelope

OperationgetAutomationEnvelope
Scopedaw:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match
MCP equivalentlist_automation

ETag = the envelope revision (If-None-Match answers 304).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
envelope_idpathstringrequiredmax length 128
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKAutomationEnvelopeResultETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/automation/{envelope_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

PUT /api/v1/projects/{project_id}/automation/{envelope_id}

Replace an envelope's points / default / value type

OperationupdateAutomationEnvelope
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentupdate_automation

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
envelope_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
defaultValuenumberoptionalmin 0; max 1
durationSecnumberoptionalmax 86400; > 0Window length in seconds; points' timeSec must lie in 0..durationSec (endpoints are added when missing).
expectedRevisionintegeroptionalmin 0The envelope revision you read (or send it as If-Match).
pointsobject (AutomationPoint)[]optionalmax items 250000
startSecnumberoptionaldefault 0; min 0; max 86400Timeline second the envelope starts at.
targetobject (AutomationTarget)optional
target.kindstringrequiredone of clip_gain, plugin_parameter, lane_volume, lane_panclip_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.namestringoptionalmax length 128
target.optionsobject[]optional
target.paramIndexintegeroptional
target.pluginIndexintegeroptional
target.pluginInstanceIdstringoptionalmax length 128
target.stableParamIdstringoptionalmax length 128
target.stepCountintegeroptional
target.unitstringoptionalmax length 32
valueTypestringoptionalone of continuous, discrete, boolean

Uses AutomationPoint, AutomationTarget.

Responses

StatusMeaningBodyHeaders
200OKAutomationEnvelopeResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/automation/{envelope_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

DELETE /api/v1/projects/{project_id}/automation/{envelope_id}

Delete an automation envelope

OperationdeleteAutomationEnvelope
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match destructive (the DELETE is the confirmation)
MCP equivalentdelete_automation

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
envelope_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expectedRevisionintegeroptionalmin 0The envelope revision you read (or send it as If-Match).

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
deletedbooleanoptional
envelopeIdstringoptional
liveobject (AutomationLiveReconcile)optional
live.appliedbooleanrequiredtrue = the running engine session took the change (the next audio block hears it).
live.reasonstringoptionalone of no_live_session, engine_rejected, engine_unreachableWhy it was not applied live. The saved change still stands; the next session load plays it.
projectIdstringoptional

Uses AutomationLiveReconcile.

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/automation/{envelope_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/automation/{envelope_id}/points

Add points to an envelope

OperationaddAutomationPoints
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentupdate_automation

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
envelope_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expectedRevisionintegeroptionalmin 0The envelope revision you read (or send it as If-Match).
pointsobject (AutomationPoint)[]requiredmin items 1

Uses AutomationPoint.

Responses

StatusMeaningBodyHeaders
200OKAutomationEnvelopeResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/automation/{envelope_id}/points" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"points": []}'

DELETE /api/v1/projects/{project_id}/automation/{envelope_id}/points

Remove points from an envelope

OperationdeleteAutomationPoints
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match destructive (the DELETE is the confirmation)
MCP equivalentupdate_automation

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
envelope_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expectedRevisionintegeroptionalmin 0The envelope revision you read (or send it as If-Match).
fromSecnumberoptionalmin 0
indicesinteger[]optional
toSecnumberoptionalmin 0

Responses

StatusMeaningBodyHeaders
200OKAutomationEnvelopeResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/automation/{envelope_id}/points" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

PATCH /api/v1/projects/{project_id}/automation/{envelope_id}/points/{index}

Change one point

OperationupdateAutomationPoint
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentupdate_automation

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
envelope_idpathstringrequiredmax length 128
indexpathintegerrequiredmin 0; max 100000
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
curvestringoptionalone of linear, bezier, hold, db
expectedRevisionintegeroptionalmin 0The envelope revision you read (or send it as If-Match).
metaobject | nulloptional
tensionnumberoptionalmin -1; max 1
timeSecnumberoptionalmin 0
valuenumberoptionalmin 0; max 1

Responses

StatusMeaningBodyHeaders
200OKAutomationEnvelopeResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PATCH "https://freestyle.audio/api/v1/projects/{project_id}/automation/{envelope_id}/points/{index}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/v1/projects/{project_id}/clips/{clip_id}/automation

List a clip's automation envelopes

OperationlistClipAutomation
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourpaginated
MCP equivalentlist_automation (clip_ids=[clip_id])

Envelopes of one clip ('pattern:<id>' for a pattern placement, 'backing:<id>' for the backing), including its default gain curve.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
target_kindquerystringoptionalone of clip_gain, plugin_parameter, lane_volume, lane_pan
plugin_instance_idquerystringoptionalmax length 128
stable_param_idquerystringoptionalmax length 128
persistedquerybooleanoptionaltrue = stored envelopes only (drops the default gain curves).
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (AutomationEnvelope)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses AutomationEnvelope, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/automation" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/clips/{clip_id}/automation

Create an automation envelope

OperationcreateAutomationEnvelope
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentcreate_automation

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
defaultValuenumberoptionalmin 0; max 1
pointsobject (AutomationPoint)[]optionalmax items 250000
targetobject (AutomationTarget)optional
target.kindstringrequiredone of clip_gain, plugin_parameter, lane_volume, lane_panclip_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.namestringoptionalmax length 128
target.optionsobject[]optional
target.paramIndexintegeroptional
target.pluginIndexintegeroptional
target.pluginInstanceIdstringoptionalmax length 128
target.stableParamIdstringoptionalmax length 128
target.stepCountintegeroptional
target.unitstringoptionalmax length 32
valueTypestringoptionalone of continuous, discrete, boolean

Uses AutomationPoint, AutomationTarget.

Responses

StatusMeaningBodyHeaders
201OKAutomationEnvelopeResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: automation_exists. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/automation" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/v1/projects/{project_id}/lanes/{lane_id}/automation

List a lane's automation envelopes

OperationlistLaneAutomation
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourpaginated
MCP equivalentlist_automation

The lane's own volume / pan envelopes plus those of every clip and pattern placement on it ('backing' = the backing lane).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
target_kindquerystringoptionalone of clip_gain, plugin_parameter, lane_volume, lane_pan
plugin_instance_idquerystringoptionalmax length 128
stable_param_idquerystringoptionalmax length 128
persistedquerybooleanoptionaltrue = stored envelopes only (drops the default gain curves).
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (AutomationEnvelope)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses AutomationEnvelope, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/automation" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/lanes/{lane_id}/automation

Create a lane volume / pan automation envelope

OperationcreateLaneAutomation
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
defaultValuenumberoptionalmin 0; max 1
durationSecnumberrequiredmax 86400; > 0Window length in seconds; points' timeSec must lie in 0..durationSec (endpoints are added when missing).
pointsobject (AutomationPoint)[]optionalmax items 250000
startSecnumberoptionaldefault 0; min 0; max 86400Timeline second the envelope starts at.
targetobject (AutomationTarget)required
target.kindstringrequiredone of clip_gain, plugin_parameter, lane_volume, lane_panclip_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.namestringoptionalmax length 128
target.optionsobject[]optional
target.paramIndexintegeroptional
target.pluginIndexintegeroptional
target.pluginInstanceIdstringoptionalmax length 128
target.stableParamIdstringoptionalmax length 128
target.stepCountintegeroptional
target.unitstringoptionalmax length 32
valueTypestringoptionalone of continuous, discrete, boolean

Uses AutomationPoint, AutomationTarget.

Responses

StatusMeaningBodyHeaders
201OKAutomationEnvelopeResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: automation_exists. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/automation" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"target": {"kind": "clip_gain"}, "durationSec": 0.0}'

GET /api/v1/projects/{project_id}/plugins/{plugin_instance_id}/automation

List a plugin instance's automation envelopes

OperationlistPluginAutomation
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourpaginated
MCP equivalentlist_automation

plugin_parameter envelopes targeting one plugin instance (optionally one stable_param_id).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
plugin_instance_idpathstringrequiredmax length 128
clip_idquerystringoptionalmax length 96Only this clip ('pattern:<id>' / 'backing:<id>' too).
lane_idquerystringoptionalmax length 64Only clips on this lane ('backing' = the backing lane).
stable_param_idquerystringoptionalmax length 128
persistedquerybooleanoptionaltrue = stored envelopes only (drops the default gain curves).
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (AutomationEnvelope)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses AutomationEnvelope, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/plugins/{plugin_instance_id}/automation" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

AutomationEnvelope schema

FieldTypeRequiredConstraintsDescription
clipIdstringrequired
createdAtstring | nulloptionalformat date-time
defaultValuenumberoptional
durationSecnumberoptional> 0Lane envelopes only: window length; outside [startSec, startSec + durationSec] the lane's saved fader / pan applies.
idstring | nulloptional
laneIdstringoptionalLane envelopes only.
persistedbooleanrequiredfalse = the synthesized default clip-gain curve (no id; create one to edit it).
pointsobject (AutomationPoint)[]required
projectIdstringrequired
revisionintegerrequiredmin 0
startSecnumberoptionalmin 0Lane envelopes only: timeline second the envelope starts at (points' timeSec is relative to it).
targetobject (AutomationTarget)optional
target.kindstringrequiredone of clip_gain, plugin_parameter, lane_volume, lane_panclip_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.namestringoptionalmax length 128
target.optionsobject[]optional
target.paramIndexintegeroptional
target.pluginIndexintegeroptional
target.pluginInstanceIdstringoptionalmax length 128
target.stableParamIdstringoptionalmax length 128
target.stepCountintegeroptional
target.unitstringoptionalmax length 32
targetKeystringrequired
targetKindstringoptionalone of clip_gain, plugin_parameter, lane_volume, lane_pan
updatedAtstring | nulloptionalformat date-time
valueTypestringoptionalone of continuous, discrete, boolean

Uses AutomationPoint, AutomationTarget.

AutomationEnvelopeResult schema

FieldTypeRequiredConstraintsDescription
envelopeobject (AutomationEnvelope)required
envelope.clipIdstringrequired
envelope.createdAtstring | nulloptionalformat date-time
envelope.defaultValuenumberoptional
envelope.durationSecnumberoptional> 0Lane envelopes only: window length; outside [startSec, startSec + durationSec] the lane's saved fader / pan applies.
envelope.idstring | nulloptional
envelope.laneIdstringoptionalLane envelopes only.
envelope.persistedbooleanrequiredfalse = the synthesized default clip-gain curve (no id; create one to edit it).
envelope.pointsobject (AutomationPoint)[]required
envelope.projectIdstringrequired
envelope.revisionintegerrequiredmin 0
envelope.startSecnumberoptionalmin 0Lane envelopes only: timeline second the envelope starts at (points' timeSec is relative to it).
envelope.targetobject (AutomationTarget)optional
envelope.target.kindstringrequiredone of clip_gain, plugin_parameter, lane_volume, lane_panclip_gain / plugin_parameter on clips; lane_volume (gain = 4 * value, 0.25 = unity) / lane_pan (pan = 2 * value - 1, 0.5 = center) on lanes.
envelope.target.namestringoptionalmax length 128
envelope.target.optionsobject[]optional
envelope.target.paramIndexintegeroptional
envelope.target.pluginIndexintegeroptional
envelope.target.pluginInstanceIdstringoptionalmax length 128
envelope.target.stableParamIdstringoptionalmax length 128
envelope.target.stepCountintegeroptional
envelope.target.unitstringoptionalmax length 32
envelope.targetKeystringrequired
envelope.targetKindstringoptionalone of clip_gain, plugin_parameter, lane_volume, lane_pan
envelope.updatedAtstring | nulloptionalformat date-time
envelope.valueTypestringoptionalone of continuous, discrete, boolean
liveobject (AutomationLiveReconcile)optional
live.appliedbooleanrequiredtrue = the running engine session took the change (the next audio block hears it).
live.reasonstringoptionalone of no_live_session, engine_rejected, engine_unreachableWhy it was not applied live. The saved change still stands; the next session load plays it.

Uses AutomationEnvelope, AutomationLiveReconcile.

AutomationLiveReconcile schema

FieldTypeRequiredConstraintsDescription
appliedbooleanrequiredtrue = the running engine session took the change (the next audio block hears it).
reasonstringoptionalone of no_live_session, engine_rejected, engine_unreachableWhy it was not applied live. The saved change still stands; the next session load plays it.

AutomationPoint schema

FieldTypeRequiredConstraintsDescription
curvestringoptionalone of linear, bezier, hold, dbSegment shape to the next point. hold = step. db = linear in decibels (clip gain only). Non-continuous envelopes always store hold.
metaobjectoptionalOptional caller metadata (<= 1 KB per point, 256 KB per envelope), returned unchanged.
tensionnumberoptionalmin -1; max 1bezier only
timeSecnumberrequiredmin 0Seconds 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).
valuenumberrequiredmin 0; max 1

AutomationTarget schema

FieldTypeRequiredConstraintsDescription
kindstringrequiredone of clip_gain, plugin_parameter, lane_volume, lane_panclip_gain / plugin_parameter on clips; lane_volume (gain = 4 * value, 0.25 = unity) / lane_pan (pan = 2 * value - 1, 0.5 = center) on lanes.
namestringoptionalmax length 128
optionsobject[]optional
paramIndexintegeroptional
pluginIndexintegeroptional
pluginInstanceIdstringoptionalmax length 128
stableParamIdstringoptionalmax length 128
stepCountintegeroptional
unitstringoptionalmax 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.

PUT /api/v1/projects/{project_id}/tempo

Set the scalar project tempo

OperationsetProjectTempo
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_project_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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
bpmnumberrequiredmin 20; max 400
modestringoptionaldefault "keep_time"; one of keep_time, stretch_audiokeep_time = clips keep their time; stretch_audio = clips keep their bar (a job).
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
202mode=stretch_audio: the TempoStretchJob is running; poll the Location header.see below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

202 body:

JSON object with any fields.

Error codes specific to this operation: tempo_map_not_constant, tempo_stretch_in_progress. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/tempo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bpm": 20.0}'

GET /api/v1/projects/{project_id}/tempo-jobs/{job_id}

Get a tempo stretch job

OperationgetTempoStretchJob
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalentexecute_pro_action (get_tempo_stretch_job)

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).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
job_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKTempoStretchJob
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/tempo-jobs/{job_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/tempo-jobs/{job_id}:undo

Undo a tempo stretch

OperationundoTempoStretchJob
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (undo_tempo_stretch)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
job_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Responses

StatusMeaningBodyHeaders
200OKTempoStretchJob
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: tempo_stretch_in_progress. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/tempo-jobs/{job_id}:undo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

GET /api/v1/projects/{project_id}/timing-map

Get the tempo + meter map

OperationgetTimingMap
Scopedaw:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match
MCP equivalentexecute_pro_action (get_timing_map)

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).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
historyquerybooleanoptionalInclude the revision history (without the maps).
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKTimingMapETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/timing-map" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

PUT /api/v1/projects/{project_id}/timing-map

Replace the tempo and/or meter map

OperationsetTimingMap
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (set_timing_map)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_revisionintegeroptionalmin 0The revision you read (or send it as If-Match). Mismatch: 412 timing_map_revision_conflict.
meterobject[]optionalmax items 256
meter[].barintegeroptionalmin 1
meter[].denominatorintegerrequiredone of 1, 2, 4, 8, 16, 32
meter[].groupsinteger[]optional
meter[].numeratorintegerrequiredmin 1; max 64
meter[].tickintegeroptionalmin 0
patternsobjectoptional{pattern_id: {meter: [...]} | null}, merged by id.
pickup_ticksintegeroptionalmin 0
reasonstringoptionalmax length 200
tempoobject[]optionalmax items 1024
tempo[].barnumberoptionalmin 1
tempo[].beatnumberoptionalmin 0
tempo[].bpmnumberrequiredmin 10; max 522
tempo[].curvestringoptionalone of constant, linear
tempo[].end_bpmnumberoptionalmin 10; max 522
tempo[].tickintegeroptionalmin 0

Responses

StatusMeaningBodyHeaders
200OKTimingMapETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: timing_map_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/timing-map" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/timing-map:convert

Convert musical positions

OperationconvertMusicalTime
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalentexecute_pro_action (convert_musical_time)

Converts up to 256 positions between tick, beat, bar:beat:tick, seconds, ms and frames (with sample_rate) through the current map. Read-only.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128

Request body application/json

FieldTypeRequiredConstraintsDescription
positionsobject | string[]requiredmax items 256
sample_ratenumberoptionalmin 8000; max 384000

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
fingerprintstringoptional
positionsobject[]optional
projectIdstringoptional
revisionintegeroptional

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/timing-map:convert" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"positions": []}'

POST /api/v1/projects/{project_id}/timing-map:undo

Undo the last tempo/meter edit

OperationundoTimingMap
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (undo_timing_map)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_revisionintegeroptionalmin 0The revision you read (or send it as If-Match). Mismatch: 412 timing_map_revision_conflict.
reasonstringoptionalmax length 200

Responses

StatusMeaningBodyHeaders
200OKTimingMapETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: timing_map_nothing_to_undo. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/timing-map:undo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

TempoStretchJob schema

FieldTypeRequiredConstraintsDescription
automationobject[]optionalAutomation 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_idstringoptional
automation[].clip_idstringoptional
automation[].factornumber | nulloptional
automation[].revision_afterinteger | nulloptional
automation[].revision_beforeintegeroptional
backing_convertedbooleanoptionalThe backing was turned into one full-length clip (backing/split whole) so it stretches too; undo puts the backing row back.
backing_restoreobjectoptional
backing_restore.codestring | nulloptional
backing_restore.errorstring | nulloptional
backing_restore.statusinteger | nulloptional
backing_restore.track_idsstring[]optional
backing_restore_failedbooleanoptionalAfter 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.
bpmnumberoptional= to_bpm.
clipsobject[]optional
clips[].backingbooleanoptional
clips[].duration_sec_afternumber | nulloptional
clips[].duration_sec_beforenumber | nulloptional
clips[].kindstringoptionalone of audio, loop_repeat, move
clips[].length_rationumber | nulloptionalMeasured new/old length (audio: from the render; loop repeats: their parent's).
clips[].renderobjectoptional
clips[].render.job_idstring | nulloptional
clips[].render.source_bpmnumberoptional
clips[].render.statusstringoptional
clips[].render.target_bpmnumberoptional
clips[].start_ms_afterinteger | nulloptional
clips[].start_ms_beforeinteger | nulloptional
clips[].track_idstringoptional
created_atstring | nulloptional
engineobjectoptional
engine.atstringoptional
engine.attemptsintegeroptional
engine.engine_reload_requiredbooleanoptional
engine.reloadstringoptionalone of pending, reloaded, no_session, failedpending = the save is done and the engine reload is running in the background (it never blocks this request); read the job again.
engine_reloadobjectoptional
engine_reload.methodstringoptional
engine_reload.operationIdstringoptional
engine_reload.pathstringoptional
engine_reload_requiredbooleanoptionaltrue = 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.
errorobjectoptional
error.codestringoptional
error.detailsobjectoptionaltempo_stretch_project_changed: {changed: [...]} names what was edited while the job ran.
error.messagestringoptional
finished_atstring | nulloptional
first_beat_sec_afternumber | nulloptionalThe bar-ruler anchor (backing first downbeat, project seconds) after a stretch that stretched the backing; null when unchanged.
first_beat_sec_beforenumber | nulloptional
from_bpmnumberrequired
job_idstringrequired
lyricsobjectoptional
lyrics.rescaledbooleanoptionalThe project's timed custom lyrics (time_ms) were scaled by old/new BPM with the stretch; undo restores the exact previous times.
lyrics.timed_linesintegeroptional
modestringrequiredone of stretch_audio
placementsobject[]optional
progressobjectoptional
progress.renders_succeededintegeroptional
progress.renders_totalintegeroptional
projectIdstringrequired
rationumberrequiredold_bpm / new_bpm: the start/length multiple.
replaybooleanoptional
retryAfterSecintegeroptional
statusstringrequiredone of queued, running, succeeded, failed, undone
status_urlstringoptional
timing_map_revisioninteger | nulloptional
timing_map_revision_beforeinteger | nulloptional
to_bpmnumberrequired
undoobjectoptional
undo.actionstringoptional
undo.availablebooleanoptional
undo.methodstringoptional
undo.pathstringoptional
undone_atstring | nulloptional

TimingMap schema

FieldTypeRequiredConstraintsDescription
bpm_at_startnumberoptional
documentobjectoptional
engineobjectoptionalWrites: engine resync status / confirm rule.
fingerprintstringrequired
historyobject[]optional
implicitbooleanrequiredtrue = derived from the scalar BPM.
inverseobjectoptionalWrites: the call that restores the previous content.
is_constant_tempobooleanoptional
meterobject[]optional
ppqintegerrequired
projectIdstringrequired
replayedbooleanoptional
revisionintegerrequiredmin 00 = never edited.
tempoobject[]optional
undoobjectoptional
undo.availablebooleanoptional
undo.restores_revisioninteger | nulloptional

Patterns

Step/piano-roll patterns, their timeline placements, splits and previews.

GET /api/v1/projects/{project_id}/pattern-placements

List pattern placements

OperationlistPatternPlacements
Scopedaw:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match paginated
MCP equivalentget_pro_state (patternPlacements)

Live pattern clips on the timeline ordered by start. Filters: pattern_id, lane_id. ETag = timeline revision (If-None-Match answers 304).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
pattern_idquerystringoptionalmax length 64Only placements of this pattern.
lane_idquerystringoptionalmax length 64Only placements on this lane.
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (PatternPlacement)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses PatternPlacement, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/pattern-placements" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/pattern-placements

Place a pattern on the timeline

OperationcreatePatternPlacement
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (create_pattern_placement)

placement.patternId is required; without laneId a pattern lane is created.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
placementobjectrequired
placement.busIdstringoptionalmax length 64
placement.displayOrderintegeroptionalmin 0; max 1000000Timeline row order. Omitted = unchanged.
placement.durationMsintegeroptionalmin 1
placement.laneIdstringoptionalmax length 64
placement.loopDurationMsintegeroptionalmin 1
placement.loopPhaseMsintegeroptionalmin 0Start phase inside one loop unit: 0 <= loopPhaseMs < loopDurationMs (or durationMs).
placement.mutedbooleanoptional
placement.namestringoptionalmax length 255
placement.offsetMsintegeroptionalmin 0
placement.patternIdstringoptionalmax length 64
placement.repeatCountintegeroptionalmin 1
placement.soloedbooleanoptional
placement.startMsintegeroptionalmin 0
placement.windowMsinteger | nulloptionalmin 1Audible 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_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
201OKPatternWriteResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/pattern-placements" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"placement": {}}'

GET /api/v1/projects/{project_id}/pattern-placements/{placement_id}

Get a pattern placement

OperationgetPatternPlacement
Scopedaw:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match
MCP equivalentget_pro_state (patternPlacements)

One live pattern placement. ETag = timeline revision.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
placement_idpathstringrequiredmax length 128
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKPatternPlacementETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/pattern-placements/{placement_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

PATCH /api/v1/projects/{project_id}/pattern-placements/{placement_id}

Move / trim / loop / reroute a placement

OperationupdatePatternPlacement
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (update_pattern_placement)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
placement_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
placementobjectrequired
placement.busIdstringoptionalmax length 64
placement.displayOrderintegeroptionalmin 0; max 1000000Timeline row order. Omitted = unchanged.
placement.durationMsintegeroptionalmin 1
placement.laneIdstringoptionalmax length 64
placement.loopDurationMsintegeroptionalmin 1
placement.loopPhaseMsintegeroptionalmin 0Start phase inside one loop unit: 0 <= loopPhaseMs < loopDurationMs (or durationMs).
placement.mutedbooleanoptional
placement.namestringoptionalmax length 255
placement.offsetMsintegeroptionalmin 0
placement.patternIdstringoptionalmax length 64
placement.repeatCountintegeroptionalmin 1
placement.soloedbooleanoptional
placement.startMsintegeroptionalmin 0
placement.windowMsinteger | nulloptionalmin 1Audible 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_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKPatternWriteResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: timeline_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PATCH "https://freestyle.audio/api/v1/projects/{project_id}/pattern-placements/{placement_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"placement": {}}'

DELETE /api/v1/projects/{project_id}/pattern-placements/{placement_id}

Delete a pattern placement

OperationdeletePatternPlacement
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match destructive (the DELETE is the confirmation)
MCP equivalentexecute_pro_action (delete_pattern_placement)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
placement_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKPatternPlacementDeleteResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/pattern-placements/{placement_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

PUT /api/v1/projects/{project_id}/pattern-placements/{placement_id}/gain

Set a placement's gain

OperationsetPatternPlacementGain
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_pattern_placement_gain)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
placement_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
gainnumberrequiredmin 0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON any.

Uses EngineActionResult.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/pattern-placements/{placement_id}/gain" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"gain": 0.0}'

POST /api/v1/projects/{project_id}/pattern-placements/{placement_id}:restore

Restore a deleted pattern placement (undo a delete)

OperationrestorePatternPlacement
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentrestore_pattern_placement

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
placement_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
beforeobject (PatternPlacementSnapshot)required
before.automationobject (PatternPlacementAutomationSnapshot)[]requiredmax items 64
before.busIdstringrequired
before.displayOrderintegerrequired
before.durationMsintegerrequired
before.idstringrequired
before.laneIdstring | nullrequired
before.loopDurationMsintegerrequired
before.loopPhaseMsintegerrequired
before.mutedbooleanrequired
before.namestring | nullrequired
before.nativeEqobject | nullrequired
before.offsetMsintegerrequired
before.patternIdstringrequired
before.projectIdstringrequired
before.repeatCountintegerrequired
before.rowGainobject | nullrequired
before.soloedbooleanrequired
before.sourceBusOverridesobjectrequired
before.startMsintegerrequired
before.windowMsinteger | nullrequired
restoreTokenstringrequiredmax length 1024
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Uses PatternPlacementSnapshot.

Responses

StatusMeaningBodyHeaders
200OKPatternPlacementRestoreResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/pattern-placements/{placement_id}:restore" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"before": {"automation": [], "busId": "<busId>", "displayOrder": 1, "durationMs": 1, "id": "<id>", "laneId": "<laneId>", "loopDurationMs": 1, "loopPhaseMs": 1, "muted": false, "name": "<name>", "nativeEq": {}, "offsetMs": 1, "patternId": "<patternId>", "projectId": "<projectId>", "repeatCount": 1, "rowGain": {}, "soloed": false, "sourceBusOverrides": {}, "startMs": 1, "windowMs": 1}, "restoreToken": "<restoreToken>"}'

POST /api/v1/projects/{project_id}/pattern-placements/{placement_id}:split

Split a placement (or undo a split)

OperationsplitPatternPlacement
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentsplit_pattern_placement

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
placement_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
beforeobjectoptional
child_idstringoptionalmax length 64
cut_msintegeroptionalmin 0
undobooleanoptionaldefault false

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
beforeobjectoptional
cutMsintegeroptional
leftobjectoptional
placementIdstringoptional
projectIdstringoptional
rightobjectoptional
timelineRevisionstring | nulloptional
undonebooleanoptional

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/pattern-placements/{placement_id}:split" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/pattern-placements:batch

Create / move / delete many placements at once

OperationapplyPatternPlacementBatch
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (create/update/delete_pattern_placement), restore_pattern_placement

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
opsobject (PatternPlacementBatchOp)[]requiredmin items 1; max items 256
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Uses PatternPlacementBatchOp.

Responses

StatusMeaningBodyHeaders
200OKPatternPlacementBatchResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: invalid_argument, invalid_op, not_found, timeline_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/pattern-placements:batch" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"ops": []}'

POST /api/v1/projects/{project_id}/pattern-previews:launch

Scene launch: start several armed pattern previews together

OperationlaunchPatternPreviews
Scopedaw:write
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (launch_pattern_previews)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128

Request body application/json

FieldTypeRequiredConstraintsDescription
beats_per_barintegeroptionaldefault 4; min 1; max 32
client_idstringrequiredmin length 1; max length 128The client_id of YOUR monitoring peer: the one whose arms the launch starts. Required.
lead_secnumberoptionaldefault 0.05; min 0; max 2
preview_request_idintegeroptionalmin 1; max 9007199254740991Your 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).
previewsobject[]requiredmin items 1; max items 8
previews[].armed_signaturestringrequiredpattern ^[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[].gainnumberoptionaldefault 0.92; min 0; max 2
previews[].repeat_countintegeroptionaldefault 64; min 1; max 64
previews[].slot_idstringoptionalpattern ^[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.
quantizestringoptionaldefault "none"; one of none, beat, bar
stop_othersbooleanoptionaldefault false
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: not_armed, too_many_previews. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/pattern-previews:launch" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"previews": [], "client_id": "<client_id>"}'

POST /api/v1/projects/{project_id}/pattern-previews:stop

Stop one pattern preview

OperationstopPatternPreview
Scopedaw:write
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (stop_pattern_preview)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128

Request body application/json

FieldTypeRequiredConstraintsDescription
client_idstringoptionalmin length 1; max length 128The 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_idstringoptionalmax length 64
preview_idstringoptionalmax length 64
preview_request_idintegeroptionalmin 1; max 9007199254740991Your 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_idstringoptionalpattern ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$Stop only this scene-launch slot.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: stale_preview_request. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/pattern-previews:stop" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/pattern-previews:stopAll

Stop all pattern previews

OperationstopAllPatternPreviews
Scopedaw:write
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (stop_all_pattern_previews)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128

Request body application/json

FieldTypeRequiredConstraintsDescription
client_idstringoptionalmin length 1; max length 128The 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_idintegeroptionalmin 1; max 9007199254740991Your 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_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/pattern-previews:stopAll" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/v1/projects/{project_id}/patterns

List patterns

OperationlistPatterns
Scopedaw:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match paginated
MCP equivalentget_pro_state (patterns)

Live (not deleted) patterns, oldest first, exactly as the Studio's Channel Rack reads them. ETag = timeline revision (If-None-Match answers 304).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (Pattern)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Pattern, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/patterns" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/patterns

Create a pattern

OperationcreatePattern
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (create_pattern)

Create a persisted pattern (notes, steps, samples, instruments, MIDI CC automation). The engine recompiles patterns in the background.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
patternobjectrequired
pattern.barsintegeroptionalmin 1; max 64Without lengthTicks, a bars change sets lengthTicks = ppq * 4 * bars. With lengthTicks it must equal ceil(lengthTicks / (ppq * 4)) (400 otherwise).
pattern.eventsobject (PatternNote)[]optionalNotes / step hits (a MIDI note per event). muted / slide must be booleans when present (400 otherwise).
pattern.lengthTicksintegeroptionalmin 1Stored as given (<= ppq * 4 * 64). Without bars, bars = ceil(lengthTicks / (ppq * 4)); with bars, the two must agree (400 otherwise).
pattern.namestringoptionalmax length 255
pattern.ppqintegeroptionalmin 24; max 960
pattern.sourcesobject (PatternChannel)[]optional
pattern.swingnumberoptional
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Uses PatternNote, PatternChannel.

Responses

StatusMeaningBodyHeaders
201OKPatternWriteResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/patterns" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"pattern": {}}'

GET /api/v1/projects/{project_id}/patterns/{pattern_id}

Get a pattern

OperationgetPattern
Scopedaw:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match
MCP equivalentget_pro_state (patterns)

One live pattern (channels, steps, notes, CC automation). ETag = timeline revision.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
pattern_idpathstringrequiredmax length 128
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKPatternETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/patterns/{pattern_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

PATCH /api/v1/projects/{project_id}/patterns/{pattern_id}

Update a pattern

OperationupdatePattern
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (update_pattern)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
pattern_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
patternobjectrequired
pattern.barsintegeroptionalmin 1; max 64Without lengthTicks, a bars change sets lengthTicks = ppq * 4 * bars. With lengthTicks it must equal ceil(lengthTicks / (ppq * 4)) (400 otherwise).
pattern.eventsobject (PatternNote)[]optionalNotes / step hits (a MIDI note per event). muted / slide must be booleans when present (400 otherwise).
pattern.lengthTicksintegeroptionalmin 1Stored as given (<= ppq * 4 * 64). Without bars, bars = ceil(lengthTicks / (ppq * 4)); with bars, the two must agree (400 otherwise).
pattern.namestringoptionalmax length 255
pattern.ppqintegeroptionalmin 24; max 960
pattern.sourcesobject (PatternChannel)[]optional
pattern.swingnumberoptional
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Uses PatternNote, PatternChannel.

Responses

StatusMeaningBodyHeaders
200OKPatternWriteResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: invalid_argument. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PATCH "https://freestyle.audio/api/v1/projects/{project_id}/patterns/{pattern_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"pattern": {}}'

DELETE /api/v1/projects/{project_id}/patterns/{pattern_id}

Delete a pattern

OperationdeletePattern
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match destructive (the DELETE is the confirmation)
MCP equivalentexecute_pro_action (delete_pattern)

Soft-delete a pattern (remove its placements first). Undo with :restore.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
pattern_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKPatternWriteResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/patterns/{pattern_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/patterns/{pattern_id}/channels

Add a Channel Rack channel (at a position)

OperationaddPatternChannel
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (update_pattern)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
pattern_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
bodyobjectoptionalIgnored (undo descriptor echo).
ccEventsobject (PatternCcEvent)[]optionalmax items 4096MIDI CC automation of the channel (a channel delete's undo.ccEvents), added with sourceId = the channel id.
channelobject (PatternChannel)required
channel.audioFileIdstringoptionalmax length 64Pattern sample (sample channels).
channel.busIdstringoptionalmax length 64
channel.colorstring | nulloptionalmax length 64Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.
channel.cutGroupinteger | nulloptionalmin 0; max 64Cut (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.iconstring | nulloptionalpattern ^[a-z0-9][a-z0-9_-]{0,31}$Short icon name chosen by the client. null clears it.
channel.idstringoptionalmax length 128Channel id (events[].sourceId).
channel.kindstringoptionalone of sample, plugin, instrument
channel.laneIdstringoptionalmax length 64Instrument lane (plugin channels).
channel.midiChannelinteger | nulloptionalmin 1; max 16MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.
channel.mutedbooleanoptional
channel.namestringoptionalmax length 255
channel.orderintegeroptionalmin 0
channel.outputLaneIdstring | nulloptionalmax length 64Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.
channel.solobooleanoptional
channel.volumenumberoptionalmin 0; max 2
eventsobject (PatternNote)[]optionalmax items 4096
methodstringoptionalIgnored (undo descriptor echo).
opstringoptionalIgnored: an undo object's `op`, echoed back.
pathstringoptionalIgnored (undo descriptor echo).
positionintegeroptionalmin 0
timelineRevisionstring | nulloptionalIgnored; send it as If-Match instead.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Uses PatternCcEvent, PatternChannel, PatternNote.

Responses

StatusMeaningBodyHeaders
201OKPatternChannelResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: id_exists. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/patterns/{pattern_id}/channels" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"channel": {}}'

PATCH /api/v1/projects/{project_id}/patterns/{pattern_id}/channels/{channel_id}

Edit a channel / move it in the rack

OperationupdatePatternChannel
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (update_pattern)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
pattern_idpathstringrequiredmax length 128
channel_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
bodyobjectoptionalIgnored (undo descriptor echo).
channelobject (PatternChannel)optional
channel.audioFileIdstringoptionalmax length 64Pattern sample (sample channels).
channel.busIdstringoptionalmax length 64
channel.colorstring | nulloptionalmax length 64Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.
channel.cutGroupinteger | nulloptionalmin 0; max 64Cut (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.iconstring | nulloptionalpattern ^[a-z0-9][a-z0-9_-]{0,31}$Short icon name chosen by the client. null clears it.
channel.idstringoptionalmax length 128Channel id (events[].sourceId).
channel.kindstringoptionalone of sample, plugin, instrument
channel.laneIdstringoptionalmax length 64Instrument lane (plugin channels).
channel.midiChannelinteger | nulloptionalmin 1; max 16MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.
channel.mutedbooleanoptional
channel.namestringoptionalmax length 255
channel.orderintegeroptionalmin 0
channel.outputLaneIdstring | nulloptionalmax length 64Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.
channel.solobooleanoptional
channel.volumenumberoptionalmin 0; max 2
methodstringoptionalIgnored (undo descriptor echo).
opstringoptionalIgnored: an undo object's `op`, echoed back.
pathstringoptionalIgnored (undo descriptor echo).
positionintegeroptionalmin 0
timelineRevisionstring | nulloptionalIgnored; send it as If-Match instead.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Uses PatternChannel.

Responses

StatusMeaningBodyHeaders
200OKPatternChannelResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PATCH "https://freestyle.audio/api/v1/projects/{project_id}/patterns/{pattern_id}/channels/{channel_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

DELETE /api/v1/projects/{project_id}/patterns/{pattern_id}/channels/{channel_id}

Remove a channel from the rack

OperationdeletePatternChannel
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match destructive (the DELETE is the confirmation)
MCP equivalentexecute_pro_action (update_pattern)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
pattern_idpathstringrequiredmax length 128
channel_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee belowETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
okbooleanrequired
patternobject (Pattern)optional
pattern.barsintegeroptional
pattern.idstringrequired
pattern.lengthTicksintegeroptionalPattern length in ticks. Kept consistent with bars on every write.
pattern.namestring | nulloptional
pattern.patternobjectoptional
pattern.pattern.eventsobject[]optional
pattern.pattern.sourcesobject (PatternChannel)[]optional
pattern.ppqintegeroptional
pattern.swingnumberoptional
patternIdstringrequired
timelineRevisionstring | nullrequired
undoobject (PatternChannelUndo)required
undo.bodyobjectoptionalBody of the undo request, to send exactly as is.
undo.methodstringoptionalone of POST, PATCH, DELETEHTTP method of the undo request.
undo.opstringoptionalone of add, update, delete, unassignWhat the undo does (kept for older clients).
undo.pathstringoptionalPath of the undo request, relative to /api/v1.
undo.stepsobject[]optionalassignToNewInstrumentTrack only: the undo is TWO requests [{method, path, body}], run in order.
undo.timelineRevisionstring | nulloptionalThe revision after this change: send it as If-Match on the undo request.

Uses Pattern, PatternChannelUndo.

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/patterns/{pattern_id}/channels/{channel_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/patterns/{pattern_id}/channels/{channel_id}:assignToNewInstrumentTrack

Assign a channel to a new instrument track

OperationassignPatternChannelToNewTrack
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (update_pattern) + a new pattern lane

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
pattern_idpathstringrequiredmax length 128
channel_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
namestringoptionalmax length 255
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200an instrument channel already on its own lane (alreadyAssigned: true)see below
201OKsee belowETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
alreadyAssignedbooleanrequired
channelobject (PatternChannel)optional
channel.audioFileIdstringoptionalmax length 64Pattern sample (sample channels).
channel.busIdstringoptionalmax length 64
channel.colorstring | nulloptionalmax length 64Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.
channel.cutGroupinteger | nulloptionalmin 0; max 64Cut (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.iconstring | nulloptionalpattern ^[a-z0-9][a-z0-9_-]{0,31}$Short icon name chosen by the client. null clears it.
channel.idstringoptionalmax length 128Channel id (events[].sourceId).
channel.kindstringoptionalone of sample, plugin, instrument
channel.laneIdstringoptionalmax length 64Instrument lane (plugin channels).
channel.midiChannelinteger | nulloptionalmin 1; max 16MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.
channel.mutedbooleanoptional
channel.namestringoptionalmax length 255
channel.orderintegeroptionalmin 0
channel.outputLaneIdstring | nulloptionalmax length 64Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.
channel.solobooleanoptional
channel.volumenumberoptionalmin 0; max 2
laneobjectoptional
laneIdstringrequired
okbooleanrequired
patternIdstringrequired
timelineRevisionstring | nullrequired
undoobject (PatternChannelUndo)optional
undo.bodyobjectoptionalBody of the undo request, to send exactly as is.
undo.methodstringoptionalone of POST, PATCH, DELETEHTTP method of the undo request.
undo.opstringoptionalone of add, update, delete, unassignWhat the undo does (kept for older clients).
undo.pathstringoptionalPath of the undo request, relative to /api/v1.
undo.stepsobject[]optionalassignToNewInstrumentTrack only: the undo is TWO requests [{method, path, body}], run in order.
undo.timelineRevisionstring | nulloptionalThe revision after this change: send it as If-Match on the undo request.

Uses PatternChannel, PatternChannelUndo.

201 body:

FieldTypeRequiredConstraintsDescription
alreadyAssignedbooleanrequired
channelobject (PatternChannel)optional
channel.audioFileIdstringoptionalmax length 64Pattern sample (sample channels).
channel.busIdstringoptionalmax length 64
channel.colorstring | nulloptionalmax length 64Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.
channel.cutGroupinteger | nulloptionalmin 0; max 64Cut (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.iconstring | nulloptionalpattern ^[a-z0-9][a-z0-9_-]{0,31}$Short icon name chosen by the client. null clears it.
channel.idstringoptionalmax length 128Channel id (events[].sourceId).
channel.kindstringoptionalone of sample, plugin, instrument
channel.laneIdstringoptionalmax length 64Instrument lane (plugin channels).
channel.midiChannelinteger | nulloptionalmin 1; max 16MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.
channel.mutedbooleanoptional
channel.namestringoptionalmax length 255
channel.orderintegeroptionalmin 0
channel.outputLaneIdstring | nulloptionalmax length 64Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.
channel.solobooleanoptional
channel.volumenumberoptionalmin 0; max 2
laneobjectoptional
laneIdstringrequired
okbooleanrequired
patternIdstringrequired
timelineRevisionstring | nullrequired
undoobject (PatternChannelUndo)optional
undo.bodyobjectoptionalBody of the undo request, to send exactly as is.
undo.methodstringoptionalone of POST, PATCH, DELETEHTTP method of the undo request.
undo.opstringoptionalone of add, update, delete, unassignWhat the undo does (kept for older clients).
undo.pathstringoptionalPath of the undo request, relative to /api/v1.
undo.stepsobject[]optionalassignToNewInstrumentTrack only: the undo is TWO requests [{method, path, body}], run in order.
undo.timelineRevisionstring | nulloptionalThe revision after this change: send it as If-Match on the undo request.

Uses PatternChannel, PatternChannelUndo.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/patterns/{pattern_id}/channels/{channel_id}:assignToNewInstrumentTrack" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/patterns/{pattern_id}:restore

Restore a deleted pattern

OperationrestorePattern
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (restore_pattern)

Restore a soft-deleted pattern.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
pattern_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKPatternWriteResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/patterns/{pattern_id}:restore" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/patterns:preview

Preview a pattern, or arm it for a data-channel start

OperationpreviewPattern
Scopedaw:write
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (preview_pattern)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128

Request body application/json

FieldTypeRequiredConstraintsDescription
arm_onlybooleanoptionaldefault falsePrepare without playing (needs client_id).
armed_signaturestringoptionalpattern ^[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.
barsintegeroptionalmin 1; max 64
bpmnumberoptionalmin 20; max 400
client_idstringoptionalmin length 1; max length 128The 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.
gainnumberoptionalmin 0
lead_secnumberoptionalmin 0
length_ticksintegeroptionalmin 1
patternobjectrequired
phase_offset_secnumberoptionalmin 0
placement_idstringoptionalmax length 64
ppqintegeroptionalmin 24; max 960
preview_request_idintegeroptionalmin 1; max 9007199254740991Your 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_countintegeroptionalmin 1; max 64
swingnumberoptional
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: not_armed, stale_preview_request. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/patterns:preview" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"pattern": {}}'

POST /api/v1/projects/{project_id}/patterns:resync

Recompile patterns in the engine

OperationresyncPatterns
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (resync_patterns)

Recompile every persisted pattern and placement in the live engine (optional bpm, muted_placement_ids).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bpmnumberoptionalmin 20; max 400
muted_placement_idsstring[]optional
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/patterns:resync" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

Pattern schema

FieldTypeRequiredConstraintsDescription
barsintegeroptional
idstringrequired
lengthTicksintegeroptionalPattern length in ticks. Kept consistent with bars on every write.
namestring | nulloptional
patternobjectoptional
pattern.eventsobject[]optional
pattern.sourcesobject (PatternChannel)[]optional
ppqintegeroptional
swingnumberoptional

Uses PatternChannel.

PatternCcEvent schema

FieldTypeRequiredConstraintsDescription
ccintegeroptionalmin 0; max 127
channelintegeroptionalmin 1; max 16
idstringoptional
sourceIdstringoptionalThe channel (sources[].id) it controls.
startTicknumberoptionalmin 0
typestringoptionaldefault "cc"; one of cc, control, controller
valuenumberoptionalmin 0; max 127

PatternChannel schema

FieldTypeRequiredConstraintsDescription
audioFileIdstringoptionalmax length 64Pattern sample (sample channels).
busIdstringoptionalmax length 64
colorstring | nulloptionalmax length 64Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.
cutGroupinteger | nulloptionalmin 0; max 64Cut (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.
iconstring | nulloptionalpattern ^[a-z0-9][a-z0-9_-]{0,31}$Short icon name chosen by the client. null clears it.
idstringoptionalmax length 128Channel id (events[].sourceId).
kindstringoptionalone of sample, plugin, instrument
laneIdstringoptionalmax length 64Instrument lane (plugin channels).
midiChannelinteger | nulloptionalmin 1; max 16MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.
mutedbooleanoptional
namestringoptionalmax length 255
orderintegeroptionalmin 0
outputLaneIdstring | nulloptionalmax length 64Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.
solobooleanoptional
volumenumberoptionalmin 0; max 2

PatternChannelResult schema

FieldTypeRequiredConstraintsDescription
channelobject (PatternChannel)required
channel.audioFileIdstringoptionalmax length 64Pattern sample (sample channels).
channel.busIdstringoptionalmax length 64
channel.colorstring | nulloptionalmax length 64Channel colour: #rgb, #rrggbb, #rrggbbaa or rgb()/hsl(). null clears it.
channel.cutGroupinteger | nulloptionalmin 0; max 64Cut (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.iconstring | nulloptionalpattern ^[a-z0-9][a-z0-9_-]{0,31}$Short icon name chosen by the client. null clears it.
channel.idstringoptionalmax length 128Channel id (events[].sourceId).
channel.kindstringoptionalone of sample, plugin, instrument
channel.laneIdstringoptionalmax length 64Instrument lane (plugin channels).
channel.midiChannelinteger | nulloptionalmin 1; max 16MIDI channel this channel's notes are sent on when a note has no channel of its own (instrument channels). null = channel 1.
channel.mutedbooleanoptional
channel.namestringoptionalmax length 255
channel.orderintegeroptionalmin 0
channel.outputLaneIdstring | nulloptionalmax length 64Lane (mixer track) a SAMPLE channel plays through instead of the placement's lane: set by :assignToNewInstrumentTrack. null clears it.
channel.solobooleanoptional
channel.volumenumberoptionalmin 0; max 2
okbooleanrequired
patternobject (Pattern)optional
pattern.barsintegeroptional
pattern.idstringrequired
pattern.lengthTicksintegeroptionalPattern length in ticks. Kept consistent with bars on every write.
pattern.namestring | nulloptional
pattern.patternobjectoptional
pattern.pattern.eventsobject[]optional
pattern.pattern.sourcesobject (PatternChannel)[]optional
pattern.ppqintegeroptional
pattern.swingnumberoptional
patternIdstringrequired
positionintegerrequired
timelineRevisionstring | nullrequired
undoobject (PatternChannelUndo)optional
undo.bodyobjectoptionalBody of the undo request, to send exactly as is.
undo.methodstringoptionalone of POST, PATCH, DELETEHTTP method of the undo request.
undo.opstringoptionalone of add, update, delete, unassignWhat the undo does (kept for older clients).
undo.pathstringoptionalPath of the undo request, relative to /api/v1.
undo.stepsobject[]optionalassignToNewInstrumentTrack only: the undo is TWO requests [{method, path, body}], run in order.
undo.timelineRevisionstring | nulloptionalThe revision after this change: send it as If-Match on the undo request.

Uses PatternChannel, Pattern, PatternChannelUndo.

PatternChannelUndo schema

FieldTypeRequiredConstraintsDescription
bodyobjectoptionalBody of the undo request, to send exactly as is.
methodstringoptionalone of POST, PATCH, DELETEHTTP method of the undo request.
opstringoptionalone of add, update, delete, unassignWhat the undo does (kept for older clients).
pathstringoptionalPath of the undo request, relative to /api/v1.
stepsobject[]optionalassignToNewInstrumentTrack only: the undo is TWO requests [{method, path, body}], run in order.
timelineRevisionstring | nulloptionalThe revision after this change: send it as If-Match on the undo request.

PatternNote schema

FieldTypeRequiredConstraintsDescription
durationTicknumberoptional> 0
idstringoptional
mutedbooleanoptionaldefault falseFL-style note mute: stored with the note and skipped by every player (song, pattern preview, listen/render) -- a muted note never sounds.
noteintegeroptionalmin 0; max 127
playbackRatenumberoptionalmin 0.03125; max 32type sample only: explicit sampler rate (wins over note).
rootPitchnumberoptionalmin 0; max 127type sample only: the pitch `note` is measured against.
slidebooleanoptionaldefault falseFL-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).
sourceIdstringoptionalThe channel (sources[].id) it plays.
startTicknumberoptionalmin 0
typestringoptionaldefault "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.
velocitynumberoptionalmin 0; max 1

PatternPlacement schema

FieldTypeRequiredConstraintsDescription
busIdstring | nulloptional
durationMsintegeroptional
gainnumberoptionalmin 0; max 4Saved 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.
idstringrequired
laneIdstring | nulloptional
loopDurationMsinteger | nulloptional
loopPhaseMsintegeroptional
mutedbooleanoptional
namestring | nulloptional
offsetMsintegeroptional
patternIdstringrequired
repeatCountinteger | nulloptional
soloedbooleanoptional
startMsintegeroptional
windowMsinteger | nulloptional

PatternPlacementAutomationSnapshot schema

FieldTypeRequiredConstraintsDescription
defaultValuenumberrequired
idstringrequired
pointsany[]required
revisionintegerrequired
targetobjectrequired
targetKeystringrequired
targetKindstringrequired
valueTypestringrequired

PatternPlacementBatchOp schema

FieldTypeRequiredConstraintsDescription
beforeobject (PatternPlacementSnapshot)optionalrestore: the delete's inverse op before.
before.automationobject (PatternPlacementAutomationSnapshot)[]requiredmax items 64
before.busIdstringrequired
before.displayOrderintegerrequired
before.durationMsintegerrequired
before.idstringrequired
before.laneIdstring | nullrequired
before.loopDurationMsintegerrequired
before.loopPhaseMsintegerrequired
before.mutedbooleanrequired
before.namestring | nullrequired
before.nativeEqobject | nullrequired
before.offsetMsintegerrequired
before.patternIdstringrequired
before.projectIdstringrequired
before.repeatCountintegerrequired
before.rowGainobject | nullrequired
before.soloedbooleanrequired
before.sourceBusOverridesobjectrequired
before.startMsintegerrequired
before.windowMsinteger | nullrequired
opstringrequiredone of create, update, delete, restore
placementobjectoptional
placement.busIdstringoptionalmax length 64Omitted on update = unchanged.
placement.displayOrderintegeroptionalmin 0; max 1000000Timeline row order (stored; omitted on update = unchanged).
placement.durationMsintegeroptionalmin 1
placement.laneIdstringoptionalmax length 64
placement.loopDurationMsintegeroptionalmin 1
placement.loopPhaseMsintegeroptionalmin 0
placement.mutedbooleanoptional
placement.namestringoptionalmax length 255
placement.offsetMsintegeroptionalmin 0
placement.patternIdstringoptionalmax length 64
placement.repeatCountintegeroptionalmin 1
placement.soloedbooleanoptional
placement.sourceBusOverridesobjectoptional
placement.startMsintegeroptionalmin 0
placement.windowMsinteger | nulloptionalmin 1null clears the trim window.
placementIdstringoptionalmax length 64update / delete / restore: the placement.
restoreTokenstringoptionalmax length 1024restore: the delete's inverse op restoreToken.

Uses PatternPlacementSnapshot.

PatternPlacementBatchResult schema

FieldTypeRequiredConstraintsDescription
createdLaneIdsstring[]optional
deletedIdsstring[]required
okbooleanrequired
placementsobject (PatternPlacement)[]requiredCards of the created / updated / restored placements (compact pattern).
resultsobject[]required
results[].createdLaneIdstringoptional
results[].indexintegerrequired
results[].opstringrequired
results[].placementIdstringrequired
timelineRevisionstring | nullrequired
undoobjectrequired
undo.inverse_opsobject (PatternPlacementBatchOp)[]requiredPOST {ops: inverse_ops} back to :batch to undo.
undo.timelineRevisionstring | nulloptional

Uses PatternPlacement, PatternPlacementBatchOp.

PatternPlacementDeleteResult schema

FieldTypeRequiredConstraintsDescription
actionstringoptional
okbooleanoptional
responseobjectoptional
summarystring | nulloptional
timelineRevisionstring | nulloptional
undoobjectrequired
undo.beforeobject (PatternPlacementSnapshot)required
undo.before.automationobject (PatternPlacementAutomationSnapshot)[]requiredmax items 64
undo.before.busIdstringrequired
undo.before.displayOrderintegerrequired
undo.before.durationMsintegerrequired
undo.before.idstringrequired
undo.before.laneIdstring | nullrequired
undo.before.loopDurationMsintegerrequired
undo.before.loopPhaseMsintegerrequired
undo.before.mutedbooleanrequired
undo.before.namestring | nullrequired
undo.before.nativeEqobject | nullrequired
undo.before.offsetMsintegerrequired
undo.before.patternIdstringrequired
undo.before.projectIdstringrequired
undo.before.repeatCountintegerrequired
undo.before.rowGainobject | nullrequired
undo.before.soloedbooleanrequired
undo.before.sourceBusOverridesobjectrequired
undo.before.startMsintegerrequired
undo.before.windowMsinteger | nullrequired
undo.opstringrequiredone of restore
undo.placementIdstringrequired
undo.restoreTokenstring | nullrequiredSigned, 24 h, bound to this deletion and your account; required by :restore.
undo.timelineRevisionstring | nullrequired

Uses PatternPlacementSnapshot.

PatternPlacementRestoreResult schema

FieldTypeRequiredConstraintsDescription
placementobject (PatternPlacement)required
placement.busIdstring | nulloptional
placement.durationMsintegeroptional
placement.gainnumberoptionalmin 0; max 4Saved 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.
placement.idstringrequired
placement.laneIdstring | nulloptional
placement.loopDurationMsinteger | nulloptional
placement.loopPhaseMsintegeroptional
placement.mutedbooleanoptional
placement.namestring | nulloptional
placement.offsetMsintegeroptional
placement.patternIdstringrequired
placement.repeatCountinteger | nulloptional
placement.soloedbooleanoptional
placement.startMsintegeroptional
placement.windowMsinteger | nulloptional
placementIdstringrequired
projectIdstringoptional
restoredobject (PatternPlacementSnapshot)required
restored.automationobject (PatternPlacementAutomationSnapshot)[]requiredmax items 64
restored.busIdstringrequired
restored.displayOrderintegerrequired
restored.durationMsintegerrequired
restored.idstringrequired
restored.laneIdstring | nullrequired
restored.loopDurationMsintegerrequired
restored.loopPhaseMsintegerrequired
restored.mutedbooleanrequired
restored.namestring | nullrequired
restored.nativeEqobject | nullrequired
restored.offsetMsintegerrequired
restored.patternIdstringrequired
restored.projectIdstringrequired
restored.repeatCountintegerrequired
restored.rowGainobject | nullrequired
restored.soloedbooleanrequired
restored.sourceBusOverridesobjectrequired
restored.startMsintegerrequired
restored.windowMsinteger | nullrequired
timelineRevisionstring | nullrequired

Uses PatternPlacement, PatternPlacementSnapshot.

PatternPlacementSnapshot schema

FieldTypeRequiredConstraintsDescription
automationobject (PatternPlacementAutomationSnapshot)[]requiredmax items 64
busIdstringrequired
displayOrderintegerrequired
durationMsintegerrequired
idstringrequired
laneIdstring | nullrequired
loopDurationMsintegerrequired
loopPhaseMsintegerrequired
mutedbooleanrequired
namestring | nullrequired
nativeEqobject | nullrequired
offsetMsintegerrequired
patternIdstringrequired
projectIdstringrequired
repeatCountintegerrequired
rowGainobject | nullrequired
soloedbooleanrequired
sourceBusOverridesobjectrequired
startMsintegerrequired
windowMsinteger | nullrequired

Uses PatternPlacementAutomationSnapshot.

PatternWriteResult schema

FieldTypeRequiredConstraintsDescription
actionstringoptional
okbooleanoptional
responseobjectoptional
summarystring | nulloptional
timelineRevisionstring | nulloptional

Pattern samples

Channel Rack / pattern one-shot samples of a project.

GET /api/v1/projects/{project_id}/pattern-samples

List pattern samples

OperationlistPatternSamples
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourpaginated

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
include_hiddenquerybooleanoptionaldefault falseAlso list undone / orphaned samples.
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (PatternSample)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses PatternSample, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/pattern-samples" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/pattern-samples/upload

Upload a Channel Rack sample

OperationuploadPatternSample
Scopemedia:upload
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentupload_pattern_sample

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
base64stringrequiredmin length 4File bytes, base64 (a data: URL is accepted).
filenamestringoptionalmax length 160
namestringoptionalmax length 80

Responses

StatusMeaningBodyHeaders
200The same audio is already stored (existing=true); nothing was uploaded.see below
201OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
413file_too_large: the decoded file exceeds the limit.
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
audioFileIdstringrequired
existingbooleanrequired
projectIdstringrequired
sampleobject (PatternSample)required
sample.audioFileIdstringrequired
sample.audioUrlstringoptional
sample.createdAtstring | nulloptionalformat date-time
sample.durationSecnumberoptional
sample.idstringrequired
sample.mimeTypestringoptional
sample.namestringoptional
sample.projectIdstringoptional
sample.sourceAudioFileIdstring | nulloptional
sample.sourceTrackIdstring | nulloptional
sha256stringoptional

Uses PatternSample.

201 body:

FieldTypeRequiredConstraintsDescription
audioFileIdstringrequired
existingbooleanrequired
projectIdstringrequired
sampleobject (PatternSample)required
sample.audioFileIdstringrequired
sample.audioUrlstringoptional
sample.createdAtstring | nulloptionalformat date-time
sample.durationSecnumberoptional
sample.idstringrequired
sample.mimeTypestringoptional
sample.namestringoptional
sample.projectIdstringoptional
sample.sourceAudioFileIdstring | nulloptional
sample.sourceTrackIdstring | nulloptional
sha256stringoptional

Uses PatternSample.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/pattern-samples/upload" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"base64": "<base64>"}'

GET /api/v1/projects/{project_id}/pattern-samples/{audio_file_id}/waveform

Waveform preview of a pattern sample

OperationgetPatternSampleWaveform
Scopedaw:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
audio_file_idpathstringrequiredmax length 64
bucketsqueryintegeroptionaldefault 256; min 16; max 2048Number of peaks to return.
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKPatternSampleWaveformETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: waveform_unavailable. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/pattern-samples/{audio_file_id}/waveform" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/pattern-samples/{audio_file_id}:placeOnTimeline

Place a Channel Rack sample on the Playlist

OperationplacePatternSampleOnTimeline
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentplace_pattern_sample_on_timeline

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
audio_file_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
laneIdstringoptionalmax length 64
namestringoptionalmax length 255
rackChannelIdstringoptionalmax length 255
startMsintegeroptionaldefault 0; min 0; max 86400000

Responses

StatusMeaningBodyHeaders
201OKPatternSampleTimelinePlacementETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: lane_not_audio, project_track_limit, timeline_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/pattern-samples/{audio_file_id}:placeOnTimeline" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/pattern-samples:register

Register a pattern sample

OperationregisterPatternSample
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentregister_pattern_sample

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
audio_file_idstringoptionalmax length 64
catalog_sound_idstringoptionalmax length 64Alias of sound_pack_item_id.
namestringoptionalmax length 80
preset_pack_item_idstringoptionalmax length 64
sound_pack_item_idstringoptionalmax length 64
track_idstringoptionalmax length 64

Responses

StatusMeaningBodyHeaders
200The same audio was already registered (existing=true).see below
201OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
audioFileIdstringrequired
existingbooleanoptional
projectIdstringrequired
sampleobject (PatternSample)required
sample.audioFileIdstringrequired
sample.audioUrlstringoptional
sample.createdAtstring | nulloptionalformat date-time
sample.durationSecnumberoptional
sample.idstringrequired
sample.mimeTypestringoptional
sample.namestringoptional
sample.projectIdstringoptional
sample.sourceAudioFileIdstring | nulloptional
sample.sourceTrackIdstring | nulloptional

Uses PatternSample.

201 body:

FieldTypeRequiredConstraintsDescription
audioFileIdstringrequired
existingbooleanoptional
projectIdstringrequired
sampleobject (PatternSample)required
sample.audioFileIdstringrequired
sample.audioUrlstringoptional
sample.createdAtstring | nulloptionalformat date-time
sample.durationSecnumberoptional
sample.idstringrequired
sample.mimeTypestringoptional
sample.namestringoptional
sample.projectIdstringoptional
sample.sourceAudioFileIdstring | nulloptional
sample.sourceTrackIdstring | nulloptional

Uses PatternSample.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/pattern-samples:register" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

PatternSample schema

FieldTypeRequiredConstraintsDescription
audioFileIdstringrequired
audioUrlstringoptional
createdAtstring | nulloptionalformat date-time
durationSecnumberoptional
idstringrequired
mimeTypestringoptional
namestringoptional
projectIdstringoptional
sourceAudioFileIdstring | nulloptional
sourceTrackIdstring | nulloptional

PatternSampleTimelinePlacement schema

FieldTypeRequiredConstraintsDescription
audioFileIdstringrequired
audioUrlstringoptional
clipobject (Clip)required
clip.audioOffsetSecnumberrequiredSeconds into the source file where the audible region begins (left trim).
clip.audioSourceIdstring | nulloptionalOpaque 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.clipMutedbooleanoptional
clip.durationSecnumber | nulloptionalAudible length in seconds (after trimming).
clip.editUrlstringoptional
clip.fadeInobject | nulloptionalSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeIn.curvestringoptionalone of linear, equal_power, exp, log, s_curve
clip.fadeIn.durationSecnumberoptionalmin 0
clip.fadeOutobject | nulloptionalSaved clip fade (L12): {durationSec, curve} or null = none. Absent on a backend that predates clip fades.
clip.fadeOut.curvestringoptionalone of linear, equal_power, exp, log, s_curve
clip.fadeOut.durationSecnumberoptionalmin 0
clip.idstringrequired
clip.isBackingbooleanoptional
clip.isImportedbooleanoptional
clip.laneIdstring | nulloptional
clip.mutedbooleanoptional
clip.namestring | nulloptional
clip.parkedbooleanoptionalPresent (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.sourceDurationSecnumber | nulloptionalFull 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.startMsintegerrequiredWhere the clip's audible region starts on the project timeline, in milliseconds from the project start (bar 1 beat 1 = 0).
clip.takeGroupIdstringoptionalPresent only on a stacked loop-record take: the stack this clip belongs to (FL loop recording).
clip.takeIndexintegeroptionalmin 0Order inside the stack, 0 = oldest pass. Present with takeGroupId.
clip.updatedAtstring | nulloptionalformat date-time
clip.volumenumberoptional
clipIdstringrequired
createdLanebooleanrequired
durationSecnumberoptional
engineobjectoptional
engine.clip_idnumber | nulloptional
engine.track_idnumber | nulloptional
engineErrorobjectoptional
engine_attachedbooleanrequired
engine_reload_requiredbooleanrequired
laneobject (Lane)required
lane.busIdstringoptional
lane.colorstringoptionalLane colour (#rrggbb): the saved colour (updateLane color), else the order-based default the Studio paints.
lane.colorOriginstring | nulloptionaluser = set via updateLane / the Studio; automatic = assigned default; null = legacy lane with no recorded origin.
lane.idstringrequired
lane.kindstring | nulloptional
lane.mutedbooleanrequired
lane.namestring | nulloptional
lane.orderintegeroptional
lane.pannumberrequiredmin -1; max 1
lane.pluginChainobject[]optional
lane.polarityInvertedbooleanoptional
lane.sendsobject (LaneSend)[]optionalSaved parallel aux sends (setLaneSend / deleteLaneSend).
lane.solobooleanrequired
lane.stereoSeparationnumberoptionaldefault 0; min -1; max 1
lane.swapLrbooleanoptional
lane.trackTypestring | nulloptional
lane.volumenumberrequired
laneIdstringrequired
mimeTypestringoptional
namestringoptional
projectIdstringrequired
rackChannelIdstringoptional
startMsintegerrequired
timelineRevisionstring | nullrequired
trackIdstringoptionalSame as clipId (the Studio route's name).
undoobjectrequired
undo.clipIdstringrequired
undo.createdLanebooleanrequired
undo.laneIdstringrequired
undo.opstringrequiredone of remove

Uses Clip, Lane.

PatternSampleWaveform schema

FieldTypeRequiredConstraintsDescription
audioFileIdstringrequired
bucketCountintegerrequired
durationSecnumberrequired
peaksnumber[]requiredNormalized peak amplitude per bucket (max of the stored peaks it covers).
sourcestringrequiredone of stored, computedstored: 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.

GET /api/v1/projects/{project_id}/exports

List exports

OperationlistExports
Scopeexports:read
Project roleviewer
Rate classinteractive
MCP equivalentlist_exports

Rendered exports (newest first) and saves with a finished render, each with a one-hour signed downloadUrl. hasMore means older exports exist beyond limit.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
limitqueryintegeroptionaldefault 10; min 1; max 20

Responses

StatusMeaningBodyHeaders
200OKExportList
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/exports" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/exports

Export the mix

OperationexportMix
Scopeprojects:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexport_mix

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bit_depthintegeroptionalone of 16, 24, 32wav: 16, 24 or 32 (float, default); flac: 16 or 24.
formatstringoptionaldefault "wav"; one of wav, flac, mp3, ogg
idempotency_keystringoptionalmax length 128
include_mutedbooleanoptionaldefault falsestems only: also export lanes that are muted (skipped by default).
mp3_bitrate_kbpsintegeroptionalmin 96; max 320mp3 only (CBR).
ogg_qualityintegeroptionalmin -1; max 10ogg only.
rangenull | string | objectoptionalOmit, null or "song" for the whole song; or {start_sec, end_sec} (e.g. the loop).
sample_rateintegeroptionalmin 8000; max 192000Default: the engine rate.
stemsbooleanoptionaldefault falseSplit 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.
tail_secnumberoptionaldefault 1.0; min 0; max 10

Responses

StatusMeaningBodyHeaders
202OKExportJob
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: export_in_progress. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/exports" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/v1/projects/{project_id}/exports/jobs/{job_id}

Get export status

OperationgetExportStatus
Scopeexports:read
Project roleviewer
Rate classinteractive
MCP equivalentget_export_status

Poll an exportMix job (every few seconds). When complete it carries a one-hour signed downloadUrl.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
job_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKExportJob
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/exports/jobs/{job_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

ExportJob schema

FieldTypeRequiredConstraintsDescription
downloadUrlstringoptionalOne-hour signed link (status complete).
exportobjectoptional
jobIdstringoptional
optionsobjectoptionalThe normalized export options of this job (absent for defaults).
projectIdstringrequired
projectUrlstringoptional
retryAfterSecintegeroptional
statusstringoptionalqueued | rendering | uploading | complete | failed | fallback_required
stemCountintegeroptionalStems exports only: how many stems.
stemsobject[]optionalStems 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.

ExportList schema

FieldTypeRequiredConstraintsDescription
exportsobject[]required
hasMorebooleanoptional
projectIdstringrequired
projectUrlstringoptional
savesobject[]required

Listen

Hear a project: rendered + measured excerpts and the shared listen-page preview.

POST /api/v1/projects/{project_id}/listen

Listen to the project

OperationlistenToProject
Scopeaudio:listen
Project roleeditor
Rate classinteractive
MCP equivalentlisten_to_project

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128

Request body application/json

FieldTypeRequiredConstraintsDescription
length_secnumberoptionaldefault 8; min 1; max 30.0
questionstringoptionalmax length 400
start_secnumberoptionalmin 0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
tracksstring | string[]optionalmax items 5Track names as shown on the timeline, or 'mix' (default).

Responses

StatusMeaningBodyHeaders
200OKListenReport
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: rate_limited. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/listen" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/v1/projects/{project_id}/listen-preview

Get the listen-page preview

OperationgetProjectListenPreview
Scopeprojects:read
Project rolenot pre-checked
Rate classinteractive
MCP equivalentget_project_listen_preview

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKListenPreview
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/listen-preview" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

ListenPreview schema

FieldTypeRequiredConstraintsDescription
artiststring | nulloptional
bpmanyoptional
coverArtUrlstring | nulloptional
durationSecanyoptional
keyanyoptional
latestMixobject | nulloptional
listenUrlstringoptional
playbackAudioUrlstring | nulloptional
projectIdstringrequired
shareUrlstring | nulloptional
shareVisibilitystring | nulloptional
titlestringrequired

ListenReport schema

The MCP listen_to_project analysis (measured.* are post-master dBFS, what exportMix writes); clip.playbackUrl is valid for one hour.

FieldTypeRequiredConstraintsDescription
clipobject | nulloptional
heardanyoptional
measuredobjectoptional
okbooleanoptional
projectIdstringrequired
reportsanyoptional
summaryanyoptional
trackIdstringoptional
windowobjectoptional

Realtime

Interactive-session tickets for the editing WebSocket, live WebRTC monitoring (TURN, SDP offer) and live microphone ingest.

DELETE /api/v1/interactive-sessions/{session_id}

Close an interactive editing session

OperationcloseInteractiveSession
Scopedaw:read
Project rolenot pre-checked
Rate classinteractive
BehaviourIdempotency-Key destructive (the DELETE is the confirmation)
MCP equivalentclose_interactive_session

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

ParameterInTypeRequiredConstraintsDescription
session_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/interactive-sessions/{session_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/projects/{project_id}/interactive-sessions

Open an interactive editing session

OperationopenInteractiveSession
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalentopen_interactive_session

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128

Request body application/json

FieldTypeRequiredConstraintsDescription
modestringoptionaldefault "auto"; one of auto, write, read
originstringoptionalmax length 255Browser origin that will open the socket (an allowed origin of your OAuth client).
session_idstringoptionalmax length 64Resume this open session.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
201OKInteractiveSession
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/interactive-sessions" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/live-ingest/close

Close a live input connection

OperationcloseLiveIngest
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (live_ingest_close)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
clientIdstringoptionalmax length 128
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/live-ingest/close" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/live-ingest/offer

Send the live input WebRTC offer

OperationsendLiveIngestOffer
Scopedaw:write
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (live_ingest_offer)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128

Request body application/json

FieldTypeRequiredConstraintsDescription
clientIdstringoptionalmax length 128
delay_msnumberoptional
lane_idstringoptionalmax length 64
offerobjectrequired
offer.sdpstringrequiredmin length 1
offer.typestringoptional
profilestringoptionalmax length 80
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
turn_credentialsobjectoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: oauth_grant_revoked, peer_delegation_write_required, project_write_forbidden. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/live-ingest/offer" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"offer": {"sdp": "<sdp>"}}'

GET /api/v1/projects/{project_id}/live-ingest/status

Get live input status

OperationgetLiveIngestStatus
Scopedaw:write
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (get_live_status)

Connected ingest clients and take state.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/live-ingest/status" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/monitor

Start live audio monitoring

OperationstartAudioMonitor
Scopeaudio:listen
Project roleeditor
Rate classinteractive
MCP equivalentstart_audio_monitor

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128

Request body application/json

FieldTypeRequiredConstraintsDescription
device_idstringoptionalmax length 128Deprecated and ignored.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
projectIdstringoptional
sessionobjectoptional
trackIdstringoptional
turnCredentialsobject (TurnCredentials) | nulloptional

Uses TurnCredentials.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/monitor" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

PATCH /api/v1/projects/{project_id}/monitor

Change live monitor quality

OperationsetAudioMonitorQuality
Scopeaudio:listen
Project roleviewer
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentset_audio_monitor_quality

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
client_idstringrequiredmin length 1; max length 128
packet_loss_pctintegeroptionaldefault 0; min 0; max 100
target_bitrate_bpsintegerrequiredmin 48000; max 510000
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
clientIdstringoptional
fecEnabledbooleanoptional
lowLatencybooleanoptional
maxBitrateBpsintegeroptional
okbooleanoptional
packetLossPctintegeroptional
prefillMsnumberoptional
qualityProfilestringoptional
targetBitrateBpsintegeroptional

Minimal request (required fields only):

curl -X PATCH "https://freestyle.audio/api/v1/projects/{project_id}/monitor" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"client_id": "<client_id>", "target_bitrate_bps": 48000}'

DELETE /api/v1/projects/{project_id}/monitor

Stop live audio monitoring

OperationstopAudioMonitor
Scopeaudio:listen
Project roleviewer
Rate classinteractive
BehaviourIdempotency-Key destructive (the DELETE is the confirmation)
MCP equivalentstop_audio_monitor

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
client_idquerystringoptionalmin length 1; max length 128The client_id you sent with sendMonitorOffer (or send it in a JSON body).
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
clientIdstringoptional
closedbooleanoptionaltrue: the engine tore your peer down. false: it had no peer with that client_id.
okbooleanoptional
projectIdstringoptional
trackIdstringoptional

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/monitor" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

GET /api/v1/projects/{project_id}/monitor/candidates

Get the monitoring peer's late ICE candidates

OperationgetMonitorCandidates
Scopeaudio:listen
Project roleviewer
Rate classinteractive
MCP equivalentget_audio_monitor_candidates

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
client_idquerystringoptionalmin length 1; max length 128The client_id you sent with sendMonitorOffer.
afterqueryintegeroptionaldefault 0; min 0; max 1000response.next of the previous call (0 the first time).
wait_msqueryintegeroptionaldefault 2000; min 0; max 3000How long to wait for a new candidate.
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
candidatesobject[]optional
candidates[].candidatestringoptional
candidates[].sdpMidstringoptional
clientIdstringoptional
completebooleanoptionalThe engine finished gathering: no more candidates will come.
nextintegeroptionalPass as after on the next call.
okbooleanoptional
projectIdstringoptional
trackIdstringoptional

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/monitor/candidates" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/monitor/offer

Send the monitoring WebRTC offer

OperationsendMonitorOffer
Scopeaudio:listen
Project roleeditor
Rate classinteractive
MCP equivalentrick_webrtc_offer

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128

Request body application/json

FieldTypeRequiredConstraintsDescription
client_idstringoptionalmax length 128
device_idstringoptionalmax length 128Deprecated and ignored.
low_latencybooleanoptional
modestringoptionalmax length 40
quality_profilestringoptionalmax length 80
sdpstringrequiredmin length 1; max length 65536
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
tricklebooleanoptionaldefault falseTrickle ICE: answer without waiting for the engine's TURN relay candidate; fetch later candidates with getMonitorCandidates.
turn_credentialsobjectoptionalusername/credential/expiresAt from getTurnCredentials.

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
answerobjectoptional
answer.sdpstringoptional
answer.typestringoptional
clientIdstringoptional
modestringoptional
peerGrantstringoptionalone of write, readwrite: 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.
peerGrantConfirmedbooleanoptionalAlways true here: an API offer is only answered once the engine confirmed the grant it applied.
peerGrantExpiresAtinteger | nulloptionalUnix seconds when channel writes stop; re-offer with the same client_id to renew.
qualityProfilestringoptional
tricklebooleanoptionaltrue: 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.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/monitor/offer" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"sdp": "<sdp>"}'

GET /api/v1/realtime/daw-sync-sessions

Is a project's DAW sync room live

OperationgetDawSyncLiveStatus
Scopelive:read
Project rolenot pre-checked
Rate classinteractive

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idquerystringoptionalmax length 64One Freestyle project.
project_idsquerystringoptionalmax length 3250Comma-separated project ids (at most 50).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object (DawSyncLiveStatus) | object (DawSyncLiveStatusList).

Uses DawSyncLiveStatus, DawSyncLiveStatusList.

Minimal request (required fields only):

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

OperationcreateDawSyncSession
Scopelive:write
Project rolenot pre-checked
Rate classinteractive

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

FieldTypeRequiredConstraintsDescription
project_idstring | nulloptionalmax length 64Optional Freestyle project: returns its live room (viewer access or better required).

Responses

StatusMeaningBodyHeaders
200The project's existing live room (created=false).DawSyncSession
201OKDawSyncSession
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: editor_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/realtime/daw-sync-sessions" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

GET /api/v1/realtime/turn-credentials

Get TURN credentials

OperationgetTurnCredentials
Scopeaudio:listen
Project rolenot pre-checked
Rate classinteractive
MCP equivalentget_turn_credentials

Short-lived TURN relay credentials (urls, username, credential, expiresAt) for the live audio WebRTC connection. Pass the session's dawBaseUrl as mozart_origin.

Parameters

ParameterInTypeRequiredConstraintsDescription
mozart_originquerystringoptionalmax length 300

Responses

StatusMeaningBodyHeaders
200OKTurnCredentials
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/realtime/turn-credentials" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

DawSyncLiveStatus schema

FieldTypeRequiredConstraintsDescription
codestring | nullrequiredThe room code while the room exists (members, or the grace period after the last one left), else null.
expires_atstring | nullrequiredformat date-timeWhen the room ends if everyone stays away (slides while occupied).
livebooleanrequiredSomeone is in the project's room now (members > 0). An empty room inside its 10-minute grace period answers false, with its code and expires_at.
membersintegerrequiredmin 0People in the room now.
project_idstringrequired

DawSyncLiveStatusList schema

project_ids form: one row per readable project, in the order asked; projects you cannot read (or that do not exist) are omitted.

FieldTypeRequiredConstraintsDescription
dataobject (DawSyncLiveStatus)[]required

Uses DawSyncLiveStatus.

DawSyncSession schema

FieldTypeRequiredConstraintsDescription
codestringrequiredpattern ^[ABCDEFGHJKLMNPQRSTUVWXYZ23456789]{6}$Six characters (no 0/O/1/I); send it as room in the join frame.
createdbooleanrequiredtrue (201): a new room; false (200): the project's existing live room.
expires_atstringrequiredformat date-timeWhen 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_idstring | nullrequired
websocket_urlstringrequiredwss://<origin>/api/ws/daw-sync

InteractiveSession schema

The open_interactive_session result (fields follow the MCP tool).

FieldTypeRequiredConstraintsDescription
expires_atstring | integer | nulloptional
modestringoptionalone of write, read
revisionanyoptional
sample_rateinteger | nulloptional
session_idstringrequired
session_ticketstringoptionalSingle-use; hand only this to the browser.
websocket_urlstringoptional

TurnCredentials schema

FieldTypeRequiredConstraintsDescription
credentialstringoptional
expiresAtinteger | stringoptional
urlsstring[]optional
usernamestringoptional

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

OperationgetSyncBlob
Scopeprojects:read
Project rolenot pre-checked
Rate classinteractive

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

ParameterInTypeRequiredConstraintsDescription
sha256pathstringrequiredpattern ^[0-9a-fA-F]{64}$SHA-256 of the file's bytes, hex.
waitquerynumberoptionaldefault 0; min 0; max 20.0Long-poll up to this many seconds for the state to leave uploading / verifying.

Responses

StatusMeaningBodyHeaders
200OKSyncBlob
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

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

OperationcommitSyncUpload
Scopemedia:upload
Project rolenot pre-checked
Rate classinteractive

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

ParameterInTypeRequiredConstraintsDescription
sha256pathstringrequiredpattern ^[0-9a-fA-F]{64}$SHA-256 of the file's bytes, hex.

Responses

StatusMeaningBodyHeaders
200Stored or rejected (verified inline, or already finished).SyncBlob
202OKSyncBlob
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

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

OperationgetSyncBlobContent
Scopeprojects:read
Project rolenot pre-checked
Rate classinteractive

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
sha256pathstringrequiredpattern ^[0-9a-fA-F]{64}$SHA-256 of the file's bytes, hex.

Responses

StatusMeaningBodyHeaders
302Location: the signed download URL.
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

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

OperationopenSyncUpload
Scopemedia:upload
Project rolenot pre-checked
Rate classinteractive

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
sha256pathstringrequiredpattern ^[0-9a-fA-F]{64}$SHA-256 of the file's bytes, hex.

Request body application/json

FieldTypeRequiredConstraintsDescription
sizeintegerrequiredmin 0Bytes.

Responses

StatusMeaningBodyHeaders
200Already stored (nothing to upload) or verifying.SyncUploadSession
201OKSyncUploadSession
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
413file_too_large: larger than the per-file limit.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/sync/blobs/{sha256}/uploads" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"size": 0}'

DELETE /api/v1/sync/blobs/{sha256}/uploads

Cancel an upload

OperationcancelSyncUpload
Scopemedia:upload
Project rolenot pre-checked
Rate classinteractive
Behaviourdestructive (the DELETE is the confirmation)

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
sha256pathstringrequiredpattern ^[0-9a-fA-F]{64}$SHA-256 of the file's bytes, hex.

Responses

StatusMeaningBodyHeaders
204OK
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: state_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/sync/blobs/{sha256}/uploads" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/sync/links/{link_id}/versions

List versions

OperationlistSyncVersions
Scopeprojects:read
Project rolenot pre-checked
Rate classinteractive

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
link_idpathstringrequiredmin length 1; max length 64
afterquerystringoptionalmax length 64Only versions after this one.
limitqueryintegeroptionaldefault 50; min 1; max 100

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (SyncVersion)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses SyncVersion, Pagination.

Minimal request (required fields only):

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

OperationcreateSyncVersion
Scopeprojects:write
Project rolenot pre-checked
Rate classinteractive
BehaviourIdempotency-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

ParameterInTypeRequiredConstraintsDescription
link_idpathstringrequiredmin length 1; max length 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
dawstringoptionalone of fl, logic, audacity, ableton, reaperDefaults to the link's.
dawVersionstringoptionalmax length 64
deviceIdstringoptionalmax length 128
deviceNamestringoptionalmax length 128
manifestobject (SyncManifest)requiredStored exactly as sent.
manifest.filesobject[]required
manifest.files[].modestringoptional
manifest.files[].originalPathstringoptional
manifest.files[].pathstringrequiredmax length 1024Relative, '/'-separated, no '.' or '..'.
manifest.files[].sha256stringrequiredpattern ^[0-9a-f]{64}$
manifest.files[].sizeintegerrequiredmin 0
manifest.metaobjectoptional
manifest.rootstringrequiredThe project file's path (one of files).
messagestringoptionalmax length 2000
parentVersionIdstring | nulloptional

Uses SyncManifest.

Responses

StatusMeaningBodyHeaders
201OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

201 body:

FieldTypeRequiredConstraintsDescription
createdAtstringrequiredformat date-time
forkbooleanrequired
seqintegerrequired
versionIdstringrequired

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/sync/links/{link_id}/versions" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"manifest": {"files": [], "root": "<root>"}}'

GET /api/v1/sync/links/{link_id}/versions/{version_id}

Get a version with its manifest

OperationgetSyncVersion
Scopeprojects:read
Project rolenot pre-checked
Rate classinteractive

Parameters

ParameterInTypeRequiredConstraintsDescription
link_idpathstringrequiredmin length 1; max length 64
version_idpathstringrequiredmin length 1; max length 64

Responses

StatusMeaningBodyHeaders
200OKSyncVersionDetail
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/sync/links/{link_id}/versions/{version_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

SyncBlob schema

FieldTypeRequiredConstraintsDescription
reasonstringoptionalone of hash_mismatch, size_mismatch, executable_refused, upload_missing, upload_modified, verification_failedWhy a verified upload was refused (state rejected).
sha256stringrequired
sizeintegerrequiredmin 0
statestringrequiredone of uploading, verifying, stored, rejected

SyncManifest schema

Stored exactly as sent.

FieldTypeRequiredConstraintsDescription
filesobject[]required
files[].modestringoptional
files[].originalPathstringoptional
files[].pathstringrequiredmax length 1024Relative, '/'-separated, no '.' or '..'.
files[].sha256stringrequiredpattern ^[0-9a-f]{64}$
files[].sizeintegerrequiredmin 0
metaobjectoptional
rootstringrequiredThe project file's path (one of files).

SyncUploadSession schema

201: upload with uploadUrl. 200: state stored (nothing to upload) or verifying (a commit is being checked; poll getSyncBlob).

FieldTypeRequiredConstraintsDescription
blockCountintegeroptionalceil(size / blockSizeBytes).
blockSizeBytesintegeroptional
maxBlockCountintegeroptionalAzure's per-blob block limit.
sha256stringrequired
sizeintegerrequiredmin 0
statestringrequiredone of uploading, verifying, stored, rejected
uploadExpiresAtstringoptionalformat date-time
uploadUrlstringoptionalAzure block-blob SAS for your staging object (create, write and read for Get Block List). A bearer credential: never log or share it.

SyncVersion schema

FieldTypeRequiredConstraintsDescription
authorobjectrequired
author.idstring | nulloptional
author.usernamestring | nulloptional
createdAtstringrequiredformat date-time
dawstringrequired
dawVersionstring | nullrequired
deviceIdstringrequired
deviceNamestringrequired
forkbooleanrequiredAnother version of the link has the same parent.
linkIdstringrequired
messagestringrequired
parentVersionIdstring | nullrequired
seqintegerrequired1, 2, 3 ... per link, in server order.
sizeintegerrequiredSum of the manifest's file sizes.
versionIdstringrequired

SyncVersionDetail schema

FieldTypeRequiredConstraintsDescription
authorobjectrequired
author.idstring | nulloptional
author.usernamestring | nulloptional
createdAtstringrequiredformat date-time
dawstringrequired
dawVersionstring | nullrequired
deviceIdstringrequired
deviceNamestringrequired
forkbooleanrequiredAnother version of the link has the same parent.
linkIdstringrequired
manifestobject (SyncManifest)requiredStored exactly as sent.
manifest.filesobject[]required
manifest.files[].modestringoptional
manifest.files[].originalPathstringoptional
manifest.files[].pathstringrequiredmax length 1024Relative, '/'-separated, no '.' or '..'.
manifest.files[].sha256stringrequiredpattern ^[0-9a-f]{64}$
manifest.files[].sizeintegerrequiredmin 0
manifest.metaobjectoptional
manifest.rootstringrequiredThe project file's path (one of files).
messagestringrequired
parentVersionIdstring | nullrequired
seqintegerrequired1, 2, 3 ... per link, in server order.
sizeintegerrequiredSum of the manifest's file sizes.
versionIdstringrequired

Uses SyncManifest.

Mozart AI

Natural-language Mozart AI commands, undo, and background generation jobs. Metered as Mozart AI usage.

POST /api/v1/projects/{project_id}/ai/commands

Run a Mozart AI command

OperationmozartAiCommand
Scopeai:use
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentmozart_ai_command

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
commandstringrequiredmin length 1; max length 480
confirm_destructivebooleanoptionaldefault false
generatorstringoptionalmax length 32
referencestringoptionalmax length 80
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKAiCommandResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/ai/commands" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"command": "<command>"}'

GET /api/v1/projects/{project_id}/ai/jobs/{job_id}

Get a Mozart AI job

OperationgetMozartAiJob
Scopeai:use
Project roleeditor
Rate classinteractive
MCP equivalentget_mozart_ai_job

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
job_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKAiJob
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/ai/jobs/{job_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/ai:undo

Undo the last Mozart AI action

OperationundoLastAiAction
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentundo_last_ai_action

Revert the latest undoable Mozart AI / Pro action on the project (the Studio's undo); open Studios see the change.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/ai:undo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

AiCommandResult schema

The MCP mozart_ai_command result.

FieldTypeRequiredConstraintsDescription
canUndobooleanoptional
jobIdstring | nulloptionalSet for a background generation (poll getMozartAiJob).
modelChoiceobject | nulloptional
needsClarificationbooleanoptional
okbooleanoptional
projectIdstringrequired
replystringoptional
statusstring | nulloptional
stepsobject[]optional
trackIdstringoptional
undoActionIdstring | integer | nulloptional

AiJob schema

FieldTypeRequiredConstraintsDescription
clipIdstring | nulloptional
durationSecnumber | nulloptional
elapsedSecnumber | nulloptional
jobIdstringrequired
laneIdstring | nulloptional
lastStepanyoptional
replystring | nulloptional
statusstringrequiredqueued | running | done | failed | cancelled | timeout | unknown

Catalog

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.

GET /api/v1/catalog/beats

Search the beat catalog

OperationsearchCatalogBeats
Scopeprojects:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated
MCP equivalentsearch_beats

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).

Parameters

ParameterInTypeRequiredConstraintsDescription
qquerystringoptionalmax length 120
genrequerystringoptionalmax length 64
moodquerystringoptionalmax length 64
artistquerystringoptionalmax length 128
keyquerystringoptionalmax length 8
bpm_minqueryintegeroptionalmin 20; max 400
bpm_maxqueryintegeroptionalmin 20; max 400
limitqueryintegeroptionaldefault 12; min 1; max 25
cursorquerystringoptionalmax length 512

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/beats" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/catalog/drum-kits

List drum kits

OperationlistCatalogDrumKits
Scopelibrary:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated
MCP equivalentlist_drum_kits

The caller's saved drum kits and the default kits (isDefault=true). project_id (viewer role) scopes kits to one project as the drum pad does.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idquerystringoptionalmax length 64
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/drum-kits" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/catalog/effect-presets

List AutoTune / Nectar / filter presets

OperationlistCatalogEffectPresets
Scopedaw:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated
MCP equivalentlist_effect_presets

The app's built-in preset catalogs: kind=autotune (category, retune / humanize), nectar, or filter (names for setTrackFilters).

Parameters

ParameterInTypeRequiredConstraintsDescription
kindquerystringrequiredone of autotune, nectar, filter
qquerystringoptionalmax length 120
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/effect-presets?kind=<kind>" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/catalog/marketplace

Browse the marketplace

OperationbrowseCatalogMarketplace
Scopelibrary:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated
MCP equivalentbrowse_marketplace

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

ParameterInTypeRequiredConstraintsDescription
asset_typequerystringrequiredone of beat_kit, pattern, sound_pack, sound, plugin, audio_effect
qquerystringoptionalmax length 128
categoryquerystringoptionalmax length 40
creator_idquerystringoptionalmax length 64
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/marketplace?asset_type=<asset_type>" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/catalog/marketplace/feed

The marketplace discovery feed

OperationlistCatalogMarketplaceFeed
Scopelibrary:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated
MCP equivalentmarketplace_feed

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).

Parameters

ParameterInTypeRequiredConstraintsDescription
tabquerystringoptionaldefault "all";
14 allowed values
all kicks snares hats 808s toms samples sound_packs beat_kits patterns vocal_chains plugin_presets audio_effects patches
subfilterquerystringoptionalmax length 64
seedqueryintegeroptionaldefault 0; min 0
limitqueryintegeroptionaldefault 25; min 1; max 50
cursorquerystringoptionalmax length 512

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/marketplace/feed" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/catalog/plugin-presets

Search plug-in presets

OperationlistCatalogPluginPresets
Scopelibrary:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated
MCP equivalentbrowse_marketplace (plugin)

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
qquerystringoptionalmax length 128
categoryquerystringoptionalmax length 40
creator_idquerystringoptionalmax length 64
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/plugin-presets" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/catalog/plugin-presets/nectar/{preset_name}

Get a Nectar preset

OperationgetCatalogNectarPreset
Scopedaw:read
Project rolenot pre-checked
Rate classinteractive
MCP equivalentget_nectar_preset

A Nectar factory preset's module chain, module bypasses and parameter list.

Parameters

ParameterInTypeRequiredConstraintsDescription
preset_namepathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/plugin-presets/nectar/{preset_name}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/catalog/preset-packs/{asset_id}/items

List a preset pack's items

OperationlistCatalogPresetPackItems
Scopelibrary:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated
MCP equivalentlist_preset_pack_items

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
asset_idpathstringrequiredmax length 128
qquerystringoptionalmax length 128
tagquerystringoptionalmax length 64
categoryquerystringoptionalmax length 64
limitqueryintegeroptionaldefault 50; min 1; max 100
cursorquerystringoptionalmax length 512

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/preset-packs/{asset_id}/items" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/catalog/sounds

Browse sounds

OperationbrowseCatalogSounds
Scopelibrary:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated
MCP equivalentbrowse_sounds

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
qquerystringoptionalmax length 128
tagquerystringoptionalmax length 64
categoryquerystringoptionalmax length 64
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Pagination.

Minimal request (required fields only):

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

OperationpreviewCatalogSound
Scopelibrary:read
Project rolenot pre-checked
Rate classinteractive

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
item_idpathstringrequiredmin length 1; max length 128

Responses

StatusMeaningBodyHeaders
200OKCatalogSoundPreview
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409preview_unavailable: the sound has no directly playable stored audio.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

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

OperationstreamCatalogSoundPreview
Scopelibrary:read
Project rolenot pre-checked
Rate classinteractive

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
item_idpathstringrequiredmin length 1; max length 128

Responses

StatusMeaningBodyHeaders
200OK
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/sounds/{item_id}/preview/audio" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/catalog/splice-sounds

Search Splice sounds

OperationsearchCatalogSpliceSounds
Scopelibrary:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated
MCP equivalentsearch_splice_sounds

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
qquerystringrequiredmin length 1; max length 200
bpmquerystringoptionalmax length 16
keyquerystringoptionalmax length 16
genrequerystringoptionalmax length 64
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/splice-sounds?q=<q>" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/catalog/splice-sounds/{sound_id}/preview

Preview a Splice sound

OperationpreviewCatalogSpliceSound
Scopelibrary:read
Project rolenot pre-checked
Rate classinteractive
MCP equivalentpreview_splice_sound

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
sound_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/splice-sounds/{sound_id}/preview" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/catalog/vocal-chain-presets

List vocal chain presets

OperationlistCatalogVocalChainPresets
Scopedaw:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated
MCP equivalentlist_vocal_chain_presets

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

ParameterInTypeRequiredConstraintsDescription
sourcequerystringoptionaldefault "library"; one of library, marketplace
kindquerystringoptionalone of vocal, audio, guitar, instrument, drums, bus
qquerystringoptionalmax length 128
filterquerystringoptionalmax length 40
song_project_idquerystringoptionalmax length 64
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/vocal-chain-presets" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/catalog/vocal-chain-presets/{preset_id}

Get a vocal chain preset

OperationgetCatalogVocalChainPreset
Scopedaw:read
Project rolenot pre-checked
Rate classinteractive
MCP equivalentget_vocal_chain_preset

One preset (visible to the caller) with its chain: phase-1 (voice model, super-resolution) and the plug-in list.

Parameters

ParameterInTypeRequiredConstraintsDescription
preset_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON object with any fields.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/catalog/vocal-chain-presets/{preset_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

CatalogSoundPreview schema

FieldTypeRequiredConstraintsDescription
assetIdstringoptionalThe sound / sound pack the row belongs to.
durationSecnumber | nulloptional
expiresAtstringrequiredformat date-time
expiresInSecintegerrequiredmin 0
itemIdstringrequiredThe browseCatalogSounds row id.
mimeTypestringoptional
namestring | nulloptional
previewRequiresAuthbooleanoptionaltrue: fetch previewUrl with your Authorization header (API-streamed audio); false: fetch it with no credentials (direct storage URL).
previewUrlstringrequiredWhere 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.

GET /api/v1/engine/actions

List engine actions

OperationlistEngineActions
Scopedaw:read
Project rolenot pre-checked
Rate classinteractive
MCP equivalentlist_pro_capabilities

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
familyquerystringoptionalmax length 32Only this family.
mutatesquerybooleanoptionalOnly reads (false) or writes (true).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
countintegerrequired
dataobject (EngineActionCatalogEntry)[]required
familiesstring[]required

Uses EngineActionCatalogEntry.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/engine/actions" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/engine/actions/add_808

add_808 (compose, reversible)

Operationengine_add_808
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (add_808)

808 bassline from a library 808 pitched to the song's chord roots (or chords) from the drop; rhythm 'busy'.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
chordsany[]optional
namestringoptional
rhythmanyoptional
sound_queryanyoptional
start_measureintegeroptional
verifybooleanoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/add_808" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/add_drum_hits

add_drum_hits (compose, reversible)

Operationengine_add_drum_hits
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (add_drum_hits)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
audio_file_idstringoptional
barsintegeroptional
beatsanyoptional
end_measureintegeroptional
end_secnumberoptional
namestringoptional
rangesanyoptional
sound_idstringoptional
sound_queryanyoptional
start_measureintegeroptional
start_secnumberoptional
stepsany[]optional
velocitynumberoptionalmin 0; max 1
verifybooleanoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/add_drum_hits" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/add_groove

add_groove (compose, reversible)

Operationengine_add_groove
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (add_groove)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
allow_duplicatesanyoptional
end_measureintegeroptional
full_kitanyoptional
genreanyoptional
replace_originalanyoptional
rolesanyoptional
start_measureintegeroptional
swingnumberoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/add_groove" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/add_hat_rolls

add_hat_rolls (compose, reversible)

Operationengine_add_hat_rolls
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (add_hat_rolls)

Hi-hat rolls on the last beat of every N bars (every_bars, division 1/32|1/16T|1/32T).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
channelintegeroptionalmin 1; max 16
divisionanyoptional
every_barsanyoptional
trackanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/add_hat_rolls" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/add_instrument_track

add_instrument_track (compose, reversible)

Operationengine_add_instrument_track
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (add_instrument_track)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
articulationanyoptional
barsintegeroptional
beats_per_chordanyoptional
chordsany[]optional
fill_songbooleanoptional
genreanyoptional
instrumentanyoptional
namestringoptional
notesany[]optional
octaveintegeroptional
pattern_nameanyoptional
place_at_measureintegeroptional
presetanyoptional
repeatintegeroptional
roleanyoptional
verifybooleanoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/add_instrument_track" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/add_lane_plugin

add_lane_plugin (plugins, reversible)

Operationengine_add_lane_plugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (add_lane_plugin)

Add a catalog plug-in (type) to a lane's chain, persisted like the Studio's add. position (0-based slot) inserts it there instead of appending.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
lane_idstringrequired
open_editoranyoptional
positionanyoptional
presetanyoptional
typeanyrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/add_lane_plugin" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "type": "<type>"}'

POST /api/v1/projects/{project_id}/engine/actions/adjust_volume

adjust_volume (compose, reversible)

Operationengine_adjust_volume
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (adjust_volume)

Turn tracks up/down: tracks, change_db, or direction up/down + amount 'a little'/'a lot'.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
amountnumberoptional
change_dbnumberoptional
directionanyoptional
tracksany[]required

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/adjust_volume" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"tracks": []}'

POST /api/v1/projects/{project_id}/engine/actions/align_to_beat

align_to_beat (compose, reversible)

Operationengine_align_to_beat
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (align_to_beat)

Fix off-beat pattern tracks: exact song tempo + downbeat, snap to bar lines, re-tile, listen. tracks = names.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
tracksany[]optional
verifybooleanoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/align_to_beat" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/all_notes_off

all_notes_off (instruments, reversible)

Operationengine_all_notes_off
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (all_notes_off)

Stop all notes on an instrument.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
instrument_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/all_notes_off" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"instrument_id": "<instrument_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/analyze_harmony

analyze_harmony (compose, read)

Operationengine_analyze_harmony
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
MCP equivalentexecute_pro_action (analyze_harmony)

The backing's real key, chord loop and drop measure. Call before writing chords/melodies.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/analyze_harmony" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/analyze_song_sections

analyze_song_sections (compose, read)

Operationengine_analyze_song_sections
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
MCP equivalentexecute_pro_action (analyze_song_sections)

Song sections (intro/verse/hook/...) with sec + measures from the backing.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/analyze_song_sections" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/apply_lane_plugin_preset

apply_lane_plugin_preset (plugins, reversible)

Operationengine_apply_lane_plugin_preset
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (apply_lane_plugin_preset)

Apply a named lane plugin preset. Presets exist only for Nectar and Auto-Tune slots; any other plug-in is refused with preset_not_supported (409).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
lane_idstringrequired
plugin_indexintegerrequired
presetanyrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: preset_not_supported. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/apply_lane_plugin_preset" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "plugin_index": 1, "preset": "<preset>"}'

POST /api/v1/projects/{project_id}/engine/actions/apply_mix

apply_mix (mixer, reversible)

Operationengine_apply_mix
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (apply_mix)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
changesobject[]requiredmin items 1; max items 64
changes[].bus_idstringoptionalmax length 64
changes[].gainnumberoptionalmin 0; max 4
changes[].lane_idstringoptionalmax length 64
changes[].mutedbooleanoptional
changes[].pannumberoptionalmin -1; max 1Lane pan, bus pan (target bus) or master pan (target master).
changes[].persistbooleanoptional
changes[].soloedbooleanoptional
changes[].targetstringrequiredone of lane, master, bus
changes[].track_idintegeroptionalmin 0
pattern_runtime_muted_placement_idsstring[]optionalmax items 4096The project's full silenced pattern placement set (what resync_patterns muted_placement_ids takes), installed by the engine inside the same mix batch.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/apply_mix" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"changes": []}'

POST /api/v1/projects/{project_id}/engine/actions/attach_clip_to_session

attach_clip_to_session (timeline, reversible)

Operationengine_attach_clip_to_session
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (attach_clip_to_session)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
db_track_idstringrequired
namestringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/attach_clip_to_session" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"db_track_id": "<db_track_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/audit_arrangement

audit_arrangement (compose, reversible)

Operationengine_audit_arrangement
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (audit_arrangement)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
fixanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/audit_arrangement" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/audition_patch

audition_patch (compose, reversible)

Operationengine_audition_patch
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (audition_patch)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
familyanyoptional
patch_keyanyoptional
questionanyoptional
roleanyoptional
trackanyrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/audition_patch" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track": "<track>"}'

POST /api/v1/projects/{project_id}/engine/actions/clear_track_plugins

clear_track_plugins (plugins, destructive)

Operationengine_clear_track_plugins
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (clear_track_plugins)

Remove every plugin from a track chain.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/clear_track_plugins" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/close_plugin_editor

close_plugin_editor (plugins, reversible)

Operationengine_close_plugin_editor
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (close_plugin_editor)

Close (hide) a track plugin's native editor.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
plugin_indexintegerrequired
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/close_plugin_editor" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "plugin_index": 1}'

POST /api/v1/projects/{project_id}/engine/actions/compose_song

compose_song (compose, reversible)

Operationengine_compose_song
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (compose_song)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bassanyoptional
bpmnumberoptional
craftanyoptional
genreanyoptional
instrumentsanyoptional
keyanyoptional
partsanyoptional
patchesanyoptional
progressionsanyoptional
soundsanyoptional
structureanyoptional
variationanyoptional
verifybooleanoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/compose_song" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/convert_musical_time

convert_musical_time (tempo, read)

Operationengine_convert_musical_time
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (convert_musical_time)

Convert positions between tick, beat, bar:beat:tick, seconds, ms and frames through the project's tempo/meter map.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
positionsstring | object[]requiredmax items 256
sample_ratenumberoptionalmin 8000; max 384000

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/convert_musical_time" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"positions": []}'

POST /api/v1/projects/{project_id}/engine/actions/copy_append_clip

copy_append_clip (timeline, reversible)

Operationengine_copy_append_clip
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (copy_append_clip)

Duplicate a clip (clip_id = durable id; track_id accepted as an alias) on its lane, at start_ms or right after the lane's last clip.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
clip_idstringoptional
start_msnumberoptionalmin 0
track_idstringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/copy_append_clip" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/create_empty_lane

create_empty_lane (timeline, reversible)

Operationengine_create_empty_lane
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (create_empty_lane)

Create an empty Pro lane.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
kindstringrequired
labelstringoptional
lane_idstringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/create_empty_lane" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"kind": "<kind>"}'

POST /api/v1/projects/{project_id}/engine/actions/create_pattern

create_pattern (patterns, reversible)

Operationengine_create_pattern
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (create_pattern)

Create a persisted pattern with notes, steps, samples, instruments, and MIDI CC automation.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
patternobjectrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/create_pattern" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"pattern": {}}'

POST /api/v1/projects/{project_id}/engine/actions/create_pattern_placement

create_pattern_placement (patterns, reversible)

Operationengine_create_pattern_placement
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (create_pattern_placement)

Place a pattern clip on the Pro timeline.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
placementobjectrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/create_pattern_placement" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"placement": {}}'

POST /api/v1/projects/{project_id}/engine/actions/create_track

create_track (timeline, reversible)

Operationengine_create_track
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (create_track)

Create an empty audio or instrument track.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
kindstringrequired
labelstringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/create_track" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"kind": "<kind>"}'

POST /api/v1/projects/{project_id}/engine/actions/delete_bus

delete_bus (mixer, destructive)

Operationengine_delete_bus
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (delete_bus)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/delete_bus" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/delete_bus_plugin

delete_bus_plugin (plugins, destructive)

Operationengine_delete_bus_plugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (delete_bus_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
plugin_indexintegerrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/delete_bus_plugin" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "plugin_index": 1, "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/delete_clip

delete_clip (timeline, destructive)

Operationengine_delete_clip
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (delete_clip)

Delete a clip from a track.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
clip_idstringrequired
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/delete_clip" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "clip_id": "<clip_id>", "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/delete_lane_plugin

delete_lane_plugin (plugins, destructive)

Operationengine_delete_lane_plugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (delete_lane_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
instance_idstringrequired
lane_idstringrequired
project_idstringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/delete_lane_plugin" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"instance_id": "<instance_id>", "lane_id": "<lane_id>", "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/delete_pattern

delete_pattern (patterns, destructive)

Operationengine_delete_pattern
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (delete_pattern)

Soft-delete a pattern after its placements are removed.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
pattern_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/delete_pattern" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"pattern_id": "<pattern_id>", "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/delete_pattern_placement

delete_pattern_placement (patterns, destructive)

Operationengine_delete_pattern_placement
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (delete_pattern_placement)

Soft-delete a pattern timeline clip.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
placement_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/delete_pattern_placement" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"placement_id": "<placement_id>", "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/delete_track

delete_track (timeline, destructive)

Operationengine_delete_track
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (delete_track)

Delete a track and its live contents.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/delete_track" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/detect_tempo

detect_tempo (compose, reversible)

Operationengine_detect_tempo
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (detect_tempo)

The song's BPM from the backing (never ask the user).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/detect_tempo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/finalize_recording

finalize_recording (recording, destructive)

Operationengine_finalize_recording
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (finalize_recording)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
project_idstringrequired
take_idstringoptionalmin 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_forstringoptionaldefault "saved"; one of saved, placedplaced: 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_msintegeroptionalmin 0; max 10000How long to wait for the saved clip (default 8000).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

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.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/finalize_recording" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"project_id": "<project_id>", "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/find_sounds

find_sounds (compose, read)

Operationengine_find_sounds
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
MCP equivalentexecute_pro_action (find_sounds)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
avoidanyoptional
genreanyoptional
limitintegeroptional
querystringoptional
taganyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/find_sounds" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/find_splice_sounds

find_splice_sounds (compose, read)

Operationengine_find_splice_sounds
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
MCP equivalentexecute_pro_action (find_splice_sounds)

Search the user's Splice account for one-shots (role e.g. snare, genre); owned sounds are free, new ones need the user's credit OK.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
genreanyoptional
limitintegeroptional
querystringoptional
roleanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/find_splice_sounds" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/get_bus_plugin_live_state

get_bus_plugin_live_state (plugins, read)

Operationengine_get_bus_plugin_live_state
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_bus_plugin_live_state)

Read a live bus plugin's parameters and state.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
include_parametersbooleanoptional
plugin_indexintegerrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_bus_plugin_live_state" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "plugin_index": 1}'

POST /api/v1/projects/{project_id}/engine/actions/get_clip_waveform

get_clip_waveform (timeline, read)

Operationengine_get_clip_waveform
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_clip_waveform)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
bucketsintegeroptionaldefault 1024; min 1; max 8192
clip_idstringoptional
end_frameintegeroptionalmin 1
start_frameintegeroptionalmin 0

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_clip_waveform" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/get_history

get_history (history, read)

Operationengine_get_history
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_history)

List project undo/redo history.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
limitintegeroptional
project_idstringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_history" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/get_history_status

get_history_status (history, read)

Operationengine_get_history_status
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_history_status)

Read undo/redo availability.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
project_idstringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_history_status" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/get_lane_eq

get_lane_eq (mixer, read)

Operationengine_get_lane_eq
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_lane_eq)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
lane_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_lane_eq" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/get_lane_plugin_state

get_lane_plugin_state (plugins, read)

Operationengine_get_lane_plugin_state
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_lane_plugin_state)

Read a lane plugin's parameters and state (a native EQ slot adds its typed bands as eq).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
include_parametersbooleanoptional
include_state_hashbooleanoptional
lane_idstringrequired
plugin_indexintegerrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_lane_plugin_state" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "plugin_index": 1}'

POST /api/v1/projects/{project_id}/engine/actions/get_live_status

get_live_status (recording, read)

Operationengine_get_live_status
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_live_status)

Read live input/recording status (connected ingest clients, take state).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_live_status" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/get_loop_region

get_loop_region (transport, read)

Operationengine_get_loop_region
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_loop_region)

Read the persisted project loop region.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
project_idstringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_loop_region" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/get_mix_revision

get_mix_revision (mixer, read)

Operationengine_get_mix_revision
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_mix_revision)

Read the live mix revision (bumped by every mix change from any source).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_mix_revision" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/get_pattern_eq

get_pattern_eq (patterns, read)

Operationengine_get_pattern_eq
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_pattern_eq)

Read a pattern placement's EQ: typed bands (band, enabled, type, frequency_hz, gain_db, q).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
placement_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_pattern_eq" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"placement_id": "<placement_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/get_pattern_sample_peaks

get_pattern_sample_peaks (patterns, read)

Operationengine_get_pattern_sample_peaks
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_pattern_sample_peaks)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
audio_file_idstringoptional
bucketsintegeroptionaldefault 1024; min 1; max 8192
project_idstringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_pattern_sample_peaks" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/get_plugin_editor_status

get_plugin_editor_status (plugins, read)

Operationengine_get_plugin_editor_status
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_plugin_editor_status)

Read whether a track plugin's native editor is open and its window size.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
plugin_indexintegerrequired
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_plugin_editor_status" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "plugin_index": 1}'

POST /api/v1/projects/{project_id}/engine/actions/get_session_status

get_session_status (project, read)

Operationengine_get_session_status
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_session_status)

Read the loaded project/session state.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_session_status" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/get_tempo_stretch_job

get_tempo_stretch_job (tempo, read)

Operationengine_get_tempo_stretch_job
Scopedaw:write
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (get_tempo_stretch_job)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
job_idstringrequiredmin length 1; max length 64

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_tempo_stretch_job" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"job_id": "<job_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/get_timing_map

get_timing_map (tempo, read)

Operationengine_get_timing_map
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_timing_map)

Read the project's tempo segments (ticks @96 PPQ, quarter-note bpm, curve constant|linear), meter map (bars, n/d, accent groups, pickup), pattern meters, revision and units; positions=[...] converts tick/beat/BBT/seconds.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
include_historybooleanoptionaldefault false
positionsstring | object[]optionalmax items 256
sample_ratenumberoptionalmin 8000; max 384000

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_timing_map" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/get_transport

get_transport (transport, read)

Operationengine_get_transport
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_transport)

Read playhead, playback, and loop state.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_transport" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/get_transport_clock

get_transport_clock (transport, read)

Operationengine_get_transport_clock
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (get_transport_clock)

Read the high-resolution transport clock.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/get_transport_clock" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/history_redo

history_redo (history, reversible)

Operationengine_history_redo
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (history_redo)

Redo the latest undone Pro edit.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
project_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/history_redo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"project_id": "<project_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/history_undo

history_undo (history, reversible)

Operationengine_history_undo
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (history_undo)

Undo the latest Pro edit.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
project_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/history_undo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"project_id": "<project_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/launch_pattern_previews

launch_pattern_previews (patterns, reversible)

Operationengine_launch_pattern_previews
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (launch_pattern_previews)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
beats_per_barintegeroptionaldefault 4; min 1; max 32
lead_secnumberoptionaldefault 0.05; min 0; max 2
preview_request_idintegeroptionalmin 1; max 9007199254740991Increasing id per press; a stop with id N refuses starts <= N.
previewsobject[]requiredmin items 1; max items 8The clips of the scene: one armed preview per slot (slot_id defaults to the armed_signature).
previews[].armed_signaturestringrequiredpattern ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$
previews[].gainnumberoptionaldefault 0.92; min 0; max 2
previews[].repeat_countintegeroptionaldefault 64; min 1; max 64
previews[].slot_idstringoptionalpattern ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$
project_idstringrequired
quantizestringoptionaldefault "none"; one of none, beat, barStart on the next beat / bar of your running layers' grid.
stop_othersbooleanoptionaldefault falseYour layers in other slots stop at the launch instant.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: too_many_previews. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/launch_pattern_previews" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"project_id": "<project_id>", "previews": []}'

POST /api/v1/projects/{project_id}/engine/actions/list_buses

list_buses (mixer, read)

Operationengine_list_buses
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (list_buses)

List mixer buses and routing state.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/list_buses" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/list_installed_instruments

list_installed_instruments (instruments, read)

Operationengine_list_installed_instruments
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (list_installed_instruments)

Which instrument generators this engine host can instantiate.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/list_installed_instruments" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/list_lane_plugins

list_lane_plugins (plugins, read)

Operationengine_list_lane_plugins
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (list_lane_plugins)

List the plugins on a lane.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
lane_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/list_lane_plugins" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/list_pattern_placements

list_pattern_placements (patterns, read)

Operationengine_list_pattern_placements
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (list_pattern_placements)

List pattern clips placed on the Pro timeline.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/list_pattern_placements" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/list_patterns

list_patterns (patterns, read)

Operationengine_list_patterns
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (list_patterns)

List persisted patterns, notes, steps, and MIDI CC automation.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/list_patterns" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/list_track_sends

list_track_sends (mixer, read)

Operationengine_list_track_sends
Scopedaw:write
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (list_track_sends)

List a lane's live aux sends [{bus_id, level, pre_fader}].

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/list_track_sends" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/list_tracks

list_tracks (timeline, read)

Operationengine_list_tracks
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourread-only (changes nothing)
MCP equivalentexecute_pro_action (list_tracks)

List loaded Pro tracks, lanes, and clips.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/list_tracks" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/listen

listen (compose, read)

Operationengine_listen
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
MCP equivalentexecute_pro_action (listen)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
end_barintegeroptional
questionanyoptional
start_barintegeroptional
tracksany[]optional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/listen" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/listen_back

listen_back (compose, reversible)

Operationengine_listen_back
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (listen_back)

Render tracks and HEAR them (level, clipping, timing vs the beat, in key) and fix what it can. tracks = names.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
fixanyoptional
tracksany[]optional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/listen_back" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/live_ingest_close

live_ingest_close (recording, reversible)

Operationengine_live_ingest_close
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (live_ingest_close)

Close the calling user's own live input (ingest) connection by clientId.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
clientIdanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/live_ingest_close" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/live_ingest_offer

live_ingest_offer (recording, reversible)

Operationengine_live_ingest_offer
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (live_ingest_offer)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
clientIdanyoptional
delay_msintegeroptional
lane_idstringoptional
offerobjectrequired
offer.sdpstringrequired
offer.typestringrequiredone of offer
profileanyoptional
turn_credentialsobjectoptionalusername/credential/expiresAt from get_turn_credentials

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/live_ingest_offer" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"offer": {"sdp": "<sdp>", "type": "offer"}}'

POST /api/v1/projects/{project_id}/engine/actions/load_bus_plugin

load_bus_plugin (plugins, destructive)

Operationengine_load_bus_plugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (load_bus_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
bypassedbooleanoptional
indexanyoptional
instance_idstringoptional
pathstringrequired
positionanyoptional
state_base64anyoptional
type_idstringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/load_bus_plugin" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "path": "<path>", "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/load_labs

load_labs (instruments, reversible)

Operationengine_load_labs
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (load_labs)

Load LABS on an instrument lane.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
lane_idstringrequired
presetanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/load_labs" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/load_lane_chain

load_lane_chain (plugins, reversible)

Operationengine_load_lane_chain
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (load_lane_chain)

Load a lane's saved chain (track_plugin_state rows) into the live engine.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
lane_idstringrequired
namestringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/load_lane_chain" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/load_omnisphere

load_omnisphere (instruments, reversible)

Operationengine_load_omnisphere
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (load_omnisphere)

Load Omnisphere on an instrument lane.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
lane_idstringrequired
patchanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/load_omnisphere" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/load_track_plugin

load_track_plugin (plugins, destructive)

Operationengine_load_track_plugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (load_track_plugin)

Add a plugin to a track chain.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
indexanyoptional
pathstringrequired
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/load_track_plugin" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "path": "<path>", "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/mix_check

mix_check (compose, reversible)

Operationengine_mix_check
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (mix_check)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
balanceanyoptional
end_barintegeroptional
genreanyoptional
stageanyoptional
start_barintegeroptional
tracksany[]optional
whyanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/mix_check" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/move_bus_plugin

move_bus_plugin (plugins, reversible)

Operationengine_move_bus_plugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (move_bus_plugin)

Reorder a bus plugin (bus_id='master' for the master inserts).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
plugin_indexintegerrequired
to_indexintegerrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/move_bus_plugin" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "plugin_index": 1, "to_index": 1}'

POST /api/v1/projects/{project_id}/engine/actions/move_clip_to_lane

move_clip_to_lane (timeline, reversible)

Operationengine_move_clip_to_lane
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (move_clip_to_lane)

Move a clip (durable clip_id) to another lane (lane_id), optionally to start_ms.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
clip_idstringrequired
lane_idstringrequired
start_msnumberoptionalmin 0

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/move_clip_to_lane" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"clip_id": "<clip_id>", "lane_id": "<lane_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/move_lane_plugin

move_lane_plugin (plugins, reversible)

Operationengine_move_lane_plugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (move_lane_plugin)

Move one plug-in instance to to_index in its lane's chain (the Studio's drag reorder; the engine renumbers the persisted chain order).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
instance_idstringrequired
lane_idstringrequired
to_indexintegerrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/move_lane_plugin" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"instance_id": "<instance_id>", "lane_id": "<lane_id>", "to_index": 1}'

POST /api/v1/projects/{project_id}/engine/actions/open_plugin_editor

open_plugin_editor (plugins, reversible)

Operationengine_open_plugin_editor
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (open_plugin_editor)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
plugin_indexintegerrequired
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/open_plugin_editor" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "plugin_index": 1}'

POST /api/v1/projects/{project_id}/engine/actions/pause

pause (transport, reversible)

Operationengine_pause
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (pause)

Pause playback.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/pause" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/play

play (transport, reversible)

Operationengine_play
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (play)

Start playback.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/play" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/play_range

play_range (transport, reversible)

Operationengine_play_range
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (play_range)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
end_frameintegeroptionalmin 1
end_secnumberoptional> 0
end_ticknumberoptional> 0
sample_ratenumberoptionalmin 8000; max 384000
start_frameintegeroptionalmin 0
start_secnumberoptionalmin 0
start_ticknumberoptionalmin 0
timing_map_revisionintegeroptionalmin 0Optional guard: the engine must hold this timing-map revision (else 409 timing_map_revision_mismatch).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/play_range" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/preview_pattern

preview_pattern (patterns, reversible)

Operationengine_preview_pattern
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (preview_pattern)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
arm_onlybooleanoptionaldefault falsePrepare (compile + resolve samples) without playing.
armed_signaturestringoptionalpattern ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$Names the armed preview; without arm_only, starts that armed preview.
barsintegeroptional
bpmnumberoptional
gainnumberoptionalmin 0; max 4
lead_secnumberoptional
length_ticksintegeroptional
patternobjectrequired
phase_offset_secnumberoptional
placement_idstringoptional
ppqintegeroptional
preview_request_idintegeroptionalmin 1; max 9007199254740991Increasing id per press; a stop with id N refuses starts <= N.
project_idstringrequired
repeat_countintegeroptionaldefault 1; min 1; max 64
swingnumberoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/preview_pattern" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"project_id": "<project_id>", "pattern": {}}'

POST /api/v1/projects/{project_id}/engine/actions/preview_pattern_sample

preview_pattern_sample (patterns, reversible)

Operationengine_preview_pattern_sample
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (preview_pattern_sample)

Audition a pattern sample.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
audio_file_idstringrequired
duration_msintegeroptional
gainnumberoptionalmin 0; max 4
pitchanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/preview_pattern_sample" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"audio_file_id": "<audio_file_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/read_skill

read_skill (compose, read)

Operationengine_read_skill
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
MCP equivalentexecute_pro_action (read_skill)

Load one producer skill card by name (see SKILLS in the prompt, e.g. genre-country, bass-808, humanize) before acting; no name = the list.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
namestringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/read_skill" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/refine_song

refine_song (compose, reversible)

Operationengine_refine_song
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (refine_song)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
fixanyoptional
tracksany[]optional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/refine_song" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/release_plugin_editor

release_plugin_editor (plugins, reversible)

Operationengine_release_plugin_editor
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (release_plugin_editor)

Release a track plugin's native editor and its resources.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
plugin_indexintegerrequired
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/release_plugin_editor" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "plugin_index": 1}'

POST /api/v1/projects/{project_id}/engine/actions/remove_track

remove_track (compose, destructive)

Operationengine_remove_track
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (remove_track)

Delete pattern/instrument tracks for real (placements, patterns, lane). tracks = names.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
tracksany[]required

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/remove_track" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"tracks": [], "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/remove_track_send

remove_track_send (mixer, reversible)

Operationengine_remove_track_send
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (remove_track_send)

Remove a lane's aux send to a bus (idempotent). The reply's previous is the removed send (null = there was none) for undo.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
persistbooleanoptionaldefault true
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/remove_track_send" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "bus_id": "<bus_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/rename_bus

rename_bus (mixer, reversible)

Operationengine_rename_bus
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (rename_bus)

Rename a mixer bus.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
labelstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/rename_bus" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "label": "<label>"}'

POST /api/v1/projects/{project_id}/engine/actions/rename_track

rename_track (timeline, reversible)

Operationengine_rename_track
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (rename_track)

Rename a track.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
labelstringrequired
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/rename_track" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "label": "<label>"}'

POST /api/v1/projects/{project_id}/engine/actions/render_live_window

render_live_window (render, destructive)

Operationengine_render_live_window
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (render_live_window)

Render a selected timeline window.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
end_secnumberrequired
formatanyoptional
project_idstringrequired
start_secnumberrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/render_live_window" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"project_id": "<project_id>", "start_sec": 0.0, "end_sec": 0.0, "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/render_share

render_share (render, destructive)

Operationengine_render_share
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (render_share)

Start the canonical project share render.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
project_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/render_share" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"project_id": "<project_id>", "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/replace_lane_instrument

replace_lane_instrument (instruments, reversible)

Operationengine_replace_lane_instrument
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (replace_lane_instrument)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
instrumentanyrequired
lane_idstringrequired
presetanyoptional
restore_stateanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/replace_lane_instrument" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "instrument": "<instrument>"}'

POST /api/v1/projects/{project_id}/engine/actions/replace_stem_part

replace_stem_part (compose, reversible)

Operationengine_replace_stem_part
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (replace_stem_part)

Drop one part of a split song (drums, kick, snare, hats, bass, melody, keys, vocals...) so your part replaces it; with = replacement track.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
partstringrequiredmax length 200drums | kick | snare | hats | cymbals | toms | bass | melody | keys | guitar | vocals | instrumental, or a stem lane's name.
removebooleanoptionaldefault falseDelete the part's stem lane instead of muting it.
sourcestringoptionaldefault "backing"; max length 200Which split to act on: 'backing' or the source track's name.
withstringoptionalmax length 200The track or pattern name that plays instead, or 'nothing'.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/replace_stem_part" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"part": "<part>"}'

POST /api/v1/projects/{project_id}/engine/actions/restore_lane_plugin

restore_lane_plugin (plugins, reversible)

Operationengine_restore_lane_plugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (restore_lane_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bypassedbooleanoptional
idstringrequired
lane_idstringrequired
native_eqanyoptional
open_editoranyoptional
param_overridesobject[]optionalmax items 4096Hosted plug-in parameter values to replay after the state chunk (a delete's restore.params): [{index, value_norm}], normalized 0..1.
param_overrides[].indexintegerrequiredmin 0; max 65535
param_overrides[].value_normnumberrequiredmin 0; max 1
paramsobjectoptional
positionanyoptional
presetanyoptional
state_base64anyoptional
state_signatureanyoptional
typeanyrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/restore_lane_plugin" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "type": "<type>", "id": "<id>"}'

POST /api/v1/projects/{project_id}/engine/actions/restore_lane_plugin_state

restore_lane_plugin_state (plugins, reversible)

Operationengine_restore_lane_plugin_state
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (restore_lane_plugin_state)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bypassedbooleanoptional
expected_plugin_instance_idstringrequired
expected_plugin_typeanyoptional
lane_idstringrequired
paramsobjectoptional
plugin_indexintegerrequired
state_base64anyrequired
state_signatureanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/restore_lane_plugin_state" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "plugin_index": 1, "state_base64": "<state_base64>", "expected_plugin_instance_id": "<expected_plugin_instance_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/restore_original

restore_original (compose, reversible)

Operationengine_restore_original
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (restore_original)

Put the song's original part back (part drums|kick|snare|hats|bass|melody|vocals): unmutes its stem, mutes the AI replacement.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
partanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/restore_original" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/restore_pattern

restore_pattern (patterns, reversible)

Operationengine_restore_pattern
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (restore_pattern)

Restore a soft-deleted pattern.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
pattern_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/restore_pattern" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"pattern_id": "<pattern_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/resync_patterns

resync_patterns (patterns, reversible)

Operationengine_resync_patterns
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (resync_patterns)

Recompile all persisted patterns and placements.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bpmnumberoptional
muted_placement_idsanyoptional
project_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/resync_patterns" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"project_id": "<project_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/route_track_to_bus

route_track_to_bus (mixer, reversible)

Operationengine_route_track_to_bus
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (route_track_to_bus)

Route a track to a mixer bus.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/route_track_to_bus" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "bus_id": "<bus_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/search_patches

search_patches (compose, read)

Operationengine_search_patches
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
MCP equivalentexecute_pro_action (search_patches)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
avoidanyoptional
limitintegeroptional
pluginanyoptional
querystringrequired
roleanyoptional
trackanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/search_patches" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"query": "<query>"}'

POST /api/v1/projects/{project_id}/engine/actions/seek

seek (transport, reversible)

Operationengine_seek
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (seek)

Move the playhead: seconds, or tick (96 PPQ, through the tempo map; optional timing_map_revision guard).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
secondsanyoptional
ticknumberoptionalmin 0
timing_map_revisionintegeroptionalmin 0Optional guard: the engine must hold this timing-map revision (else 409 timing_map_revision_mismatch).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/seek" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/seek_and_play

seek_and_play (transport, reversible)

Operationengine_seek_and_play
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (seek_and_play)

Move the playhead and start playback.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
secondsanyrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/seek_and_play" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"seconds": "<seconds>"}'

POST /api/v1/projects/{project_id}/engine/actions/send_midi

send_midi (instruments, reversible)

Operationengine_send_midi
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (send_midi)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
actionstringoptionalone of note_on, note_off
channelintegeroptionalmin 1; max 16
eventsobject[]optionalmin items 1; max items 64
events[].actionstringrequiredone of note_on, note_off
events[].channelintegeroptionaldefault 1; min 1; max 16
events[].noteintegerrequiredmin 0; max 127
events[].velocitynumberoptionalmin 0; max 1
instrument_idstringrequired
lane_idstringoptional
noteintegeroptionalmin 0; max 127
velocitynumberoptionalmin 0; max 1

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/send_midi" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"instrument_id": "<instrument_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/separate_stems

separate_stems (compose, reversible)

Operationengine_separate_stems
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (separate_stems)

Split the backing (or a track) into stems on the GPU (mode instruments|four_stems|drums|vocals; replace). Takes minutes; don't wait.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
forcebooleanoptionaldefault falseRe-run a split that already exists for this source and mode.
modestringoptionaldefault "instruments"; one of instruments, four_stems, drums, vocalsinstruments = vocals/drums/bass/guitar/piano/other; four_stems = vocals/drums/bass/other; drums = kit pieces (on a whole song also vocals/bass/other); vocals = vocal + instrumental.
replacebooleanoptionaldefault falsetrue: when the stems land, mute the source and play the stems instead.
sourcestringoptionaldefault "backing"; max length 200'backing' (the song) or the name of an audio track, e.g. 'Drums (stem)'.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/separate_stems" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/set_bus_gain

set_bus_gain (mixer, reversible)

Operationengine_set_bus_gain
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_bus_gain)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
gainnumberrequiredmin 0; max 4
persistbooleanoptionaldefault true

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_bus_gain" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "gain": 0.0}'

POST /api/v1/projects/{project_id}/engine/actions/set_bus_muted

set_bus_muted (mixer, reversible)

Operationengine_set_bus_muted
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_bus_muted)

Mute or unmute a mixer bus.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
mutedbooleanrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_bus_muted" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "muted": false}'

POST /api/v1/projects/{project_id}/engine/actions/set_bus_pan

set_bus_pan (mixer, reversible)

Operationengine_set_bus_pan
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_bus_pan)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
pannumberrequiredmin -1; max 1

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_bus_pan" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "pan": -1.0}'

POST /api/v1/projects/{project_id}/engine/actions/set_bus_plugin_bypassed

set_bus_plugin_bypassed (plugins, reversible)

Operationengine_set_bus_plugin_bypassed
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_bus_plugin_bypassed)

Bypass or enable a bus plugin (bus_id='master' for the master inserts).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
bypassedbooleanrequired
plugin_indexintegerrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_bus_plugin_bypassed" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "plugin_index": 1, "bypassed": false}'

POST /api/v1/projects/{project_id}/engine/actions/set_bus_plugin_mix

set_bus_plugin_mix (plugins, reversible)

Operationengine_set_bus_plugin_mix
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_bus_plugin_mix)

Per-slot wet/dry mix of a bus plugin: 0 = dry, 1 = fully wet (default).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
mixnumberrequired
persistbooleanoptionaldefault true
plugin_indexintegerrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_bus_plugin_mix" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "plugin_index": 1, "mix": 0.0}'

POST /api/v1/projects/{project_id}/engine/actions/set_bus_plugin_parameter

set_bus_plugin_parameter (plugins, reversible)

Operationengine_set_bus_plugin_parameter
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_bus_plugin_parameter)

Set one normalized bus-plugin parameter (bus_id='master' for the master inserts).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
parameter_indexintegerrequired
plugin_indexintegerrequired
value_normanyrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_bus_plugin_parameter" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "plugin_index": 1, "parameter_index": 1, "value_norm": "<value_norm>"}'

POST /api/v1/projects/{project_id}/engine/actions/set_bus_soloed

set_bus_soloed (mixer, reversible)

Operationengine_set_bus_soloed
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_bus_soloed)

Solo or unsolo a mixer bus.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
soloedbooleanrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_bus_soloed" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>", "soloed": false}'

POST /api/v1/projects/{project_id}/engine/actions/set_bus_stereo

set_bus_stereo (mixer, reversible)

Operationengine_set_bus_stereo
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_bus_stereo)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
persistbooleanoptionaldefault true
polarity_invertedanyoptional
separationanyoptional
swap_lranyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_bus_stereo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bus_id": "<bus_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/set_clip_fade

set_clip_fade (automation, reversible)

Operationengine_set_clip_fade
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_clip_fade)

Fade a clip in/out (gain envelope). clip_id = dbTrackId, pattern:<placement-id> or backing:<backing-id>; length as duration_sec or bars.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
barsintegeroptional
clip_idstringrequired
directionanyrequired
duration_secnumberoptional> 0

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_clip_fade" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"clip_id": "<clip_id>", "direction": "<direction>"}'

POST /api/v1/projects/{project_id}/engine/actions/set_clip_fades

set_clip_fades (timeline, reversible)

Operationengine_set_clip_fades
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_clip_fades)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
clip_idstringrequired
fade_inanyoptional
fade_outanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_clip_fades" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"clip_id": "<clip_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/set_clip_gain

set_clip_gain (timeline, reversible)

Operationengine_set_clip_gain
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_clip_gain)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
clip_idstringrequired
gainnumberrequiredmin 0; max 4Linear clip gain, 1 = unity (4 = +12 dB).
persistbooleanoptionaldefault truefalse = engine only (a drag tick); send the final value with true.
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_clip_gain" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "clip_id": "<clip_id>", "gain": 0.0}'

POST /api/v1/projects/{project_id}/engine/actions/set_clip_muted

set_clip_muted (timeline, reversible)

Operationengine_set_clip_muted
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_clip_muted)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
clip_idstringrequired
mutedbooleanrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_clip_muted" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"clip_id": "<clip_id>", "muted": false}'

POST /api/v1/projects/{project_id}/engine/actions/set_instrument_patch

set_instrument_patch (compose, reversible)

Operationengine_set_instrument_patch
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_instrument_patch)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
articulationanyoptional
genreanyoptional
instrumentanyoptional
presetanyoptional
roleanyoptional
trackanyrequired
verifybooleanoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_instrument_patch" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track": "<track>"}'

POST /api/v1/projects/{project_id}/engine/actions/set_labs_preset

set_labs_preset (instruments, reversible)

Operationengine_set_labs_preset
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_labs_preset)

Select a LABS preset.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
instrument_idstringrequired
presetanyrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_labs_preset" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"instrument_id": "<instrument_id>", "preset": "<preset>"}'

POST /api/v1/projects/{project_id}/engine/actions/set_lane_native_params

set_lane_native_params (plugins, reversible)

Operationengine_set_lane_native_params
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_lane_native_params)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
instance_idstringrequired
lane_idstringrequired
paramsobjectrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_lane_native_params" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"instance_id": "<instance_id>", "lane_id": "<lane_id>", "params": {}}'

POST /api/v1/projects/{project_id}/engine/actions/set_lane_plugin_bypassed

set_lane_plugin_bypassed (plugins, reversible)

Operationengine_set_lane_plugin_bypassed
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_lane_plugin_bypassed)

Bypass or enable a lane plugin.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bypassedbooleanrequired
lane_idstringrequired
plugin_indexintegerrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_lane_plugin_bypassed" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "plugin_index": 1, "bypassed": false}'

POST /api/v1/projects/{project_id}/engine/actions/set_lane_plugin_eq_band

set_lane_plugin_eq_band (plugins, reversible)

Operationengine_set_lane_plugin_eq_band
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_lane_plugin_eq_band)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bandintegerrequiredmin 0; max 7Band index 0-7.
enabledbooleanrequired
expected_plugin_instance_idstringoptionalmax length 128instance_id the slot must hold.
expected_plugin_typestringoptionalmax length 64type_id the slot must hold.
frequencynumberrequiredmin 20.0; max 20000.0
gain_dbnumberrequiredmin -18.0; max 18.0
lane_idstringrequired
persistbooleanoptionaldefault truefalse = engine only (a drag tick); send the final value with true.
plugin_indexintegerrequiredmin 0; max 64
qnumberrequiredmin 0.1; max 18.0
typestringoptionaldefault "bell";
16 allowed values
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
Band shape (the Studio EQ's shape list).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: plugin_instance_mismatch. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_lane_plugin_eq_band" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "plugin_index": 0, "band": 0, "enabled": false, "frequency": 20.0, "gain_db": -18.0, "q": 0.1}'

POST /api/v1/projects/{project_id}/engine/actions/set_lane_plugin_mix

set_lane_plugin_mix (plugins, reversible)

Operationengine_set_lane_plugin_mix
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_lane_plugin_mix)

Per-slot wet/dry mix of a lane plugin (FL's slot Mix knob): 0 = dry (slot input), 1 = fully wet (default). Saved with the project unless persist=false.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
lane_idstringrequired
mixnumberrequired
persistbooleanoptionaldefault true
plugin_indexintegerrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_lane_plugin_mix" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "plugin_index": 1, "mix": 0.0}'

POST /api/v1/projects/{project_id}/engine/actions/set_lane_plugin_parameter

set_lane_plugin_parameter (plugins, reversible)

Operationengine_set_lane_plugin_parameter
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_lane_plugin_parameter)

Set one normalized lane-plugin parameter.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
lane_idstringrequired
parameter_indexintegerrequired
plugin_indexintegerrequired
value_normanyrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_lane_plugin_parameter" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "plugin_index": 1, "parameter_index": 1, "value_norm": "<value_norm>"}'

POST /api/v1/projects/{project_id}/engine/actions/set_lane_plugin_program

set_lane_plugin_program (plugins, reversible)

Operationengine_set_lane_plugin_program
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_lane_plugin_program)

Select a lane plugin program/preset.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
lane_idstringrequired
plugin_indexintegerrequired
programanyrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_lane_plugin_program" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "plugin_index": 1, "program": "<program>"}'

POST /api/v1/projects/{project_id}/engine/actions/set_metronome

set_metronome (transport, reversible)

Operationengine_set_metronome
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_metronome)

Turn the metronome click on or off (on: bool); optional gain 0-1.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
gainnumberoptionalmin 0; max 4
onbooleanrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_metronome" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"on": false}'

POST /api/v1/projects/{project_id}/engine/actions/set_omnisphere_patch

set_omnisphere_patch (instruments, reversible)

Operationengine_set_omnisphere_patch
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_omnisphere_patch)

Select an Omnisphere patch.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
instrument_idstringrequired
patchanyrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_omnisphere_patch" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"instrument_id": "<instrument_id>", "patch": "<patch>"}'

POST /api/v1/projects/{project_id}/engine/actions/set_patch

set_patch (compose, reversible)

Operationengine_set_patch
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_patch)

Put ONE exact patch from search_patches on an instrument track: track + family + patch_key copied from the candidate. Undoable.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
familyanyrequired
patch_keyanyrequired
trackanyrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_patch" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track": "<track>", "family": "<family>", "patch_key": "<patch_key>"}'

POST /api/v1/projects/{project_id}/engine/actions/set_pattern_eq_band

set_pattern_eq_band (patterns, reversible)

Operationengine_set_pattern_eq_band
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_pattern_eq_band)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bandintegerrequiredmin 0; max 7Band index 0-7.
enabledbooleanrequired
frequencynumberrequiredmin 20.0; max 20000.0
gain_dbnumberrequiredmin -18.0; max 18.0
persistbooleanoptionaldefault truefalse = engine only (a drag tick); send the final value with true.
placement_idstringrequired
qnumberrequiredmin 0.1; max 18.0
typestringoptionaldefault "bell";
16 allowed values
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
Band shape (the Studio EQ's shape list).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_pattern_eq_band" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"placement_id": "<placement_id>", "band": 0, "enabled": false, "frequency": 20.0, "gain_db": -18.0, "q": 0.1}'

POST /api/v1/projects/{project_id}/engine/actions/set_pattern_placement_gain

set_pattern_placement_gain (patterns, reversible)

Operationengine_set_pattern_placement_gain
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_pattern_placement_gain)

Set a timeline pattern row's gain (a level, not a mute: use set_track_muted).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
gainnumberrequiredmin 0; max 4
placement_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_pattern_placement_gain" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"placement_id": "<placement_id>", "gain": 0.0}'

POST /api/v1/projects/{project_id}/engine/actions/set_pattern_source_gain

set_pattern_source_gain (patterns, reversible)

Operationengine_set_pattern_source_gain
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_pattern_source_gain)

Set one source/channel gain within a pattern (a level, never a mute: muting a lane is set_track_muted).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
gainnumberrequiredmin 0; max 4
pattern_idstringrequired
source_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_pattern_source_gain" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"pattern_id": "<pattern_id>", "source_id": "<source_id>", "gain": 0.0}'

POST /api/v1/projects/{project_id}/engine/actions/set_pattern_steps

set_pattern_steps (compose, reversible)

Operationengine_set_pattern_steps
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_pattern_steps)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
audio_file_idstringoptional
barsintegeroptional
channelintegeroptionalmin 1; max 16
channelsany[]optional
every_barintegeroptional
fill_songbooleanoptional
pattern_idstringoptional
pattern_nameanyoptional
placebooleanoptional
place_at_measureintegeroptional
repeatintegeroptional
replacebooleanoptional
sound_idstringoptional
sound_queryanyoptional
stepsany[]optional
velocitynumberoptionalmin 0; max 1
verifybooleanoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_pattern_steps" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/set_project_loop_region

set_project_loop_region (transport, reversible)

Operationengine_set_project_loop_region
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_project_loop_region)

Persist the project loop region. A bound left out keeps the stored one; enabled=true with no usable region is refused with loop_region_required.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
enabledbooleanrequired
end_secnumberoptional
project_idstringrequired
start_secnumberoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: loop_region_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_project_loop_region" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"project_id": "<project_id>", "enabled": false}'

POST /api/v1/projects/{project_id}/engine/actions/set_project_tempo

set_project_tempo (patterns, reversible)

Operationengine_set_project_tempo
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_project_tempo)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bpmnumberrequiredmin 20; max 400
expected_revisionanyoptional
modestringoptionaldefault "keep_time"; one of keep_time, stretch_audiokeep_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).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: tempo_stretch_in_progress, timing_map_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_project_tempo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bpm": 20.0}'

POST /api/v1/projects/{project_id}/engine/actions/set_speaker_muted

set_speaker_muted (transport, reversible)

Operationengine_set_speaker_muted
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_speaker_muted)

Mute or unmute DAW speaker output.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
mutedbooleanrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_speaker_muted" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"muted": false}'

POST /api/v1/projects/{project_id}/engine/actions/set_timing_map

set_timing_map (tempo, reversible)

Operationengine_set_timing_map
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_timing_map)

Atomically replace tempo and/or meter (whole lists) and merge pattern meters at expected_revision; returns the new revision.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_revisionintegerrequiredmin 0The revision you read (get_timing_map); 0 = never edited. Mismatch → code timing_map_revision_conflict.
idempotency_keystringoptionalmin length 1; max length 128Retrying the same request with the same key returns the revision it produced (replayed: true).
meterobject[]optionalmax items 256Replaces the whole meter list (changes only on bar lines); [] resets to 4/4; omit to keep.
meter[].barintegeroptionalmin 1
meter[].denominatorintegerrequiredone of 1, 2, 4, 8, 16, 32
meter[].groupsinteger[]optionalAccent grouping in denominator beats, summing to numerator (7/8 → [2,2,3]). Default: compound meters in threes (6/8 → [3,3]), otherwise the downbeat only.
meter[].numeratorintegerrequiredmin 1; max 64
meter[].tickintegeroptionalmin 0
patternsobjectoptional{pattern_id: {meter: [...]}} merged by id; null removes a pattern's meter (back to 4/4). Pattern bars count from the pattern start.
pickup_ticksintegeroptionalmin 0Anacrusis before bar 1 (bar 0), shorter than one bar of meter[0]; 0 = none.
reasonstringoptionalmax length 200
tempoobject[]optionalmax items 1024Replaces the whole tempo list; [] resets to one constant segment at the current tick-0 bpm; omit to keep.
tempo[].barintegeroptionalmin 1
tempo[].beatnumberoptionalmin 0
tempo[].bpmnumberrequiredmin 10; max 522
tempo[].curvestringoptionaldefault "constant"; one of constant, linearconstant = step (holds until the next segment); linear = ramp. Aliases: step, ramp.
tempo[].end_bpmnumberoptionalmin 10; max 522linear only: tempo reached at the next segment's start (default: next segment's bpm). Ramps are linear in beats.
tempo[].tickintegeroptionalmin 0

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_timing_map" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"expected_revision": 0}'

POST /api/v1/projects/{project_id}/engine/actions/set_track_eq_band

set_track_eq_band (mixer, reversible)

Operationengine_set_track_eq_band
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_track_eq_band)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bandintegerrequiredmin 0; max 7Band index 0-7.
enabledbooleanrequired
frequencynumberrequiredmin 20.0; max 20000.0
gain_dbnumberrequiredmin -18.0; max 18.0
persistbooleanoptionaldefault truefalse = engine only (a drag tick); send the final value with true.
qnumberrequiredmin 0.1; max 18.0
track_idstringrequired
typestringoptionaldefault "bell";
16 allowed values
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
Band shape (the Studio EQ's shape list).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_track_eq_band" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "band": 0, "enabled": false, "frequency": 20.0, "gain_db": -18.0, "q": 0.1}'

POST /api/v1/projects/{project_id}/engine/actions/set_track_gain

set_track_gain (mixer, reversible)

Operationengine_set_track_gain
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_track_gain)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
gainnumberrequiredmin 0; max 4
persistbooleanoptionaldefault true
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_track_gain" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "gain": 0.0}'

POST /api/v1/projects/{project_id}/engine/actions/set_track_muted

set_track_muted (mixer, reversible)

Operationengine_set_track_muted
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_track_muted)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
mutedbooleanrequired
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_track_muted" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "muted": false}'

POST /api/v1/projects/{project_id}/engine/actions/set_track_pan

set_track_pan (mixer, reversible)

Operationengine_set_track_pan
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_track_pan)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
pannumberrequiredmin -1; max 1
persistbooleanoptionaldefault true
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_track_pan" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "pan": -1.0}'

POST /api/v1/projects/{project_id}/engine/actions/set_track_send

set_track_send (mixer, reversible)

Operationengine_set_track_send
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_track_send)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bus_idstringrequired
levelanyrequired
persistbooleanoptionaldefault true
pre_faderanyoptional
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_track_send" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "bus_id": "<bus_id>", "level": "<level>"}'

POST /api/v1/projects/{project_id}/engine/actions/set_track_soloed

set_track_soloed (mixer, reversible)

Operationengine_set_track_soloed
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_track_soloed)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
soloedbooleanrequired
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_track_soloed" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "soloed": false}'

POST /api/v1/projects/{project_id}/engine/actions/set_track_stereo

set_track_stereo (mixer, reversible)

Operationengine_set_track_stereo
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_track_stereo)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
persistbooleanoptionaldefault true
polarity_invertedanyoptional
separationanyoptional
swap_lranyoptional
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_track_stereo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/set_transport_loop

set_transport_loop (transport, reversible)

Operationengine_set_transport_loop
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_transport_loop)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
enabledbooleanrequired
end_secnumberoptional
end_ticknumberoptional> 0
start_secnumberoptional
start_ticknumberoptionalmin 0
timing_map_revisionintegeroptionalmin 0Optional guard: the engine must hold this timing-map revision (else 409 timing_map_revision_mismatch).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: loop_region_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/set_transport_loop" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"enabled": false}'

POST /api/v1/projects/{project_id}/engine/actions/shift_clip

shift_clip (timeline, reversible)

Operationengine_shift_clip
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (shift_clip)

Move a clip. Prefer start_measure (1-based bars) over start_ms.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
clip_idstringrequired
start_measureintegeroptional
start_msnumberoptionalmin 0
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/shift_clip" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "clip_id": "<clip_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/snapshot_lane_plugin

snapshot_lane_plugin (plugins, read)

Operationengine_snapshot_lane_plugin
Scopedaw:write
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (snapshot_lane_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_plugin_instance_idstringoptional
expected_plugin_typeanyoptional
lane_idstringrequired
plugin_indexintegerrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/snapshot_lane_plugin" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "plugin_index": 1}'

POST /api/v1/projects/{project_id}/engine/actions/song_brief

song_brief (compose, reversible)

Operationengine_song_brief
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (song_brief)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
log_entriesanyoptional
updateanyoptional
whyanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/song_brief" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/split_clip

split_clip (timeline, reversible)

Operationengine_split_clip
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (split_clip)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
clip_idstringoptional
new_clip_idstringoptional
split_msintegerrequired
track_idstringoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/split_clip" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"split_ms": 1}'

POST /api/v1/projects/{project_id}/engine/actions/start_recording

start_recording (recording, reversible)

Operationengine_start_recording
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (start_recording)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bpmnumberoptionalmin 20; max 400Count-in tempo; installed as the engine tempo when the map is constant.
count_in_beatsintegeroptionaldefault 0; min 0; max 8Metronome count-in beats before the take (0 = record at once). The reply returns at the recording boundary with count_in timing.
lane_idstringoptional
project_idstringrequired
seek_secondsnumberoptionalmin 0Park the (stopped) transport here before the count-in.
start_transportbooleanoptionaldefault falseStart the transport on the recording boundary (needs count_in_beats > 0).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: recording_in_progress. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/start_recording" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"project_id": "<project_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/start_stream

start_stream (stream, reversible)

Operationengine_start_stream
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (start_stream)

Start the live audio stream.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
formatanyoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/start_stream" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/stem_status

stem_status (compose, read)

Operationengine_stem_status
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
MCP equivalentexecute_pro_action (stem_status)

Progress of a stem split and the project's stem lanes (a pure read; it loads nothing).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/stem_status" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/stop_all_pattern_previews

stop_all_pattern_previews (patterns, reversible)

Operationengine_stop_all_pattern_previews
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (stop_all_pattern_previews)

Stop all pattern previews.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
preview_request_idintegeroptionalmin 1; max 9007199254740991Increasing id per press; a stop with id N refuses starts <= N.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/stop_all_pattern_previews" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/stop_pattern_preview

stop_pattern_preview (patterns, reversible)

Operationengine_stop_pattern_preview
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (stop_pattern_preview)

Stop one pattern preview. slot_id stops only that scene-launch slot; without it, your single preview and all of your scene layers.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
placement_idstringoptional
preview_idstringoptional
preview_request_idintegeroptionalmin 1; max 9007199254740991Increasing id per press; a stop with id N refuses starts <= N.
slot_idstringoptionalpattern ^[A-Za-z0-9][A-Za-z0-9_-]{0,127}$Stop only this scene-launch slot.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/stop_pattern_preview" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/stop_stream

stop_stream (stream, reversible)

Operationengine_stop_stream
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (stop_stream)

Stop the live audio stream.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/stop_stream" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/swap_sound

swap_sound (compose, reversible)

Operationengine_swap_sound
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (swap_sound)

Swap ONE drum channel's sample (track + channel e.g. 'Hi Hat'; sound_query like 'bright natural hat'); keeps hits, never repeats a sample.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
channelintegeroptionalmin 1; max 16
sound_idstringoptional
sound_queryanyoptional
trackanyoptional
verifybooleanoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/swap_sound" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/transport_count_in

transport_count_in (transport, reversible)

Operationengine_transport_count_in
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (transport_count_in)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bpmnumberoptionalmin 20; max 400Count-in tempo; installed as the engine tempo when the map is constant.
count_in_beatsintegeroptionaldefault 4; min 1; max 16Count-in clicks before the transport starts.
seek_secondsnumberoptionalmin 0Park the stopped transport here first (0 = the project start).
waitbooleanoptionaldefault trueAnswer on the boundary (transport_started=true); false answers at once.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: count_in_cancelled, recording_in_progress, transport_rolling. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/transport_count_in" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine/actions/trim_clip

trim_clip (timeline, reversible)

Operationengine_trim_clip
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (trim_clip)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
audio_offset_secnumberoptionalmin 0
clip_duration_secnumberoptional
clip_idstringrequired
duration_secnumberoptional> 0
start_msnumberoptionalmin 0
track_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/trim_clip" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"track_id": "<track_id>", "clip_id": "<clip_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/undo_tempo_stretch

undo_tempo_stretch (tempo, reversible)

Operationengine_undo_tempo_stretch
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (undo_tempo_stretch)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
job_idstringrequiredmin length 1; max length 64

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/undo_tempo_stretch" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"job_id": "<job_id>"}'

POST /api/v1/projects/{project_id}/engine/actions/undo_timing_map

undo_timing_map (tempo, reversible)

Operationengine_undo_timing_map
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (undo_timing_map)

Undo the last tempo/meter map edit at expected_revision (writes a new revision restoring the previous content).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_revisionintegerrequiredmin 0The revision you read (get_timing_map); 0 = never edited. Mismatch → code timing_map_revision_conflict.
idempotency_keystringoptionalmin length 1; max length 128Retrying the same request with the same key returns the revision it produced (replayed: true).
reasonstringoptionalmax length 200

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/undo_timing_map" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"expected_revision": 0}'

POST /api/v1/projects/{project_id}/engine/actions/unload_lane

unload_lane (timeline, destructive)

Operationengine_unload_lane
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (unload_lane)

Engine-only unload (does NOT delete; use remove_track).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
lane_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: confirmation_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/unload_lane" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"lane_id": "<lane_id>", "confirm": true}'

POST /api/v1/projects/{project_id}/engine/actions/update_pattern

update_pattern (patterns, reversible)

Operationengine_update_pattern
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (update_pattern)

Edit a pattern's name, length, swing, channels, notes, steps, samples, instruments, or MIDI CC automation.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
patternobjectrequired
pattern_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/update_pattern" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"pattern_id": "<pattern_id>", "pattern": {}}'

POST /api/v1/projects/{project_id}/engine/actions/update_pattern_placement

update_pattern_placement (patterns, reversible)

Operationengine_update_pattern_placement
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (update_pattern_placement)

Move, trim, loop, rename, mute, solo, or reroute a pattern timeline clip. placement.windowMs: null clears the trim window (untrimmed, full extent).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
placementobjectrequired
placement_idstringrequired

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/update_pattern_placement" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"placement_id": "<placement_id>", "placement": {}}'

POST /api/v1/projects/{project_id}/engine/actions/write_pattern_notes

write_pattern_notes (compose, reversible)

Operationengine_write_pattern_notes
Scopedaw:write
Project roleeditor
Rate classai (interactive + Mozart AI quota)
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (write_pattern_notes)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
barsintegeroptional
beats_per_chordanyoptional
channelintegeroptionalmin 1; max 16
chordsany[]optional
fill_songbooleanoptional
notesany[]optional
octaveintegeroptional
pattern_idstringoptional
pattern_nameanyoptional
placebooleanoptional
place_at_measureintegeroptional
repeatintegeroptional
replacebooleanoptional
verifybooleanoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/actions/write_pattern_notes" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

POST /api/v1/projects/{project_id}/engine:execute

Execute an engine action by name (generic)

OperationexecuteEngineAction
Scopedaw:read
Project roleviewer
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live session (defaults to the project's first take).
confirmquerybooleanoptionaldefault falseRequired true for destructive actions.
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
actionstringrequiredmax length 64A name from listEngineActions.
argumentsobjectoptionalThe action's typed arguments.
confirmbooleanoptional

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine:execute" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"action": "<action>"}'

POST /api/v1/projects/{project_id}/engine:reload

Reload the live session from the saved project

OperationreloadEngineSession
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
modestringoptionaldefault "full"; one of full, reconcile
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKEngineReloadResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error
504engine_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.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine:reload" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

EngineActionCatalogEntry schema

FieldTypeRequiredConstraintsDescription
argumentSchemaobjectrequired
budgetsstring[]optional
descriptionstringoptional
destructivebooleanoptional
familystringrequired
idempotencyKeybooleanoptional
methodstringoptionalone of POST
mutatesbooleanrequired
namestringrequired
operationIdstringrequired
pathstringoptional
ratestringoptionalone of interactive, ai
requiresConfirmationbooleanoptional
riskstringrequiredone of read, reversible, destructive
rolestringrequiredone of viewer, editor
scopestringrequiredone of daw:read, daw:write

EngineReloadResult schema

FieldTypeRequiredConstraintsDescription
alreadyLoadedbooleanoptionalmode=reconcile only: the running session was reused and reconciled to the saved clips instead of rebuilt.
durationMsintegerrequiredmin 0
engineInstancestring | nulloptional
fullyLoadedbooleanrequired
modestringrequiredone of full, reconcile
projectIdstringrequired
reloadedbooleanrequired
timelineRevisionstring | nulloptional

Engine state

Live engine state (tracks, mix, clips, buses, transport, history) and MIDI audition.

POST /api/v1/projects/{project_id}/engine/midi

Audition MIDI notes

OperationsendEngineMidi
Scopedaw:write
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (send_midi)

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).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane scoping the live session.

Request body application/json

FieldTypeRequiredConstraintsDescription
actionstringoptionalone of note_on, note_off
channelintegeroptionalmin 1; max 16
eventsobject[]optionalmin items 1; max items 64
events[].actionstringrequiredone of note_on, note_off
events[].channelintegeroptionaldefault 1; min 1; max 16
events[].noteintegerrequiredmin 0; max 127
events[].velocitynumberoptionalmin 0; max 1
instrument_idstringrequired
lane_idstringoptional
noteintegeroptionalmin 0; max 127
velocitynumberoptionalmin 0; max 1

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/midi" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"instrument_id": "<instrument_id>"}'

POST /api/v1/projects/{project_id}/engine/midi:allNotesOff

Silence an instrument

OperationengineMidiAllNotesOff
Scopedaw:write
Project roleeditor
Rate classinteractive
MCP equivalentexecute_pro_action (all_notes_off)

all_notes_off on one instrument (instrument_id).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane scoping the live session.

Request body application/json

FieldTypeRequiredConstraintsDescription
instrument_idstringrequiredmax length 64

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/midi:allNotesOff" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"instrument_id": "<instrument_id>"}'

GET /api/v1/projects/{project_id}/engine/mix

Get the live mix

OperationgetEngineMix
Scopedaw:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match
MCP equivalentget_pro_state (mix)

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).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane scoping the live session.
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKEngineMixETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409engine_unavailable / target_not_loaded: the live session is not reachable.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/engine/mix" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/engine/mix:apply

Apply a mix move atomically

OperationapplyEngineMix
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (apply_mix)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane scoping the live session.
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
changesobject[]requiredmin items 1; max items 64
changes[].bus_idstringoptionalmax length 64target=bus: the bus. target=lane: route the lane to this bus ('master').
changes[].bus_pannumberoptionalmin -1; max 1target=bus only: alias of pan.
changes[].gainnumberoptionalmin 0; max 4
changes[].lane_idstringoptionalmax length 64Lane id from listLanes / getEngineMix db_track_id ('backing' = the beat).
changes[].master_pannumberoptionalmin -1; max 1target=master only: alias of pan.
changes[].mutedbooleanoptional
changes[].pannumberoptionalmin -1; max 1Lane pan (target lane), bus pan (target bus) or master pan (target master). Bus and master pan are live session state (not saved).
changes[].persistbooleanoptionaldefault trueLane pan / master gain: false = live only (while sweeping).
changes[].soloedbooleanoptional
changes[].targetstringrequiredone of lane, master, bus
changes[].track_idintegeroptionalmin 0Engine track id (alternative to lane_id).
expected_mix_revisionintegeroptionalmin 0mix_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>".
track_idstringoptionalmax length 64

Responses

StatusMeaningBodyHeaders
200OKEngineMixApplyResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: mix_revision_conflict, unsupported_mix_field. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/engine/mix:apply" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"changes": []}'

GET /api/v1/projects/{project_id}/engine/mix:wait

Wait for the live mix to change

OperationwaitEngineMix
Scopedaw:read
Project roleviewer
Rate classwait (own long-poll buckets, 2 in flight per user, 32 per server)
BehaviourETag / If-None-Match
MCP equivalentget_pro_state (mix)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane scoping the live session.
if_none_matchqueryintegeroptionalmin 0The mixRevision you hold (or send If-None-Match: "mix-<n>").
wait_msqueryintegeroptionaldefault 10000; min 0; max 10000How long to wait for a change.

Responses

StatusMeaningBodyHeaders
200OKEngineMix
304Unchanged for wait_ms (no body).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409engine_update_required, or engine_unavailable / target_not_loaded.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: engine_update_required. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/engine/mix:wait" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/projects/{project_id}/engine/state

Get live engine state

OperationgetEngineState
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalentget_pro_state

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane scoping the live session.

Responses

StatusMeaningBodyHeaders
200OKEngineState
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409engine_unavailable / target_not_loaded: the live session is not reachable.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/engine/state" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/projects/{project_id}/engine/tracks

List live engine tracks

OperationlistEngineTracks
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalentexecute_pro_action (list_tracks)

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).

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional take/clip/lane scoping the live session.

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409engine_unavailable / target_not_loaded: the live session is not reachable.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
projectIdstringoptional
tracksany[]optional

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/engine/tracks" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

EngineMix schema

FieldTypeRequiredConstraintsDescription
busesobject[]optionalPer bus: bus_id, label, gain, pan (setBusPan), muted, soloed, and (engines with stereo tools) stereo_separation, polarity_inverted, swap_lr.
featuresobjectoptionalEngine 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.
masterGainnumber | nulloptional
masterPannumberoptionalmin -1; max 1Master output pan (0 = center; setMasterPan). Live session state, re-centered on reload.
mixRevisioninteger | nulloptionalMozart'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.
tracksobject[]optionalPer 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.

EngineMixApplyResult schema

FieldTypeRequiredConstraintsDescription
mixRevisionintegeroptional
patternRuntimeMutedobjectoptionalPresent when the batch muted/soloed a pattern timeline lane.
patternRuntimeMuted.appliedbooleanoptionalThe engine took the filter.
patternRuntimeMuted.laneIdsstring[]optional
patternRuntimeMuted.placementIdsstring[]optionalPlacements whose mute/solo rows were written.
patternRuntimeMuted.sameRevisionbooleanoptionaltrue: 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).
responseobjectoptional
response.appliedintegeroptional
response.mix_revisionintegeroptional
response.pattern_runtime_muted_appliedbooleanoptionalPresent (true) when the batch also installed the pattern placement filter of the pattern lanes it muted/soloed.
response.previous_mix_revisionintegeroptional
response.resultsobject[]optional
response.undo_changesobject[]optional
response.undo_changes[].bus_idstringoptionalmax length 64target=bus: the bus. target=lane: route the lane to this bus ('master').
response.undo_changes[].bus_pannumberoptionalmin -1; max 1target=bus only: alias of pan.
response.undo_changes[].gainnumberoptionalmin 0; max 4
response.undo_changes[].lane_idstringoptionalmax length 64Lane id from listLanes / getEngineMix db_track_id ('backing' = the beat).
response.undo_changes[].master_pannumberoptionalmin -1; max 1target=master only: alias of pan.
response.undo_changes[].mutedbooleanoptional
response.undo_changes[].pannumberoptionalmin -1; max 1Lane 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[].persistbooleanoptionaldefault trueLane pan / master gain: false = live only (while sweeping).
response.undo_changes[].soloedbooleanoptional
response.undo_changes[].targetstringrequiredone of lane, master, bus
response.undo_changes[].track_idintegeroptionalmin 0Engine track id (alternative to lane_id).

EngineState schema

Each read is the engine's JSON; a read that failed is {unavailable: <reason>}.

FieldTypeRequiredConstraintsDescription
busesobjectoptional
capabilityCountintegeroptional
capabilityFamiliesstring[]optional
clipsobjectoptional
historyobjectoptional
mixobject (EngineMix)optional
mix.busesobject[]optionalPer bus: bus_id, label, gain, pan (setBusPan), muted, soloed, and (engines with stereo tools) stereo_separation, polarity_inverted, swap_lr.
mix.featuresobjectoptionalEngine 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.masterGainnumber | nulloptional
mix.masterPannumberoptionalmin -1; max 1Master output pan (0 = center; setMasterPan). Live session state, re-centered on reload.
mix.mixRevisioninteger | nulloptionalMozart'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.tracksobject[]optionalPer 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.
patternPlacementsobjectoptional
patternsobjectoptional
projectIdstringrequired
sessionobjectoptional
tracksobjectoptional
transportobjectoptional

Uses EngineMix.

History

The live engine's native undo/redo history.

GET /api/v1/projects/{project_id}/history

Get the engine history

OperationgetEngineHistory
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalentexecute_pro_action (get_history, get_history_status)

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional live-session scope.

Responses

StatusMeaningBodyHeaders
200OKEngineHistory
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409engine_unavailable / target_not_loaded: the live session is not reachable.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/history" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/history:redo

Redo (engine history)

OperationredoEngineHistory
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (history_redo)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional live-session scope.
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/history:redo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

POST /api/v1/projects/{project_id}/history:undo

Undo (engine history)

OperationundoEngineHistory
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (history_undo)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional live-session scope.
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/history:undo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

EngineHistory schema

FieldTypeRequiredConstraintsDescription
entriesarray | object | nulloptionalThe engine's history list.
projectIdstringrequired
statusobjectoptionalcanUndo / 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

OperationlistInstrumentCatalog
Scopedaw:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated

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

ParameterInTypeRequiredConstraintsDescription
qquerystringoptionalmax length 64Substring of the id or name.
project_idquerystringoptionalmax length 64Check host availability on this project's engine (editor role).
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (CatalogInstrument)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses CatalogInstrument, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/instruments/catalog" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/instrument-lanes

Create an instrument lane

OperationcreateInstrumentLane
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentexecute_pro_action (add_instrument_track)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
articulationstringoptionalone of sustained, short
instrument_idstringrequiredmin length 1; max length 64A creatable id from GET /instruments/catalog.
namestringoptionalmax length 80
presetstringoptionalmax length 200
rolestringoptionalone of bass_guitar, rhythm_guitar_sustained, rhythm_guitar_short, lead_guitar, organ, piano, keys, pad, strings, synth_lead, synth_bass, 808
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
201OKInstrumentLaneResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/instrument-lanes" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"instrument_id": "<instrument_id>"}'

PUT /api/v1/projects/{project_id}/lanes/{lane_id}/instrument

Replace an instrument lane's instrument

OperationreplaceLaneInstrument
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIf-Match
MCP equivalentexecute_pro_action (replace_lane_instrument)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
instrument_idstringrequiredmin length 1; max length 64A creatable id from GET /instruments/catalog.
presetstringoptionalmax length 200
restore_stateobjectoptional
restore_state.signaturestringrequiredmax length 128undoState.signature.
restore_state.state_base64stringrequiredmin length 1undoState.state_base64 of an earlier replacement.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKLaneInstrumentReplaceResultETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/instrument" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Content-Type: application/json" \
  -d '{"instrument_id": "<instrument_id>"}'

CatalogInstrument schema

FieldTypeRequiredConstraintsDescription
availabilityobjectrequired
availability.checkedbooleanrequired
availability.installedboolean | nullrequired
categorystring | nulloptional
creatablebooleanrequiredcreateInstrumentLane accepts it.
formatstringoptional
freebooleanoptionalFree to use. Enterprise organization members only see and create free instruments.
idstringrequiredCatalog id (the engine generator type id). Opaque.
namestringrequired
patchCatalogstring | nulloptionalCaptured patch catalog (patches by name).
segmentstring | nulloptionalEngine load route segment.

InstrumentLaneResult schema

JSON any.

Uses EngineActionResult, CatalogInstrument.

LaneInstrumentReplaceResult schema

FieldTypeRequiredConstraintsDescription
instanceIdstring | nulloptional
instrumentobject (CatalogInstrument)required
instrument.availabilityobjectrequired
instrument.availability.checkedbooleanrequired
instrument.availability.installedboolean | nullrequired
instrument.categorystring | nulloptional
instrument.creatablebooleanrequiredcreateInstrumentLane accepts it.
instrument.formatstringoptional
instrument.freebooleanoptionalFree to use. Enterprise organization members only see and create free instruments.
instrument.idstringrequiredCatalog id (the engine generator type id). Opaque.
instrument.namestringrequired
instrument.patchCatalogstring | nulloptionalCaptured patch catalog (patches by name).
instrument.segmentstring | nulloptionalEngine load route segment.
laneIdstringrequired
okbooleanrequired
pluginIndexintegerrequiredThe new instrument's listLanePlugins slot index (0: an instrument lane's generator always sits first).
presetAppliedstring | nulloptional
previousInstrumentobject (CatalogInstrument) | nullrequiredThe instrument the lane played before (null: it had none saved).
previousPresetstring | nulloptional
replacedbooleanrequiredfalse when the lane already played this instrument and nothing (preset / restore_state) was asked: no write.
stateRestoredbooleanoptional
timelineRevisionstring | nullrequired
undoobject | nullrequiredSend 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.
warningsstring[]optional

Uses CatalogInstrument.

Markers

Playlist time markers and loop markers (ticks @ 96 PPQ), one revisioned list per project.

GET /api/v1/projects/{project_id}/markers

List the project's markers

OperationgetMarkers
Scopedaw:read
Project roleviewer
Rate classinteractive
BehaviourETag / If-None-Match

Time and loop markers sorted by tick (96 PPQ). ETag = revision; If-None-Match answers 304.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
If-None-MatchheaderstringoptionalETag from a previous read; 304 when unchanged.

Responses

StatusMeaningBodyHeaders
200OKProjectMarkersETag
304Not modified (If-None-Match matched).
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

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

OperationsetMarkers
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_revisionintegeroptionalmin 0
markersobject[]requiredmax items 512
markers[].colorstringoptional#rrggbb
markers[].end_tickintegeroptionalmin 1Loop markers only; must be after tick.
markers[].idstringoptionalmax length 64Optional on write; generated when absent.
markers[].kindstringoptionalone of marker, loop
markers[].namestringoptionalmax length 64
markers[].tickintegerrequiredmin 0

Responses

StatusMeaningBodyHeaders
200OKProjectMarkersETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: markers_revision_conflict. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X PUT "https://freestyle.audio/api/v1/projects/{project_id}/markers" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"markers": []}'

ProjectMarkers schema

FieldTypeRequiredConstraintsDescription
markersobject[]requiredmax items 512
markers[].colorstringoptional#rrggbb
markers[].end_tickintegeroptionalmin 1Loop markers only; must be after tick.
markers[].idstringoptionalmax length 64Optional on write; generated when absent.
markers[].kindstringoptionalone of marker, loop
markers[].namestringoptionalmax length 64
markers[].tickintegerrequiredmin 0
projectIdstringrequired
revisionintegerrequiredmin 00 = never edited.
undoobjectoptionalWrites: PUT these markers at If-Match = expected_revision to undo.
undo.expected_revisionintegeroptional
undo.markersobject[]optional
undo.markers[].colorstringoptional#rrggbb
undo.markers[].end_tickintegeroptionalmin 1Loop markers only; must be after tick.
undo.markers[].idstringoptionalmax length 64Optional on write; generated when absent.
undo.markers[].kindstringoptionalone of marker, loop
undo.markers[].namestringoptionalmax length 64
undo.markers[].tickintegerrequiredmin 0

Native EQ

Typed band reads and writes of a lane's EQ (the lane EQ stage and native EQ plug-ins on its chain) and a pattern placement's EQ.

GET /api/v1/projects/{project_id}/lanes/{lane_id}/eq

Read a lane's EQ bands

OperationgetLaneEq
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalentexecute_pro_action (get_lane_eq)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKLaneEq
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/eq" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/lanes/{lane_id}/eq/bands/{band}

Set one EQ band on a lane

OperationsetLaneEqBand
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_track_eq_band | set_lane_plugin_eq_band)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
bandpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
enabledbooleanrequired
expected_plugin_instance_idstringoptionalmax length 128
expected_plugin_typestringoptionalmax length 64
frequency_hznumberrequiredmin 20.0; max 20000.0
gain_dbnumberrequiredmin -18.0; max 18.0
persistbooleanoptionaldefault truefalse = engine only (a drag tick); send the final value with true.
plugin_indexintegeroptionalmin 0; max 64A native EQ slot from listLanePlugins / getLaneEq inserts.
qnumberrequiredmin 0.1; max 18.0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
typestringoptionaldefault "bell";
16 allowed values
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

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: invalid_argument, plugin_instance_mismatch. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/eq/bands/{band}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"enabled": false, "frequency_hz": 20.0, "gain_db": -18.0, "q": 0.1}'

GET /api/v1/projects/{project_id}/pattern-placements/{placement_id}/eq

Read a pattern placement's EQ bands

OperationgetPatternPlacementEq
Scopedaw:read
Project roleviewer
Rate classinteractive
MCP equivalentexecute_pro_action (get_pattern_eq)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
placement_idpathstringrequiredmax length 128
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKPatternPlacementEq
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/pattern-placements/{placement_id}/eq" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/pattern-placements/{placement_id}/eq/bands/{band}

Set one EQ band on a pattern placement

OperationsetPatternPlacementEqBand
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (set_pattern_eq_band)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
placement_idpathstringrequiredmax length 128
bandpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
enabledbooleanrequired
frequency_hznumberrequiredmin 20.0; max 20000.0
gain_dbnumberrequiredmin -18.0; max 18.0
persistbooleanoptionaldefault truefalse = engine only (a drag tick); send the final value with true.
qnumberrequiredmin 0.1; max 18.0
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
typestringoptionaldefault "bell";
16 allowed values
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

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/pattern-placements/{placement_id}/eq/bands/{band}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"enabled": false, "frequency_hz": 20.0, "gain_db": -18.0, "q": 0.1}'

LaneEq schema

FieldTypeRequiredConstraintsDescription
eqobject (NativeEq)required
eq.bandsobject (NativeEqBand)[]requiredmax items 8
eq.enabledbooleanrequiredAny band enabled.
insertsobject (NativeEqInstance)[]requiredNative EQ plug-ins (native-eq) on the lane's chain, e.g. the default EQ.
laneIdstringrequired
livebooleanrequiredRead from the live engine (false = saved state).
projectIdstringrequired
racksobject (NativeEqInstance)[]requiredThe EQ stage of native Effects racks (native-effects) on the chain.
typesstring[]optional

Uses NativeEq, NativeEqInstance.

NativeEqInstance schema

FieldTypeRequiredConstraintsDescription
eqobject (NativeEq)required
eq.bandsobject (NativeEqBand)[]requiredmax items 8
eq.enabledbooleanrequiredAny band enabled.
instanceIdstringrequired
pluginIndexinteger | nulloptionalLive slot index (null when not live).
typeIdstring | nulloptional

Uses NativeEq.

PatternPlacementEq schema

FieldTypeRequiredConstraintsDescription
eqobject (NativeEq)required
eq.bandsobject (NativeEqBand)[]requiredmax items 8
eq.enabledbooleanrequiredAny band enabled.
livebooleanrequired
placementIdstringrequired
projectIdstringrequired
typesstring[]optional

Uses NativeEq.

Plug-in catalog

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

OperationlistPluginCatalog
Scopedaw:read
Project rolenot pre-checked
Rate classinteractive
Behaviourpaginated

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

ParameterInTypeRequiredConstraintsDescription
kindquerystringoptionalone of effect, instrument
formatquerystringoptionalone of vst3, native
qquerystringoptionalmax length 64Substring of the id, name or category.
project_idquerystringoptionalmax length 64Check host availability on this project's engine (editor role).
include_presetsquerybooleanoptionaldefault false
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
dataobject (CatalogPlugin)[]required
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired

Uses CatalogPlugin, Pagination.

Error codes specific to this operation: editor_not_available. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/plugins/catalog" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

GET /api/v1/plugins/catalog/{plugin_id}

Get one catalog plug-in

OperationgetCatalogPlugin
Scopedaw:read
Project rolenot pre-checked
Rate classinteractive

One catalog entry by id, with its named presets when it has a preset catalog.

Parameters

ParameterInTypeRequiredConstraintsDescription
plugin_idpathstringrequiredmax length 128

Responses

StatusMeaningBodyHeaders
200OKCatalogPlugin
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/plugins/catalog/{plugin_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/buses/{bus_id}/plugins

Add a catalog plug-in to a bus (master included)

OperationaddBusPlugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (load_bus_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bypassedbooleanoptionalCreate it bypassed.
instance_idstringoptionalmax length 64; pattern ^[A-Za-z0-9_-]{8,64}$Re-use this instance id (undo of a delete). Minted when omitted.
plugin_idstringrequiredmin length 1; max length 64A catalog id from GET /plugins/catalog. Host file paths are refused.
positionintegeroptionalmin 0; max 640-based slot to insert at; omitted or past the end = append.
statestringoptionalmax length 4194304Opaque saved state (base64) from a bus delete's removed.restore.state; accepted only with its state_signature.
state_signaturestringoptionalmax length 128removed.restore.stateSignature from that delete.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
201OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
413payload_too_large: state is larger than 4 MiB.
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

201 body:

JSON any.

Uses EngineActionResult, CatalogPlugin.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"plugin_id": "<plugin_id>"}'

GET /api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/parameters

Discover a bus plug-in's parameters

OperationlistBusPluginParameters
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourpaginated
MCP equivalentexecute_pro_action (get_bus_plugin_live_state)

The bus counterpart of listLanePluginParameters (normalized 0..1 values, the unit setBusPluginParameter takes). Paginated; the slot summary is in plugin.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
bus_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
busIdstringoptional
dataobject (PluginParameter)[]required
eqobject (NativeEq)optional
eq.bandsobject (NativeEqBand)[]requiredmax items 8
eq.enabledbooleanrequiredAny band enabled.
laneIdstringoptional
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired
pluginobjectoptional
plugin.currentProgramobject | nulloptional
plugin.formatstring | nulloptional
plugin.indexintegeroptional
plugin.instanceIdstring | nulloptional
plugin.namestringoptional
plugin.parameterCountinteger | nulloptional
plugin.programCountinteger | nulloptional
plugin.stateHashstring | nulloptional
plugin.typeIdstring | nulloptional
projectIdstringoptional

Uses PluginParameter, NativeEq, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/buses/{bus_id}/plugins/{plugin_index}/parameters" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/lanes/{lane_id}/plugins

Add a catalog plug-in to a lane

OperationaddLanePlugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (add_lane_plugin | restore_lane_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bypassedbooleanoptionalCreate it bypassed.
instance_idstringoptionalmax 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.
parametersobjectoptionalHosted plug-ins: host parameter values (index -> normalized 0..1) to re-apply after the state, from a delete's removed.restore.parameters.
plugin_idstringrequiredmin length 1; max length 64A catalog id from GET /plugins/catalog. Host file paths are refused.
plugin_indexintegeroptionalmin 0; max 64Alias of position.
positionintegeroptionalmin 0; max 640-based slot to insert at (alias plugin_index); the plug-ins from that slot on move down one. Omitted or past the end = append.
presetstringoptionalmax length 200Initial named preset.
statestringoptionalmax length 4194304Opaque 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_signaturestringoptionalmax length 128removed.restore.stateSignature from the delete that returned this state.
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
201OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
413payload_too_large: state is larger than 4 MiB.
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

201 body:

JSON any.

Uses EngineActionResult, CatalogPlugin.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"plugin_id": "<plugin_id>"}'

DELETE /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/instances/{instance_id}

Remove a plug-in instance from a lane (live and saved chain)

OperationdeleteLanePluginInstance
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key destructive (the DELETE is the confirmation)
MCP equivalentexecute_pro_action (delete_lane_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
instance_idpathstringrequiredmax length 128
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Responses

StatusMeaningBodyHeaders
200OKLanePluginInstanceDeleteResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: plugin_instance_not_found. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/instances/{instance_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

DELETE /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}

Remove a plug-in from a lane

OperationdeleteLanePlugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key destructive (the DELETE is the confirmation)
MCP equivalentexecute_pro_action (delete_lane_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
expected_plugin_typequerystringoptionalmax length 64Catalog id the slot must hold.
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Responses

StatusMeaningBodyHeaders
200OKLanePluginDeleteResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: precondition_failed. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X DELETE "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)"

GET /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/parameters

Discover a lane plug-in's parameters

OperationlistLanePluginParameters
Scopedaw:read
Project roleviewer
Rate classinteractive
Behaviourpaginated
MCP equivalentget_plugin_state

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
track_idquerystringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).
include_state_hashquerybooleanoptionaldefault falseAlso hash the plug-in's state (plugin.stateHash); slower on large plug-ins.
limitqueryintegeroptionaldefault 50; min 1; max 200
cursorquerystringoptionalmax length 512nextCursor from the previous page (same filters).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

FieldTypeRequiredConstraintsDescription
busIdstringoptional
dataobject (PluginParameter)[]required
eqobject (NativeEq)optional
eq.bandsobject (NativeEqBand)[]requiredmax items 8
eq.enabledbooleanrequiredAny band enabled.
laneIdstringoptional
paginationobject (Pagination)required
pagination.hasMorebooleanrequired
pagination.limitintegerrequired
pagination.nextCursorstring | nullrequired
pluginobjectoptional
plugin.currentProgramobject | nulloptional
plugin.formatstring | nulloptional
plugin.indexintegeroptional
plugin.instanceIdstring | nulloptional
plugin.namestringoptional
plugin.parameterCountinteger | nulloptional
plugin.programCountinteger | nulloptional
plugin.stateHashstring | nulloptional
plugin.typeIdstring | nulloptional
projectIdstringoptional

Uses PluginParameter, NativeEq, Pagination.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}/parameters" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}:move

Reorder a lane plug-in

OperationmoveLanePlugin
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (move_lane_plugin)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
lane_idpathstringrequiredmax length 128
plugin_indexpathintegerrequiredmin 0; max 64
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
expected_plugin_instance_idstringoptionalmax length 128Instance id the slot must hold (412 otherwise).
expected_plugin_typestringoptionalmax length 64Catalog id the slot must hold (412 otherwise).
to_indexintegerrequiredmin 0; max 64
track_idstringoptionalmax length 64Optional take/clip/lane that scopes the live engine session (defaults to the project's first take).

Responses

StatusMeaningBodyHeaders
200OKsee below
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

200 body:

JSON any.

Uses EngineActionResult.

Error codes specific to this operation: precondition_failed. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/lanes/{lane_id}/plugins/{plugin_index}:move" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"to_index": 0}'

CatalogPlugin schema

FieldTypeRequiredConstraintsDescription
availabilityobjectrequired
availability.checkedbooleanrequired
availability.installedboolean | nullrequired
categorystring | nulloptional
formatstringrequiredone of vst3, native
freebooleanoptionalFree to use (native effects and free plug-ins). Enterprise organization members only see and add free plug-ins.
hasEditorbooleanrequiredWhether the plug-in has an editor window (openPluginEditor / getPluginEditorFrame). false for native effects: those answer 409 editor_not_available; use their parameters.
idstringrequiredCatalog id (the engine type id). Opaque.
kindstringrequiredone of effect, instrument
namestringrequired
parameterCountinteger | nulloptional
presetCatalogstring | nulloptionallist_effect_presets kind
presetsobject[]optional
requiresProbooleanoptional

LanePluginDeleteResult schema

JSON any.

Uses EngineActionResult, PluginRestoreState.

LanePluginInstanceDeleteResult schema

JSON any.

Uses EngineActionResult, PluginRestoreState.

NativeEq schema

FieldTypeRequiredConstraintsDescription
bandsobject (NativeEqBand)[]requiredmax items 8
enabledbooleanrequiredAny band enabled.

Uses NativeEqBand.

NativeEqBand schema

FieldTypeRequiredConstraintsDescription
bandintegerrequiredmin 0; max 7
enabledbooleanrequired
frequency_hznumberrequiredmin 20.0; max 20000.0
gain_dbnumberrequiredmin -18.0; max 18.0
qnumberrequiredmin 0.1; max 18.0
typestringrequired
16 allowed values
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
type_indexintegerrequiredmin 0; max 15The engine's shape index (type position in the enum).

PluginParameter schema

FieldTypeRequiredConstraintsDescription
automatablebooleanoptional
defaultnumber | nulloptional
displaystring | nulloptional
idstringrequiredHost-stable parameter id (index:N when the host has none).
indexintegerrequired
metabooleanoptional
namestringrequired
physicalDefaultnumber | nulloptional
physicalValuenumber | nulloptionalNative slots: current value in `unit`.
rangeobjectrequired
range.maxnumberoptional
range.minnumberoptional
range.normalizedbooleanoptional
range.rawDefaultnumber | nulloptional
range.rawMaxnumber | nulloptional
range.rawMinnumber | nulloptional
stepnumber | nulloptionalNative slots: physical step.
stepsinteger | nulloptional
unitstring | nulloptional
valuenumber | nullrequired
writeFormsstring[]requiredBody fields setLanePluginParameter accepts for this parameter.

PluginRestoreState schema

FieldTypeRequiredConstraintsDescription
addLanePluginobjectoptionalReady-to-send addLanePlugin body that undoes the delete.
addLanePlugin.bypassedbooleanoptional
addLanePlugin.instance_idstringoptional
addLanePlugin.parametersobjectoptional
addLanePlugin.plugin_idstringoptional
addLanePlugin.positionintegeroptional
addLanePlugin.statestringoptional
addLanePlugin.state_signaturestringoptional
bypassedbooleanrequired
instanceIdstringrequiredThe deleted instance id (send it back as instance_id to keep automation / history references resolving).
namestring | nulloptional
nativebooleanoptional
parametersobjectoptionalHosted 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.
positioninteger | nulloptionalmin 00-based chain slot it held.
presetstring | nulloptional
statestring | nulloptionalmax length 4194304Opaque saved state, base64 (null when the plug-in had none, or it exceeds 4 MiB: see stateOmitted).
stateEncodingstring | nulloptionalone of base64, None
stateFormatstring | nulloptionalone of plugin_chunk, native_json, None
stateOmittedstringoptionalone of too_large
stateSignaturestringoptionalmax length 128Our signature over typeId + state: send it back as addLanePlugin state_signature with this exact state.
stateSourcestring | nulloptionalone of live, saved, Nonelive = read from the running plug-in just before the delete; saved = the saved chain row.
typeIdstring | nulloptional

Recording

Start, finalize and inspect a live recording take on the engine.

GET /api/v1/projects/{project_id}/recording

Get recording status

OperationgetRecordingStatus
Scopedaw:read
Project roleviewer
Rate classinteractive

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional live-session scope.

Responses

StatusMeaningBodyHeaders
200OKRecordingStatus
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409engine_unavailable / target_not_loaded: the live session is not reachable.
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/recording" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/recording:finalize

Stop and finalize the take

OperationfinalizeRecording
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key confirm=true required
MCP equivalentexecute_pro_action (finalize_recording, confirmed_destructive=true)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional live-session scope.
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
confirmquerybooleanoptionaldefault falseMust be true (here or in the JSON body) after the user agreed; otherwise 400 confirmation_required.

Request body application/json

FieldTypeRequiredConstraintsDescription
confirmbooleanoptional
take_idstringoptionalmin 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_forstringoptionaldefault "saved"; one of saved, placedplaced: answer once the clip is on its lane (saved=false, state='saving'); saved: answer once the take is stored.
wait_msintegeroptionalmin 0; max 10000How long to wait (default 8000).

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

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.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/recording:finalize" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"confirm": true}'

POST /api/v1/projects/{project_id}/recording:start

Start recording

OperationstartRecording
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentexecute_pro_action (start_recording)

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
scope_track_idquerystringoptionalmax length 64Optional live-session scope.
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
bpmnumberoptionalmin 20; max 400With count_in_beats: the count-in tempo.
count_in_beatsintegeroptionaldefault 0; min 0; max 8Metronome count-in beats before the take.
lane_idstringoptionalmax length 64
seek_secondsnumberoptionalmin 0With count_in_beats: park the stopped transport here first.
start_transportbooleanoptionaldefault falseWith count_in_beats: roll the transport on the boundary.

Responses

StatusMeaningBodyHeaders
200OKEngineActionResult
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: engine_update_required, recording_in_progress. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/recording:start" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

RecordingStatus schema

FieldTypeRequiredConstraintsDescription
armedbooleanoptionalArmed and counting in (recording starts at the boundary).
countInBeatsRemaininginteger | nulloptional
isPlayingboolean | nulloptional
positionSecondsnumber | nulloptional
projectIdstringrequired
recordingbooleanrequiredThe engine is recording a take now.
recordingInProgressbooleanoptionalRecording or armed for a take.
recordingStartPositionSecondsnumber | nulloptional
recordingStartSampleinteger | nulloptional
transportobjectoptionalThe engine clock this status was read from.

Stems

Stem splitter: separate a clip or the backing into stem lanes on the GPU, poll the job, and undo exactly what it created.

POST /api/v1/projects/{project_id}/clips/{clip_id}/stems

Split a clip into stems

OperationsplitClipStems
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key
MCP equivalentextract_stems

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
clip_idpathstringrequiredmax length 128
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.

Request body application/json

FieldTypeRequiredConstraintsDescription
modestringrequiredone of vocals, four_stems, instruments, drums
replacebooleanoptionaldefault true

Responses

StatusMeaningBodyHeaders
200Cached backing split the project still has in full (deduplicated=true): the earlier job, nothing created.StemJob
201Cached backing split: the stem lanes were created at once (status done).StemJob
202OKStemJob
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: project_track_limit, stem_extraction_disabled. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/clips/{clip_id}/stems" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"mode": "vocals"}'

GET /api/v1/projects/{project_id}/stems/jobs/{job_id}

Get a stem split job

OperationgetStemJob
Scopedaw:read
Project roleeditor
Rate classinteractive
MCP equivalentget_stem_status

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.

Parameters

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
job_idpathstringrequiredpattern ^[a-f0-9]{32}$

Responses

StatusMeaningBodyHeaders
200OKStemJob
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: stem_job_not_found. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X GET "https://freestyle.audio/api/v1/projects/{project_id}/stems/jobs/{job_id}" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN"

POST /api/v1/projects/{project_id}/stems/jobs/{job_id}:undo

Undo a stem split

OperationundoStemJob
Scopedaw:write
Project roleeditor
Rate classinteractive
BehaviourIdempotency-Key If-Match
MCP equivalentundo_stems

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

ParameterInTypeRequiredConstraintsDescription
project_idpathstringrequiredmax length 128
job_idpathstringrequiredpattern ^[a-f0-9]{32}$
Idempotency-Keyheaderstringoptionalmin length 8; max length 128Makes a retry safe: the stored response is replayed for 24 h.
If-MatchheaderstringoptionalETag from a previous read; 412 if the resource changed since.

Request body application/json

JSON object with any fields.

Responses

StatusMeaningBodyHeaders
200OKStemJobUndoETag
400Invalid request (code invalid_argument, invalid_op, invalid_json, ...).Error
401Missing, invalid or expired bearer token.Error
403insufficient_scope, editor_required, owner_required or pro_mode_required.Error
404Unknown or invisible resource (ids are not probeable).Error
409State conflict (id_exists, target_not_loaded, lane_has_no_live_chain, idempotency_in_progress).Error
412If-Match / expected revision no longer current.Error
422Idempotency-Key reused with a different body.Error
428expected_revision_required (send If-Match), or username_required.Error
429Rate budget exhausted; see Retry-After.Error
502The live engine refused or failed (stage engine / engine_dispatch).Error
503rate_limit_unavailable, auth_unavailable, revision_unavailable, overloaded.Error

Error codes specific to this operation: nothing_to_undo, stem_job_running. Every operation can also answer the common codes.

Minimal request (required fields only):

curl -X POST "https://freestyle.audio/api/v1/projects/{project_id}/stems/jobs/{job_id}:undo" \
  -H "Authorization: Bearer $FREESTYLE_TOKEN" \
  -H 'If-Match: "<etag>"' \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'

StemJob schema

FieldTypeRequiredConstraintsDescription
cachedbooleanoptionalsplitClipStems only: the backing was split before, so the lanes were created at once (no GPU job).
deduplicatedbooleanoptionalsplitClipStems 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.
elapsedSecintegeroptionalmin 0
errorstringoptional
etaSecintegeroptionalmin 0
expectedStemsstring[]optional
jobIdstringrequiredpattern ^[a-f0-9]{32}$
lanesobject (StemLane)[]optionaldone / undone: every lane the job created, in stem order.
modestring | nulloptionalone of vocals, four_stems, instruments, drums, drums_full, NoneThe mode that ran: drums on a full mix runs as drums_full (Demucs, then DrumSep on its drum stem).
projectIdstringrequired
reloadobjectoptionaldone: a headless live session plays the new lanes after this reload (an open Studio loads them by itself).
reload.hintstringoptional
reload.methodstringrequiredone of POST
reload.pathstringrequired
replacebooleanoptional
requestedModestringoptionalone of vocals, four_stems, instruments, drumssplitClipStems only: the mode you asked for.
retryAfterSecintegeroptionalmin 1
sourceClipIdstringoptionalThe split clip, or 'backing'.
sourceMutedobjectoptional
sourceMuted.backingbooleanrequired
sourceMuted.clipIdsstring[]required
startedAtstring | nulloptionalformat date-time
statusstringrequiredone of processing, failed, done, undoneprocessing: on the GPU (poll); failed: nothing was created; done: the stem lanes exist; undone: undoStemJob removed them.
statusUrlstringoptionalgetStemJob for this job (also the Location header of splitClipStems).
undoobjectoptionaldone: the ONE call that removes exactly what this job created (undoStemJob).
undo.hintstringoptional
undo.methodstringrequiredone of POST
undo.pathstringrequired

Uses StemLane.

StemJobUndo schema

FieldTypeRequiredConstraintsDescription
alreadyUndonebooleanoptionalNothing was left to remove (a replay or a second undo).
backingUnmutedbooleanoptional
engine_reload_requiredbooleanoptional
jobIdstringrequired
liveEngineobjectoptional
liveEngine.appliedbooleanrequired
liveEngine.reasonstringoptional
liveEngine.unloadedLaneIdsstring[]optional
liveEngine.unmutedClipIdsstring[]optional
projectIdstringrequired
removedClipIdsstring[]required
removedLaneIdsstring[]required
timelineRevisionstring | nulloptional
undonebooleanrequired
unmutedSourceClipIdsstring[]optional

StemLane schema

FieldTypeRequiredConstraintsDescription
clipIdsstring[]requiredEvery clip the job put on this lane (one per source clip window; loop repeats included).
deletedbooleanrequiredtrue once undone (or deleted).
laneIdstringrequired
mutedbooleanrequired
namestring | nulloptional
stemstringrequired
13 allowed values
instrumental vocals drums bass other guitar piano kick snare toms hh ride crash

Shared schemas

EngineActionResult schema

Result of one live-engine action (Pro catalog): the engine response plus a one-line summary; projectChanged/changeId when open Studios were told.

FieldTypeRequiredConstraintsDescription
actionstringoptionalThe Pro catalog action that ran.
familystringoptionalCatalog family (mixer, timeline, patterns, ...).
mixRevisionintegeroptionalMix writes: the mix revision after the write (also the ETag "mix-<n>").
mutatedbooleanoptionalWhether the action changed project / engine state.
projectUrlstringoptional
resolvedArgsobjectoptionalThe arguments as the catalog validated and resolved them (ids, defaults).
responseobjectoptionalThe 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).
riskstringoptionalCatalog risk class (read, reversible, destructive).
summarystringoptional
toolstringoptionalThe MCP tool it ran through (execute_pro_action).

Error schema

FieldTypeRequiredConstraintsDescription
errorobjectrequired
error.codestringrequiredStable machine-readable reason.
error.detailsobjectoptional
error.engineStatusintegeroptionalMozart's HTTP status when known.
error.messagestringrequiredHuman sentence; do not parse.
error.requestIdstringoptional
error.stagestringrequiredone of auth, validation, precondition, rate_limit, engine_dispatch, engine, internal

Pagination schema

FieldTypeRequiredConstraintsDescription
hasMorebooleanrequired
limitintegerrequired
nextCursorstring | nullrequired

Freestyle developer documentation. Base URL https://freestyle.audio. Generated from the server's own registry and configuration.