1. Home
  2. Docs
  3. REST API V2
  4. Email API
  5. Sending Emails 

Sending Emails 

You can send emails to any contact by making GET HTTP request to /emails/send/ endpoint. its require two argument while making request.

contact_id : The ID of the user whom you want to send email.
email_id : The ID of email which you want to send to contact.

http://yoursite.com/wp-json/gh/v2/emails/send?key=[public_key]&token=[token]&email_id=1&contact_id=1

This request send emails to contact and returns following response from the server.

{
    "code": "success",
    "message": "Email sent successfully to contact."
}
Was this article helpful to you? Yes No

How can we help?