Media (Union Type)
TheMedia type is a union of UserMedia and SocialAudio. When fetching media, you can differentiate between them using the media_type field.
UserMedia
Represents uploaded media files (images, videos, audio).Example UserMedia Object
SocialAudio
Represents audio imported from TikTok or Instagram.Example SocialAudio Object
Type Checking
When working with theMedia union type, use the media_type field to determine the specific type:
