上传媒体

上传可稍后在WhatsApp消息中发送的媒体。此端点与Meta的WhatsApp Business API媒体端点接口。通过此端点发送的所有媒体文件都经过加密,并保存30天。

有关支持的媒体类型和大小限制,请参阅Supported Media Types

有关更多信息,请参阅Meta's WhatsApp Cloud API Media documentation

请注意,所有交互式消息都不能在标题部分使用Media ID发送图像、文档、视频或音频。这些元素必须使用链接发送。

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

用于上传的电话号码,需为E.164格式

Body Params
file
required

要上传的媒体文件。仅支持一个文件。如果上传多个文件,只会处理第一个文件。

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json