Skip to main content
The media system supports two types of media: User Media (uploaded files) and Social Audio (imported from TikTok or Instagram).

Media (Union Type)

The Media 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 the Media union type, use the media_type field to determine the specific type: