Create email
documentedCreate an Email activity (including handling attachments and templates).
POST /activity/email/Activitiesno 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://api.close.com/api/v1/activity/email/" \
-X POST \
-u {{CLOSE_API_KEY}}: \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{"lead_id": "{{$lead_id}}", "contact_id": "{{$contact_id}}", "status": "{{$status}}", "body_text": "{{$body_text}}", "body_html": "{{$body_html}}", "subject": "{{$subject}}", "sender": "{{$sender}}", "date_scheduled": "{{$date_scheduled}}", "followup_date": "{{$followup_date}}", "template_id": "{{$template_id}}", "attachments": [{"url": "{{$attachment_url}}","filename": "{{$attachment_filename}}","content_type": "{{$attachment_content_type}}","size": {{$attachment_size}}}] }'"