Direct uploads
Create a Gmail draft with direct multipart workspace attachments
Changed onAuthenticated host transport for openwork-cloud-uploads. The route immediately creates the draft and does not persist attachment bytes or expose them to the model.
post/v1/direct-uploads/google-workspace/gmail-drafts
Request
- Base URLhttps://api.openworklabs.com
- AuthHTTP bearer
Response
Gmail draft created.
Google Workspace Draft Response required
ok, true required
draftId, string required
messageId, string nullable required
draftUrl, string nullable required
Gmail URL for the ready-to-send draft. Always share draftUrl with the user so they can open the draft in Gmail for review and send.
threadUrl, string nullable required
Gmail URL for the conversation thread returned by Gmail for this draft.
to, string required
subject, string required
threadId, string nullable required
quotedHistoryIncluded, boolean required
True when quoted conversation history was included by the server or already present in the request body.
attachments, object[]
Changes
- breaking
the response property
draftUrlbecame nullable for the status - breaking
the response property
messageIdbecame nullable for the status - breaking
the response property
threadIdbecame nullable for the status
6 more changes in this revision
- breaking