Voice status
Post a voice status (story) to WhatsApp.
Authentication Required
Login to swap the placeholders with your real Instance ID and Access Token.
Log InNo query parameters required
This endpoint doesn't expect data in the URL.
Best practices
Use clear audio; background noise can be distracting.
Add a background color that matches your brand.
The Personal Touch: Voice Status
The /v2/status/voice endpoint allows you to post audio recordings directly to your Status feed. Users see an audio player with a waveform visualization, making it distinct from standard video or music files.
🎙️ Why Voice?
1. Intimacy at Scale
Voice notes are the most personal form of digital communication. Hearing a founder's voice explaining a delay or wishing a "Happy New Year" creates a connection that text cannot replicate.
- Trust: It proves there is a human behind the automation.
- Nuance: Tone, excitement, and empathy are lost in text but preserved in voice.
2. High Accessibility
- Passive Consumption: Users can listen while driving or walking.
- Literacy: Great for markets where oral communication is preferred over reading long text blocks.
🎧 Technical Requirements
WhatsApp is extremely strict about audio formats for Voice Status.
The "Opus in OGG" Rule
To get the authentic "Voice Note" look (with the waveform), you cannot just upload an MP3.
- Container: OGG.
- Codec: Opus.
- Channels: Mono (1 channel). Stereo often causes the waveform to look flat.
- Sample Rate: 16000 Hz or 48000 Hz.
How to Convert using FFmpeg
If you have an MP3 file, use this command before uploading:
ffmpeg -i input.mp3 -c:a libopus -b:a 64k -vbr on -compression_level 10 output.ogg
The convert Solution
If you don't want to handle FFmpeg, set convert: true in your API call.
- Mechanism: The API will take your MP3/WAV/AAC and transcode it to OGG/Opus.
- Trade-off: Adds latency.
🎨 Visual Customization
Unlike Video (which fills the screen with pixels), a Voice Status is essentially an audio player on top of a colored background.
Background Colors
Just like Text Status, you can (and should) strictly define a backgroundColor.
- Default: If you don't specify one, WhatsApp picks a random color (often a garish purple or green).
- Branding: Use your brand's hex code to maintain visual consistency.
- Example: A Red background (
#FF0000) for urgent alerts. - Example: A Blue background (
#0000FF) for calm updates.
- Example: A Red background (
🚀 Use Case Ideas
1. The "Morning Briefing"
- Concept: A 30-second summary of the stock market or daily news.
- Execution:
- Text-to-Speech (TTS) engine generates audio.
- FFmpeg converts to OGG.
- API Call: Upload with
backgroundColor: #000000.
- User Value: Users get a mini-podcast in their Status feed.
2. The "Pronunciation Guide"
- Concept: An educational bot teaching languages.
- Execution:
- Image Status: Shows the word "Bonjour".
- Voice Status (Immediately after): Plays the correct pronunciation.
- Result: A multi-modal verified lesson.
3. Music Teasers
- Concept: An artist dropping a new track.
- Execution: Upload the 30-second "hook" of the song.
- Note: Ensure
convert: trueis on if uploading MP3 snippets.
⚠️ Limitations
The 30-Second Limit (Again)
Just like video, Voice Statuses are capped at 30 seconds.
- Truncation: If you upload a 5-minute podcast, only the first 30 seconds will play. The rest is discarded silently.
- Splitting: You generally cannot split audio as elegantly as video because the pause between statuses breaks the flow of speech. Keep it succinct.
No "Seek" Bar
Voice Statuses do not always have a seek bar (scrubber) depending on the user's OS version. Users expect to listen from start to finish.
Privacy
Voice Statuses obey the same privacy rules (My Contacts, etc.) as the rest of the ecosystem.
Request Parameters
Configure the parameters required to interact with this endpoint. All query and body arguments are listed below with their details.
Request Body
Sent as a JSON objectstring | WhatsApp Instance ID Example: | ||
string | API Access Token Example: | ||
string | URL to the audio file (ogg/opus recommended) Example: | ||
string | Name of the file Example: | ||
string | MIME type Example: | ||
boolean | Enable auto-conversion Example: | ||
string | Caption for the voice status Example: |
Request Samples
Use these ready-to-go code snippets to integrate our API into your project quickly and efficiently. Choose your preferred language and library.
Expected Responses
Explore all possible responses and outcomes from the server. We have documented each status code with data examples to make success and error handling easier.
Example
{
"success": true,
"message": "Operation completed successfully"
}Command Palette
Search for a command to run...