Skip to main content
POST
duck music

Authorizations

Authorization
string
header
required

An API key (es_live_…) from Settings, under API keys, or an OAuth access token.

Headers

Idempotency-Key
string

Retry a paid dispatch safely: the same key returns the job already dispatched instead of charging again.

x-workspace-id
string

The workspace this one call acts in, when it is not the default: for a key or a connected agent, one of the workspaces the user allowed it.

Body

application/json
timeline_id
string
required

The timeline id.

clip_ids
string[]

The music clips to duck. Absent: every music clip on the timeline that plays sound.

depth
enum<string>

How far the music drops: soft to half its level, medium to a quarter (default; soft with ref), deep to a tenth.

Available options:
soft,
medium,
deep
ref
string

A library audio item, or a search_stock id, to lay under the whole cut as its music, on a lane of its own, before ducking.

end_at
number

With ref: the second in the file that lands on the cut's last frame, such as a final hit; default the file's end.

Required range: x >= 0
level
enum<string>

bed sets each music clip's volume from measured loudness before ducking; keep leaves it. Default bed with ref, keep without.

Available options:
bed,
keep
if_revision

The revision get_timeline returned. A stale one fails with revision_conflict instead of applying; so does no revision once a user edited the timeline in the app since this connection last read it.

context
string

Optional: one sentence shown to the user beside this action.

Maximum string length: 600

Response

Done, or a job started for work that runs longer (follow it with get_jobs).

ok
any
required
data
object
required
meta
object
required
media
object[]