---
title: "Prepare a shortened audio asset without generating a video"
method: POST
path: "/v2/audio-trims"
tags: ["Audio trims"]
---

# Prepare a shortened audio asset without generating a video

`POST /v2/audio-trims`

## Request

- Base URL: `https://api.sync.so`
- URL: `https://api.sync.so/v2/audio-trims`
- Auth: API key in header `x-api-key`

## Headers

- `Idempotency-Key` string, required

## Request body

- CreateAudioTrimDto
  - `assetId` string, uuid: Accessible saved audio asset. Supply assetId or sourceUrl.
  - `sourceUrl` string, uri: Authorized Sync-hosted audio source. Supply sourceUrl or assetId.
  - `projectId` string, uuid
  - `durationSeconds` number, required: Maximum duration of the audio prefix in seconds.

## Response `202`

- AudioTrimDto
  - `id` string, uuid, required
  - `status` 'queued' | 'processing' | 'completed' | 'failed', required
  - `assetId` string, uuid, nullable, required
  - `durationSeconds` number, nullable, required
  - `errorCode` string, nullable, required
  - `retryAfterMs` integer, required

## Changes

- **2026-10-29** `982b01c78920`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sync/apis/sync-api-v2/changes/v2/audio-trims/post.md)

---

[API](https://skmtc.dev/sync/apis/sync-api-v2.md) - [All operations](https://skmtc.dev/sync/apis/sync-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/sync/apis/sync-api-v2/revisions/26662c96c138?raw)
