Skip to main content
Version: v1

GetFilePreSignedUrlPublicV1Request

Request to get a link for uploading a file

fileNamestringrequired

File name

mediaTypeMediaType (string)required

File type

Possible values: [RAW, IMAGE, AUDIO, VIDEO, PDF, DOC, XLS, PPT]

Example: IMAGE
workspaceIdstringrequired

Workspace ID

accessChatIdstringnullable

ID of the chat in which the file will be accessible

GetFilePreSignedUrlPublicV1Request
{
"fileName": "file.txt",
"mediaType": "RAW",
"workspaceId": "w67Y89gu",
"accessChatId": "c56Y0kgi"
}