All endpoints
- Overview
Messages
Media
Conversations
Templates
Numbers
Groups
Reference
Download media
GET /api/v1/wa/media/{media_id}
Download an attachment a customer sent you (the file itself).
The media id is in message.received (message.media.id). The answer is the file, streamed from Meta and never stored by us, with its Content-Type. Only attachments received on your own numbers.
Treat every attachment as untrusted: scan it before opening. Meta keeps media about 30 days; after that this answers 409.
Authentication
Header Authorization: Bearer sfp_live_… with an API key from WhatsApp > API and webhooks. Keep keys on your server, never in a browser or app. See API keys.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
media_id | path | string | Yes |
Request
curl -o attachment.bin https://saleflowpoint.com/api/v1/wa/media/1203456789012345 \
-H "Authorization: Bearer sfp_live_…"Response
(the file; Content-Type: image/jpeg, application/pdf, …)Errors
| Status | When |
|---|---|
401 | The API key is missing, unknown or revoked, or WhatsApp is not available for the account. |
404 | The attachment was not received on one of your numbers. |
409 | Meta no longer has the file, or WhatsApp is paused for your account (the free trial ended unpaid). |
422 | A field is missing or not valid. |
429 | More than the rate limit; wait the seconds in Retry-After. |
Every error looks like {"error": {"code", "message", "correlation_id"}}; quote the correlation_id when you contact us. See Errors and limits.
Rate limits
300 requests a minute per API key, shared by every endpoint. Successful answers carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; a 429 carries Retry-After. Uploads and downloads also count against 120 a minute per company.

