WhatsApp · JSON Structure

Whatsapp Cloud Api Media Object Structure

MediaObject from WhatsApp API

Type: object Properties: 3

MediaObject is a JSON Structure definition published by WhatsApp, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id link caption

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/whatsapp/refs/heads/main/json-structure/whatsapp-cloud-api-media-object-structure.json",
  "name": "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"
    }
  }
}