Direct uploads

Create a Gmail draft with direct multipart workspace attachments

Changed on

Authenticated 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 URL
    https://api.openworklabs.com
  • Auth
    HTTP bearer

Response

Gmail draft created.

GoogleWorkspaceDraftResponse 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 draftUrl became nullable for the status

    • breaking

      the response property messageId became nullable for the status

    • breaking

      the response property threadId became nullable for the status

    6 more changes in this revision