Attachments
Initiate an attachment upload by generating a presigned URL and signed token.
This is phase 1 of the two-phase attachment flow:
Call this endpoint to get presigned URL and token
Upload file to the presigned URL
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
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 · enumRequiredPossible values:
The entity that will own this attachment (e.g., 'comments')
Responses
200
Presigned URL and token for uploading an attachment
application/json
404
Not found
422
Validation Error
application/json
post
/attachments/uploadLast updated

