Skip to content

MediaInfo

Defined in: src/types/media.ts:45

Typed, camelCase metadata for a media object (from GET /{mediaId}).

fileSize: number

Defined in: src/types/media.ts:58

Size of the media in bytes.


id: string

Defined in: src/types/media.ts:47

The media id.


messagingProduct: string

Defined in: src/types/media.ts:60

Messaging product the media belongs to (always whatsapp).


mimeType: string

Defined in: src/types/media.ts:54

MIME type of the stored media, e.g. image/jpeg.


sha256: string

Defined in: src/types/media.ts:56

SHA-256 checksum of the media contents.


url: string

Defined in: src/types/media.ts:52

Short-lived, authenticated download URL. It expires quickly and must be fetched with the Authorization: Bearer token.

Independent open-source project. Not affiliated with, endorsed by or sponsored by Meta or WhatsApp. Released under the MIT licence. Source on GitHub.