Attachments

Initiate attachment upload

post

Initiate an attachment upload by generating a presigned URL and signed token.

This is phase 1 of the two-phase attachment flow:

  1. Call this endpoint to get presigned URL and token

  2. Upload file to the presigned URL

  3. Pass token(s) when creating the entity (e.g., comment) to link attachments

Header parameters
passwordany ofOptional

The password header to use to fetch the preview

stringOptional
or
nullOptional
Body
drive_idstring · uuidRequired

The ID of the drive to upload the attachment to

sizeintegerRequired

The size of the file in bytes

mime_typestringRequired

The MIME type of the file

file_namestringRequired

The original filename

entitystring · enumRequired

The entity that will own this attachment (e.g., 'comments')

Possible values:
Responses
chevron-right
200

Presigned URL and token for uploading an attachment

application/json
post
/attachments/upload

Last updated