Passa al contenuto principale

Carica un file media

POST 

/api/partner-gateway/v1/media

Uploads a new media file (image or video) to your media library. The request must use multipart/form-data encoding with the binary file in the 'file' part. Supported image formats include JPEG, PNG, and GIF. Supported video formats include MP4. Optionally provide a human-readable name and description for the file, and a folderId to organize it into a specific folder within your library. On success the response includes the newly created media ID. Store this ID and use it whenever you need to attach the file to an outbound message (e.g. RCS rich cards, WhatsApp media messages) or to campaign content. Returns 400 if the request is malformed, the file part is missing, or the file type is not supported. Returns 401 if the API key is missing or invalid. Returns 502 if the upstream media storage service is temporarily unavailable; retry after a short delay in this case.

Richiesta

Risposte

Media caricato con successo