Upload your file with the Signed Url or External URL
If you want to add a hosted media (you must have a valid URL) to your media library, do it here.
Parameters
Please must specify mediaType as audio or video
name: String required
description: string;
url: string required; // public URL or AWS signed URL
mediaType: 'audio'; // 'video'
userId: ""; // for enterprise users only (optional)
medicalId: "" // custom media Id or medical Id for your reference (optional)
createdAt: "2021-08-09T00:13:11.717Z" // must match the date format (optional)
tags: "comma separated strings",
folderId: "folder Id" // to save in the folder
fields: { id: string, value: string } = []; (Optional)
Webhook Callback URL:
-
If you created a webhook for media events and want to receive a callback to a specific URL for this text note, you can assign callbackUrl - string in a req.body.
-
Speak will consider the callbackUrl and will skip the callbackUrl created via Webhook API.
Fields:
You can pass the id and value in the Fields array to include related to your media files.
Upload Considerations:
-
Maximum duration limit of 3 hours for a media URL.
-
The URL needs to be accessible publicly. For Example - Google Drive, Dropbox are not supported.
-
Valid YouTube URL examples are: https://www.youtube.com/watch?v=pTJ-yvNWCUE.
-
Supported File Formats are:
-
Audio - mp3 (recommended), m4a, wav, ogg, webm, m4p
-
Video - mp4 (recommended), m4v, wmv, avi, mov, flv
Request
- Base URL: https://api.speakai.co/v1
- URL: https://api.speakai.co/v1/media/upload
- Auth: API key in header x-speakai-key and API key in header x-access-token
Request body
Response
OK
Changes
No recorded changes to this operation across all 2 revisions of this API.