# Send Email Notifications

## Send email notification

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

```json
{"openapi":"3.0.0","info":{"title":"Gleantap External API","version":"1.0.0"},"tags":[{"name":"Notifications","description":"Notifications"}],"servers":[{"url":"https://api.gleantap.com","description":"Production server"}],"paths":{"/v2/ExternalApi/sendEmailNotification/{app_id}":{"post":{"tags":["Notifications"],"summary":"Send email notification","description":"Send an email notification to a specific contact. Either use the message parameter or use a template.","operationId":"e3b8deb13ded307791e4f417f41f43ae","parameters":[{"name":"X-API-KEY","in":"header","description":"Your API key","required":true,"schema":{"type":"string"}},{"name":"X-SECRET-KEY","in":"header","description":"Your Secret key","required":true,"schema":{"type":"string"}},{"name":"app_id","in":"path","description":"Application ID","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"required":["to_email","subject","message"],"properties":{"_id":{"description":"Unique Gleantap Contact ID for personalization","type":"string"},"to_email":{"type":"string","format":"email"},"subject":{"type":"string"},"message":{"type":"string"},"template_id":{"description":"Email template ID (optional)","type":"string"},"attachments":{"type":"array","items":{"properties":{"name":{"type":"string"},"content":{"type":"string","format":"binary"}},"type":"object"}}},"type":"object"}}}},"responses":{"200":{"description":"Email sent successfully","content":{"application/json":{"schema":{"properties":{"status":{"type":"boolean"},"message":{"type":"string"}},"type":"object"}}}},"400":{"description":"Invalid request parameters"},"401":{"description":"Unauthorized - Invalid API credentials"},"500":{"description":"Email sending failed"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.gleantap.com/update-data/send-email-notifications.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
