All endpoints
- Overview
Messages
Media
Conversations
Templates
Numbers
Groups
Reference
Upload media
POST /api/v1/wa/media
Upload one file to WhatsApp and get an id to send it with.
Multipart form: field file, and number_id if you have several API numbers. Send it with "media": {"id": "…"}. WhatsApp keeps uploads about 30 days; we do not store them.
Images JPEG/PNG up to 5 MB; stickers WebP up to 500 KB; video MP4/3GPP and audio AAC/MP4/MPEG/AMR/OGG up to 16 MB; documents (PDF, text, Word, Excel, PowerPoint) up to 20 MB. A file whose first bytes do not match its type is refused.
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 |
|---|---|---|---|---|
file | body | string | Yes | |
number_id | body | string | No | Up to 36 characters. |
Request
curl -X POST https://saleflowpoint.com/api/v1/wa/media \
-H "Authorization: Bearer sfp_live_…" \
-F "file=@invoice-1042.pdf;type=application/pdf"Response
{"id": "1203456789012345", "type": "document", "mime_type": "application/pdf", "size": 48213}Errors
| Status | When |
|---|---|
401 | The API key is missing, unknown or revoked, or WhatsApp is not available for the account. |
404 | The number_id is not one of yours. |
409 | WhatsApp is paused for your account (the free trial ended unpaid). |
413 | The file is too large. |
422 | A field is missing or not valid. |
422 | A type WhatsApp does not allow, or the contents do not match the type. |
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.
Try it
Try it is not offered for file uploads: use the curl example from your own computer.

