Workflow
Send Gmail Email with Attachments
Sends an email using available Gmail accounts with optional file attachments. The system automatically selects the best Gmail account based on daily send limits and downloads attachments from provided URLs.
post/api/v1/workflow/agent/send-gmail
Request
- Base URL: https://api.kolect.com
- URL: https://api.kolect.com/api/v1/workflow/agent/send-gmail
- Auth: HTTP bearer
Request body
Example request
{
"receiver_address": "recipient@example.com",
"subject": "Important Document Attached",
"body": "Please find the attached documents for your review.",
"sender_name": "Max Zou From Kolect",
"attachments": [
"https://example.com/document.pdf",
"https://example.com/image.jpg",
"https://example.com/spreadsheet.xlsx"
]
}Response
Email processing completed (success or failure)
Example response
{
"send_address": "sender@gmail.com",
"receiver_address": "recipient@example.com",
"subject": "Important Document Attached",
"status": "success",
"message": "Email sent successfully",
"time_elapsed": 2500,
"attachments_processed": 2,
"messageId": "1a2b3c4d5e6f7g8h",
"threadId": "9i8h7g6f5e4d3c2b"
}Changes
No recorded changes to this operation across all 1 revision of this API.