Emails
Get an email
GET /emails/:email_id
Response
Status code 200
{
"id": "1ff8506d-60d4-4ce4-904e-448fd5527954",
"activity_id": "a403327b-4388-315b-826d-0577819da0c7",
"correspondence_id": "d0501ee0-ddbb-391e-b124-40ae8c6ae881",
"user": {
"id": 1,
"first_name": "Jane",
"last_name": "Doe",
"phone_number": "+4588888888",
"job_title": "Sales Executive",
"email": "demo@easir.com",
"email_notifications": false,
"profile_picture": "https://randomuser.me/api/portraits/thumb/women/5.jpg",
"system_user": false,
"created_at": "2014-01-01 12:45:56",
"updated_at": "2019-05-06 06:18:53"
},
"contacts": [
{
"id": "068c7b4e-0bf5-3b97-9978-2be606e83df2",
"b2c": true,
"account": {
"id": "3cb87c2f-0feb-3b10-90a1-b5d01bb3eb69",
"name": "B2C - Krogh & Vester"
},
"user": {
"id": 20,
"first_name": "Lilla",
"last_name": "Gottlieb",
"phone_number": "+1-207-337-7223",
"job_title": "Consumer Journey Data Scientist",
"email": "18@example.com",
"email_notifications": false,
"profile_picture": null,
"system_user": false,
"created_at": "2018-07-27 11:42:55",
"updated_at": "2019-02-18 04:27:10"
},
"team_id": 1,
"team": {
"id": 1,
"name": "Team 1",
"address_1": "Savannah 123",
"address_2": "Under the tree on the left",
"zip_code": "4730",
"city": "Umzimkulu",
"state": "KwaZulu-Natal",
"country": null,
"phone_number": "031 308 7900",
"website": "https://easir.com",
"vat": "1234567890123456",
"team_type": null,
"group_id": 1,
"use_social_lookup": false,
"created_at": "2014-01-01 12:45:56",
"updated_at": "2014-01-02 00:11:22"
},
"status": "lead",
"fixed_fields": [
{
"id": 17,
"type": "text",
"name": "salutation",
"label": "Salutation",
"description": null,
"value": "Prof.",
"validation": null,
"required": false,
"hidden": false,
"read_only": false,
"sort_order": 0
},
{
"id": 18,
"type": "text",
"name": "first_name",
"label": "First name",
"description": null,
"value": "Anton",
"validation": null,
"required": true,
"hidden": false,
"read_only": false,
"sort_order": 0
},
{
"id": 19,
"type": "text",
"name": "last_name",
"label": "Last name",
"description": null,
"value": "Dalsgaard",
"validation": null,
"required": true,
"hidden": false,
"read_only": false,
"sort_order": 0
},
{
"id": 20,
"type": "text",
"name": "email",
"label": "Email",
"description": null,
"value": "Albertsen.Louis@example.com",
"validation": "email",
"required": false,
"hidden": false,
"read_only": false,
"sort_order": 0
},
{
"id": 21,
"type": "text",
"name": "landline_phone_number",
"label": "Landline phone number",
"description": null,
"value": "62686215",
"validation": null,
"required": false,
"hidden": false,
"read_only": false,
"sort_order": 0
},
{
"id": 23,
"type": "text",
"name": "title",
"label": "Title",
"description": null,
"value": "Sales",
"validation": null,
"required": false,
"hidden": false,
"read_only": false,
"sort_order": 0
},
{
"id": 24,
"type": "text",
"name": "address",
"label": "Address",
"description": null,
"value": null,
"validation": null,
"required": false,
"hidden": false,
"read_only": false,
"sort_order": 0
},
{
"id": 25,
"type": "text",
"name": "zip_code",
"label": "Zip code",
"description": null,
"value": null,
"validation": null,
"required": false,
"hidden": false,
"read_only": false,
"sort_order": 0
},
{
"id": 26,
"type": "text",
"name": "city",
"label": "City",
"description": null,
"value": null,
"validation": null,
"required": false,
"hidden": false,
"read_only": false,
"sort_order": 0
},
{
"id": 27,
"type": "text",
"name": "state_region",
"label": "State/Region",
"description": null,
"value": null,
"validation": null,
"required": false,
"hidden": false,
"read_only": false,
"sort_order": 0
},
{
"id": 28,
"type": "single_choice",
"name": "country",
"label": "Country",
"description": null,
"value": null,
"validation": null,
"required": false,
"hidden": false,
"read_only": false,
"sort_order": 0
},
{
"id": 36,
"type": "text",
"name": "mobile_phone_number",
"label": "Mobile phone number",
"description": null,
"value": null,
"validation": null,
"required": false,
"hidden": false,
"read_only": false,
"sort_order": 0
},
{
"id": 38,
"type": "date",
"name": "date_of_birth",
"label": "Date of Birth",
"description": null,
"value": null,
"validation": "date_before_tomorrow",
"required": false,
"hidden": false,
"read_only": false,
"sort_order": 0
}
],
"custom_fields": [
{
"id": 13,
"type": "text",
"name": "something_other_custom",
"label": "Something other custom",
"description": null,
"value": null,
"validation": null,
"required": false,
"hidden": false,
"read_only": false,
"sort_order": 0
}
],
"created_at": "2015-02-24 12:34:56",
"updated_at": "2015-02-24 12:34:56",
"latest_activity_at": null,
"social_profile": {},
"consent": {
"email": {
"consent_given": false,
"updated_at": "2019-04-21 09:51:29"
},
"letter": {
"consent_given": false,
"updated_at": "2019-04-28 09:51:29"
},
"call": {
"consent_given": null,
"updated_at": "2019-04-20 09:51:29"
},
"sms": {
"consent_given": null,
"updated_at": null
}
}
}
],
"case_id": "da79fcb1-4fc3-3250-9206-e38eff52bf1b",
"relations_path_name": "Case type",
"type": "activity-incoming",
"sender": "demo@example.com",
"from": [
{
"email_address": "eRomaguera@Koelpin.com",
"contact": {
"id": "068c7b4e-0bf5-3b97-9978-2be606e83df2",
"name": "Anton Dalsgaard"
},
"account": {
"id": "76f3b0b7-5026-36d9-bdd3-622e27a2a917",
"name": "Sandberg A/S"
}
}
],
"recipients": [
{
"email_address": "eRomaguera@Koelpin.com",
"opened_at": "2015-02-03 12:34:56",
"clicked_at": "2015-02-03 12:34:56"
},
{
"email_address": "Mariam.Cartwright@Cruickshank.info",
"opened_at": "2015-02-03 12:34:56",
"clicked_at": "2015-02-03 12:34:56"
},
{
"email_address": "Luciano.Reichert@Erdman.com",
"opened_at": "2015-02-03 12:34:56",
"clicked_at": "2015-02-03 12:34:56",
"contact": {
"id": "068c7b4e-0bf5-3b97-9978-2be606e83df2",
"name": "Anton Dalsgaard"
},
"account": {
"id": "76f3b0b7-5026-36d9-bdd3-622e27a2a917",
"name": "Sandberg A/S"
}
}
],
"cc": [
{
"email_address": "Welch.Lessie@Kris.info",
"opened_at": "2015-02-03 12:34:56",
"clicked_at": "2015-02-03 12:34:56"
},
{
"email_address": "OConnell.Tressa@Lemke.com",
"opened_at": "2015-02-03 12:34:56",
"clicked_at": "2015-02-03 12:34:56"
},
{
"email_address": "aNikolaus@Nikolaus.biz",
"opened_at": "2015-02-03 12:34:56",
"clicked_at": "2015-02-03 12:34:56",
"contact": {
"id": "068c7b4e-0bf5-3b97-9978-2be606e83df2",
"name": "Anton Dalsgaard"
},
"account": {
"id": "76f3b0b7-5026-36d9-bdd3-622e27a2a917",
"name": "Sandberg A/S"
}
}
],
"bcc": [
{
"email_address": "xFadel@Walter.info",
"opened_at": "2015-02-03 12:34:56",
"clicked_at": "2015-02-03 12:34:56"
},
{
"email_address": "wBalistreri@Walker.com",
"opened_at": "2015-02-03 12:34:56",
"clicked_at": "2015-02-03 12:34:56",
"contact": {
"id": "068c7b4e-0bf5-3b97-9978-2be606e83df2",
"name": "Anton Dalsgaard"
},
"account": {
"id": "76f3b0b7-5026-36d9-bdd3-622e27a2a917",
"name": "Sandberg A/S"
}
}
],
"subject": "When the procession came opposite.",
"attachments": null,
"content": "Majesty,' said Alice aloud, addressing nobody in particular. 'She'd soon fetch it here, lad!--Here, put 'em up at this corner--No, tie 'em together first--they don't reach half high enough yet--Oh!.",
"parsed": {
"fragments": [
{
"content": "Majesty,' said Alice aloud, addressing nobody in particular. 'She'd soon fetch it here, lad!--Here, put 'em up at this corner--No, tie 'em together first--they don't reach half high enough yet--Oh!.",
"is_hidden": false,
"is_signature": false,
"is_quoted": false
}
],
"visible_text": "Majesty,' said Alice aloud, addressing nobody in particular. 'She'd soon fetch it here, lad!--Here, put 'em up at this corner--No, tie 'em together first--they don't reach half high enough yet--Oh!."
},
"body": "<html><head></head><body>Majesty,' said Alice aloud, addressing nobody in particular. 'She'd soon fetch it here, lad!--Here, put 'em up at this corner--No, tie 'em together first--they don't reach half high enough yet--Oh!.</body></html>",
"sent_at": "2015-02-03 12:34:56",
"created_at": "2015-02-03 12:34:56",
"updated_at": "2015-02-03 12:34:56"
}