Send multimedia messages (images, video, audio, vCards) via the Telnyx API and process inbound MMS attachments from webhooks.Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- A Telnyx account with API key
- A messaging profile with a phone number enabled for MMS
- A webhook endpoint to receive inbound messages (see ngrok setup)
MMS is supported on US/Canada long codes, toll-free, and short codes. For media format details and carrier limits, see MMS Media & Transcoding.
Send an MMS
Includemedia_urls in your message request. You can send up to 10 media files per message.
Send multiple media files
Include multiple URLs inmedia_urls. Total payload must stay under carrier limits.
curl
Receive an MMS
Inbound MMS messages arrive as webhooks to your messaging profile’s webhook URL. Themedia array contains attachment details.
Webhook payload
Process inbound MMS
Reply with media
Echo received media back to the sender, or reply with different media:Supported media types
| Type | Formats | Max Size |
|---|---|---|
| Images | JPEG, PNG, GIF, BMP, WebP | 1 MB (carrier-dependent) |
| Video | MP4, 3GP | 600 KB (carrier-dependent) |
| Audio | MP3, AMR, WAV, OGG | 600 KB (carrier-dependent) |
| Files | vCard (.vcf), PDF | 600 KB |
Telnyx automatically transcodes oversized media when possible. For details on carrier-specific limits and transcoding behavior, see MMS Media & Transcoding.
Store media externally (optional)
For production use, store received media in your own cloud storage rather than relying on ephemeral Telnyx URLs.Upload to AWS S3
Upload to AWS S3
Python
Upload to Google Cloud Storage
Upload to Google Cloud Storage
Python
Troubleshooting
MMS sent but recipient receives SMS only
MMS sent but recipient receives SMS only
Cause: The media URL was unreachable, or the recipient’s carrier doesn’t support MMS.Fix:
- Verify the media URL is publicly accessible (no auth required)
- Check message detail records for error details
- Confirm the recipient’s number supports MMS
Media too large — message rejected
Media too large — message rejected
Cause: Total media payload exceeds carrier limits.Fix:
- Compress images before sending (aim for < 600 KB each)
- Enable automatic transcoding (on by default)
- See carrier size limits
Inbound media URL returns 404
Inbound media URL returns 404
Cause: Telnyx media URLs are temporary. You waited too long to download.Fix: Download media immediately in your webhook handler. Store in your own S3/GCS bucket.
MMS not supported on my number
MMS not supported on my number
Cause: Some number types (e.g., alphanumeric sender IDs) don’t support MMS.Fix: Use a US/Canada long code, toll-free, or short code with MMS enabled in your messaging profile.
Next steps
MMS Media & Transcoding
Carrier limits, supported formats, and automatic transcoding.
Receiving Webhooks
Set up and secure your webhook endpoint.
Send Message
SMS sending guide with all SDK examples.
Group Messaging
Send MMS to multiple recipients.