Media

The Media API provides operations for preparing uploads, completing uploads, converting audio, listing stored media, and streaming or downloading media files.

Endpoints

MethodPathPurpose
POST/uploads/convert-audioConvert WebM audio
POST/uploads/presignGenerate upload URL
POST/uploads/completeComplete upload
GET/uploads/Workspace/:workspaceIdList Workspace files
GET/uploads/channel/:workspaceId/:channelIdList Channel files
GET/media/file/:fileIdStream media
GET/media/info/:fileIdGet media information
GET/media/download/:fileIdDownload media
GET/media/statusGet media storage status

Presigned Uploads

The upload preparation request includes:

fileName

fileType

fileSize

conversationId

channelId

The response includes:

uploadUrl

publicUrl

fileId

s3Key

The s3Key is an implementation response field and should not be treated as a credential or exposed as an internal infrastructure configuration.

Need Help?

Email: support@ysdesk.com

Documentation: https://docs.ysplugins.com/ys-desk

Next