WhatsApp Media
WhatsApp Media
Uploads media to WhatsApp and saves the file using Spatie Media Library. The response contains the media URL from the Spatie library.
The ID of the WhatsApp phone number for which the media is being uploaded
The file to be uploaded
The media type (e.g., image, video, etc.)
imageMedia uploaded successfully
Invalid media properties
Failed to get a valid access token
Upload failed
Retrieve and download media content from WhatsApp Cloud API using the provided media ID.
The ID of the media to download
Successfully downloaded the media file.
Failed to retrieve or download media.
Uploads media to WhatsApp Cloud API and returns a media ID.
ID of the WhatsApp phone number
Media file to upload
Media type (image, video, etc.)
imageMedia uploaded successfully
Unauthorized
Upload failed
Uploads media to OSS and returns the media link.
ID of the WhatsApp phone number
Media file to upload
Media type (image, video, etc.)
imageMedia uploaded successfully
Upload failed
Last updated