Skip to main content
POST
/
api
/
attachments
/
presign
Presign upload
curl --request POST \
  --url http://localhost:8091/api/attachments/presign \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "filename": "<string>",
  "mimeType": "<string>"
}
'
{
  "data": {
    "uploadId": "<string>",
    "uploadUrl": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Session token obtained from /api/auth/login or /api/auth/register. Pass as: Authorization: Bearer

Body

application/json
filename
string
required

Original filename

mimeType
string

MIME type of the file

Response

200 - application/json

Presigned upload details

data
object