WhatsApp Media
Upload Media File
Upload media files (images, videos, documents) to Netcore's platform and receive a media ID that can be used in WhatsApp messages.
Supported Media Types:
- Images: JPEG, PNG, GIF, WebP
- Videos: MP4, 3GPP
- Audio: AAC, M4A, AMR, OGG OPUS
- Documents: PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX
Usage:
- Use this approach when you don't have publicly hosted media files
- Perfect for sending the same media file to multiple recipients
- Ideal for documents or images that aren't customized per recipient
post/media/upload
Request
- Base URLhttps://waapi.pepipost.com/api/v2
- URLhttps://waapi.pepipost.com/api/v2/media/upload
- AuthHTTP bearer
Headers
Content-Type'multipart/form-data' required
Content type for file upload. Must be multipart/form-data.
Request body multipart/form-data
Response
Media uploaded successfully
Example response
{
"status": "success",
"message": "Media uploaded successfully.",
"data": {
"mediaId": "e8500978-08e9-45b4-b756-d7f6c92f1d34"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.