Skip to main content
POST

Create User Media

Upload video or image files to your user media library by providing a URL. This media can then be referenced in your video projects using the returned userMediaId.
This endpoint requires authentication and has a rate limit of 500 requests per hour.

Authentication

string
required
Your Submagic API key starting with sk-

Request Body

string
required
Public URL to your video or image file. Must be a valid URL and accessible without authentication.

Response

string
Unique identifier for the uploaded media (UUID format). Use this ID to reference the media in your video projects.

Using User Media in Projects

Once you have a userMediaId, you can reference it in the items array when creating or uploading projects:
See the Create Project or Upload Project documentation for more details on using user media in your videos.

Error Responses

object
object
object
Returned when url is a Google Drive folder or other Drive link that doesn’t point to a single file. Share a direct file link with access set to “Anyone with the link”.
object
Returned when url can’t be reached or serves a web page instead of a media file (e.g. a broken link, a login wall, or a share page rather than a direct download).
object
object
object