Skip to main content
This topic describes media files, the API capabilities available for media files, and how to integrate the media file APIs.

What is a media file

Media file storage location

The storage space used by this feature is a dedicated storage area that DingTalk provides to organizations. It does not belong to an organization’s Drive space. Files uploaded through this feature’s APIs do not consume the organization’s Drive space.

Storage validity

There is no time limit on how long files are stored by this feature. As long as the DingTalk organization is not dissolved, the media_id returned when uploading a file remains valid for ongoing use.

Open capabilities overview

Media files provide a comprehensive set of open API capabilities. Developers can use these APIs to integrate media files with their organization’s business systems.
APIDescriptionAPI version
Upload a media fileUpload images, voice media resources, and general files.Legacy

Tutorials

DingTalk provides sample integration flows for the media file APIs. See the table below:
TutorialFeature descriptionAudienceDemo download
Upload a media file and send a work notificationUpload a media file and send message notifications.All DingTalk developersfile-demo.zip