Sign in

Send message (upload)

documented

Sends the specified message to the recipients using the upload endpoint.

POST /upload/gmail/v1/users/{userId}/messages/sendUsersno 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://www.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\\n{"raw": "{{$raw}}", "labelIds": ["SENT"]}\\r\\n--BOUNDARY\\r\\nContent-Type: text/plain; charset=UTF-8\\r\\n\\n{{$raw_mime}}\\r\\n--BOUNDARY--'
Send message (upload) · Gmail · OpenIntegrations