๐Ÿ“˜
Gleantap API
  • Introduction
  • Fetch Data
    • Attribute List
    • Attribute Event List
    • Locations
    • Class Schedule
    • Customers
    • Events for a Customer
    • Opted In Customers
    • Campaigns
    • Opted Out Customers
    • Workrooms
    • Forms
    • Form Submissions
  • Update Data
    • Create or Update Location
    • Create a Class
    • Delete Class
    • Create or Update Contact
    • SMS Opt-in a Contact
    • Add Memberships for Contact
    • Create an Event
    • Delete Contact
    • Merge Contacts
    • Send SMS Notification
    • Send Email Notifications
Powered by GitBook
On this page
  1. Update Data

Send Email Notifications

PreviousSend SMS Notification

Last updated 2 months ago

Send email notification

post

Send an email notification to a specific contact. Either use the message parameter or use a template.

Path parameters
app_idstringRequired

Application ID

Header parameters
X-API-KEYstringRequired

Your API key

X-SECRET-KEYstringRequired

Your Secret key

Body
_idstringOptional

Unique Gleantap Contact ID for personalization

to_emailstring ยท emailRequired
subjectstringRequired
messagestringRequired
template_idstringOptional

Email template ID (optional)

Responses
200
Email sent successfully
application/json
400
Invalid request parameters
401
Unauthorized - Invalid API credentials
500
Email sending failed
post
POST /v2/ExternalApi/sendEmailNotification/{app_id} HTTP/1.1
Host: api.gleantap.com
X-API-KEY: text
X-SECRET-KEY: text
Content-Type: application/json
Accept: */*
Content-Length: 148

{
  "_id": "text",
  "to_email": "[email protected]",
  "subject": "text",
  "message": "text",
  "template_id": "text",
  "attachments": [
    {
      "name": "text",
      "content": "binary"
    }
  ]
}
{
  "status": true,
  "message": "Email sent successfully"
}