v51

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-01121113461.4 KB
third-party/drive

Save an attachment to the user's Drive workspace. If the file already exists (matched by title and size), returns the existing item with a 200 status. Otherwise, creates a new file and returns it with a 201 status.

post/api/v1.0/third-party/drive/

Request body

blob_idstring required

ID of the attachment to upload (format: msg_{message_id}_{attachment_index})

Response

File already exists in Drive

idstring uuid required
filenamestring required
mimetypestring required
sizeinteger required