Overview

A Media object is one file in your media library: storage that Phones Inc keeps for your organization. Put a file there once, then use it on as many phones as you like, as often as you like. The library holds photos and videos, and any other file you want to put on a phone, such as an APK or a document.
  1. Upload Media stores a file and returns its id.
  2. Pass that id as mediaId to Import Media, Push File or Install App.
Endpoints that take a mediaId also accept a public url instead, if you only need the file once and it is already hosted somewhere reachable over HTTPS. The media library is separate from the phones. Its endpoints never take phoneIds, and deleting a file from the library does not remove copies already put on phones. For what is stored on a phone, see File.

Limits

  • Maximum size: 1 GiB per file.
  • Files stay in your media library until you delete them.

Properties

string
Unique identifier of the file. Pass it as mediaId.
string
File name including its extension, for example clip.mp4. The extension tells the phone what kind of file it is.
string
image, video or other.
number
Size in bytes.
string
A link to download the file with a plain GET, valid for one hour. No Authorization header is needed.
string
When the file was added to the library (ISO 8601 timestamp).

Example