Create draft (upload)
documentedCreates a new draft with the DRAFT label using the upload endpoint.
POST /upload/gmail/v1/users/{userId}/draftsUsersno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://www.googleapis.com/upload/gmail/v1/users/{{$user_id}}/drafts?uploadType=multipart" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: multipart/related; boundary=boundary123" \
-H "Accept: application/json" \
-d '--boundary123
Content-Type: application/json; charset=UTF-8
{"message": {"raw": "{{$raw_message_base64url}}"}}
--boundary123
Content-Type: message/rfc822
{{$mime_email_body}}
--boundary123--'