Upload Media

This endpoint uploads a media .

URL:​ ​https://waapi.pepipost.com/api/v2/media/upload​/

Method: POST


Request Body

Type: form-data

Key : file

Value : file you want to upload


In case of success

   "status": "success", 
   "message": "Media uploaded successfully.", 
   "data": { 
       "mediaId": "e8500978-08e9-45b4-b756-d7f6c92f1d34" 

In case of failure

   "status": "failure", 
   "error": { 
       "code": "8006", 
       "message": " Parameter file is required. Please upload a valid file." 

According to error, code and message will change.

Last updated