How to get a URL for an audio file
Audio files commonly arrive from voice forms, podcast workflows, generated reports, and customer uploads. FilePost gives the file a stable public URL that can move through your product without custom storage code.
The upload endpoint works with MP3, WAV, M4A, OGG, FLAC, and other audio formats. Your application can use the returned content type and URL to decide whether to play, download, transcribe, or send the file onward.
Upload audio files with FilePost
Use the authenticated FilePost upload API for audio files. The endpoint returns a JSON object containing the public URL, file ID, size, content type, and filename mode.
curl -X POST https://upload.filepost.dev/v1/upload \
-H "X-API-Key: YOUR_API_KEY" \
-F "file=@voice-note.mp3"
Example response
{
"url": "https://cdn.filepost.dev/file/…",
"file_id": "a1b2c3d4e5f6",
"name": "voice-note.mp3",
"size": 84210,
"content_type": "audio/mpeg"
}
What to do with the returned URL
Use the URL as an audio-player source, a download link, or a value passed between automation steps.
<audio controls src="https://cdn.filepost.dev/file/…"></audio>
Good uses for audio to URL
- Voice notes and audio attachments
- Podcast or media workflow handoffs
- Audio URLs for web and application players
Know the boundary
FilePost does not transcode, normalize loudness, generate waveforms, or transcribe audio. Add a media-processing step when you need those transformations.
For the complete request and response contract, see the FilePost API documentation. You can also test the flow with the interactive upload on the homepage.