Properties
| Name | Type | Description |
|---|---|---|
| id | string | Media ID from upload |
| link | string | HTTPS URL of the media file |
| caption | string | Caption text |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/whatsapp/refs/heads/main/json-schema/whatsapp-cloud-api-media-object-schema.json",
"title": "MediaObject",
"description": "MediaObject from WhatsApp API",
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Media ID from upload",
"example": "wamid.abc123"
},
"link": {
"type": "string",
"format": "uri",
"description": "HTTPS URL of the media file",
"example": "example_value"
},
"caption": {
"type": "string",
"description": "Caption text",
"maxLength": 1024,
"example": "example_value"
}
}
}