Skip to main content
POST
Get a presigned URL to share a file in a channel.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
channelId
string
required

The channel the file will be shared in.

fileName
string
required

Original file name (with extension).

mimeType
string
required

MIME type. Allowed: images, text/code, application/pdf, json, xml, yaml, zip, gzip.

sizeBytes
number
required

File size in bytes. Rejected if it exceeds the workspace file-size limit.

Response

Success

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object