Prepare a WAV media asset

View as Markdown

Fetch and validate a WAV source asynchronously. Retry with the same Idempotency-Key and body to receive the same asset.

Authentication

AuthorizationBearer
Application auth. Send `Authorization: Bearer <app_uuid>:<api_key>` using any active key in the app's collection. See [Authentication](https://voice-platform.docs.buildwithfern.com/api/authentication) for details.

Headers

Idempotency-KeystringRequiredformat: "^[a-zA-Z0-9._-]+$"<=128 characters
Optional key for safely retrying mutating requests. See [Idempotency](https://voice-platform.docs.buildwithfern.com/idempotency) for details.

Request

This endpoint expects an object.
source_urlstringRequiredformat: "uri"
Public HTTP or HTTPS URL of the WAV file to prepare.
ttl_secondsintegerOptional1-604800
Optional asset lifetime in seconds. The service default applies when omitted.

Response

Asset accepted or replayed
asset_idstringformat: "^[0-9a-f]{32}$"
created_atdatetime
statusenum
duration_msintegerOptional
expires_atdatetimeOptional
failure_reasonstringOptional
formatobjectOptional
size_bytesintegerOptional

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
413
Content Too Large Error
500
Internal Server Error
503
Service Unavailable Error