Search for templated emails.
Method | URI | Description |
---|---|---|
GET | /users/{user_id}/templated_emails |
Search user owned templated emails |
{
"data": [
{
"id": 1,
"templated_message_id": 1,
"subject": "Email subject...",
"description": "Email description...",
"greeting_with_first_name": "Hi Contact,",
"greeting_without_first_name": "Hi,",
"body": "Email body... (can contain valid email html)",
"closing": "Email closing...",
"ps_line": "Email ps_line",
"text": "Email body text representation...",
"signature_id": 1,
"status": "Saved",
"send_type": "Future",
"send_at": "2016-08-24T18:07:38Z",
"sending_at": "2016-08-24T18:07:38Z",
"sent_at": "2016-08-24T18:07:38Z",
"recipients": [],
"exclusions": null,
"source": "Email source...",
"reporting": {
"date": null,
"sent": 1,
"processed": 1,
"delivered": 1,
"open": 0,
"click": 0,
"reply": 0,
"spamreport": 0,
"unsubscribe": 0,
"deferred": 0,
"dropped": 0,
"bounce": 0,
"hard_bounce": 0,
"soft_bounce": 0,
"failed": 0
},
"created_at": "2016-08-24T18:07:38Z",
"updated_at": "2016-08-24T18:07:38Z",
"deleted_at": null
}
],
"links": {
"first": "https://api.happygrasshopper.com/v3/contacts/11882201/addresses?page=1",
"last": "https://api.happygrasshopper.com/v3/contacts/11882201/addresses?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": null,
"last_page": 1,
"path": "https://api.happygrasshopper.com/v3/contacts/11882201/addresses",
"per_page": 15,
"to": null,
"total": 1
}
}
Create an templated email.
Method | URI | Description |
---|---|---|
POST | /users/{user_id}/templated_emails |
Create a user owned templated email |
{
"templated_message_id": 1,
"subject": "Email subject...",
"description": "Email description...",
"greeting_with_first_name": "Hi Contact,",
"greeting_without_first_name": "Hi,",
"body": "Email body... (can contain valid email html)",
"closing": "Email closing...",
"ps_line": "Email ps_line",
"signature_id": 1,
"status": "Saved",
"send_type": "Future",
"send_at": "2016-08-24T18:07:38Z",
"recipients": [],
"exclusions": []
}
{
"id": 1,
"templated_message_id": 1,
"subject": "Email subject...",
"description": "Email description...",
"greeting_with_first_name": "Hi Contact,",
"greeting_without_first_name": "Hi,",
"body": "Email body... (can contain valid email html)",
"closing": "Email closing...",
"ps_line": "Email ps_line",
"text": "Email body text representation...",
"signature_id": 1,
"status": "Saved",
"send_type": "Future",
"send_at": "2016-08-24T18:07:38Z",
"sending_at": "2016-08-24T18:07:38Z",
"sent_at": "2016-08-24T18:07:38Z",
"recipients": [],
"exclusions": null,
"source": "Email source...",
"reporting": {
"date": null,
"sent": 1,
"processed": 1,
"delivered": 1,
"open": 0,
"click": 0,
"reply": 0,
"spamreport": 0,
"unsubscribe": 0,
"deferred": 0,
"dropped": 0,
"bounce": 0,
"hard_bounce": 0,
"soft_bounce": 0,
"failed": 0
},
"created_at": "2016-08-24T18:07:38Z",
"updated_at": "2016-08-24T18:07:38Z",
"deleted_at": null
}
Retrieve an templated email.
Method | URI | Description |
---|---|---|
GET | /templated_emails/{templated_email_id} |
Retrieve an templated email by it's id |
{
"id": 1,
"templated_message_id": 1,
"subject": "Email subject...",
"description": "Email description...",
"greeting_with_first_name": "Hi Contact,",
"greeting_without_first_name": "Hi,",
"body": "Email body... (can contain valid email html)",
"closing": "Email closing...",
"ps_line": "Email ps_line",
"text": "Email body text representation...",
"signature_id": 1,
"status": "Saved",
"send_type": "Future",
"send_at": "2016-08-24T18:07:38Z",
"sending_at": "2016-08-24T18:07:38Z",
"sent_at": "2016-08-24T18:07:38Z",
"recipients": [],
"exclusions": null,
"source": "Email source...",
"reporting": {
"date": null,
"sent": 1,
"processed": 1,
"delivered": 1,
"open": 0,
"click": 0,
"reply": 0,
"spamreport": 0,
"unsubscribe": 0,
"deferred": 0,
"dropped": 0,
"bounce": 0,
"hard_bounce": 0,
"soft_bounce": 0,
"failed": 0
},
"created_at": "2016-08-24T18:07:38Z",
"updated_at": "2016-08-24T18:07:38Z",
"deleted_at": null
}
Update an templated email.
Method | URI | Description |
---|---|---|
PUT | /templated_emails/{templated_email_id} |
Update an templated email |
{
"templated_message_id": 1,
"subject": "Email subject...",
"description": "Email description...",
"greeting_with_first_name": "Hi Contact,",
"greeting_without_first_name": "Hi,",
"body": "Email body... (can contain valid email html)",
"closing": "Email closing...",
"ps_line": "Email ps_line",
"signature_id": 1,
"status": "Saved",
"send_type": "Future",
"send_at": "2016-08-24T18:07:38Z",
"recipients": [],
"exclusions": []
}
{
"id": 1,
"templated_message_id": 1,
"subject": "Email subject...",
"description": "Email description...",
"greeting_with_first_name": "Hi Contact,",
"greeting_without_first_name": "Hi,",
"body": "Email body... (can contain valid email html)",
"closing": "Email closing...",
"ps_line": "Email ps_line",
"text": "Email body text representation...",
"signature_id": 1,
"status": "Saved",
"send_type": "Future",
"send_at": "2016-08-24T18:07:38Z",
"sending_at": "2016-08-24T18:07:38Z",
"sent_at": "2016-08-24T18:07:38Z",
"recipients": [],
"exclusions": null,
"source": "Email source...",
"reporting": {
"date": null,
"sent": 1,
"processed": 1,
"delivered": 1,
"open": 0,
"click": 0,
"reply": 0,
"spamreport": 0,
"unsubscribe": 0,
"deferred": 0,
"dropped": 0,
"bounce": 0,
"hard_bounce": 0,
"soft_bounce": 0,
"failed": 0
},
"created_at": "2016-08-24T18:07:38Z",
"updated_at": "2016-08-24T18:07:38Z",
"deleted_at": null
}
Delete an templated email.
Method | URI | Description |
---|---|---|
DELETE | /templated_emails/{templated_email_id} |
Delete an templated email by it's id |
{
"success": true
}