Sign in

Insert message (upload)

documented

Inserts a message into only this user's mailbox via the upload endpoint.

POST /upload/gmail/v1/users/{userId}/messagesUsersno implementation yet0 runs
No 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://gmail.googleapis.com/upload/gmail/v1/users/{{$user_id}}/messages/send?uploadType=multipart" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: multipart/related; boundary={{$boundary}}" \
  -H "Accept: application/json" \
  -d $'--{{$boundary}}\r\nContent-Type: application/json; charset=UTF-8\r\n\r\n{\"raw\": \"{{$raw_email_base64}}\", \"labelIds\": [\"SENT\"]}\r\n--{{$boundary}}\r\nContent-Type: message/rfc822\r\n\r\n{{$email_message_rfc822}}\r\n--{{$boundary}}--'