Background Audio
Mint a presigned upload URL
Step 1 of the two-step upload: returns a 15-minute presigned PUT URL plus the id of a new upload. Then PUT the WAV bytes directly to upload_url with Content-Type: audio/wav, then call POST /agent/background-audio/{id}/finalize.
POST
Mint a presigned upload URL
Documentation Index
Fetch the complete documentation index at: https://docs.vocobase.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.
Body
application/json
Stable identifier; unique across all assets.
Pattern:
^[a-z0-9][a-z0-9_-]{1,63}$Display name for the asset.
Required string length:
1 - 80Must be audio/wav — only WAV is accepted in v1.
Available options:
audio/wav Size in bytes. Max 5 MB.
Required range:
1 <= x <= 5242880Previous
Finalize an uploaded assetStep 3 of the upload: Vocobase validates the just-uploaded WAV file and either marks the asset `READY` (with detected `duration_secs`, `sample_rate`, `channels`) or `FAILED` with a human-readable error.
**Validation rules:**
- WAV (RIFF/WAVE) container, PCM or IEEE float.
- **Mono only** (channels === 1). Stereo is rejected with an explicit downmix hint.
- Size ≤ 5 MB. Duration ≤ 5 minutes.
Next
Mint a presigned upload URL