Skip to content
All endpoints

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

NameInTypeRequiredDescription
media_idpathstringYes

Request

curl -o attachment.bin https://saleflowpoint.com/api/v1/wa/media/1203456789012345 \
  -H "Authorization: Bearer sfp_live_…"

Response

200 OK
(the file; Content-Type: image/jpeg, application/pdf, …)

Errors

StatusWhen
401The API key is missing, unknown or revoked, or WhatsApp is not available for the account.
404The attachment was not received on one of your numbers.
409Meta no longer has the file, or WhatsApp is paused for your account (the free trial ended unpaid).
422A field is missing or not valid.
429More 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.

Try it

This calls the real API with your key. It reads only; nothing is sent. Your key stays in this page's memory: it is sent only to this site's API, never saved, and is gone when you leave the page.

GET /api/v1/wa/media/{media_id}
Loading SaleFlowPoint…