{ "info": { "_postman_id": "512695aa-9b55-4e6c-9300-417cc90bb43b", "name": "Email API collection", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "37198385", "_collection_link": "https://www.postman.com/zoho-emailapi-b1/zoho-campaigns-email-api/collection/lhb7bxz/email-api-collection?action=share&source=collection_link&creator=37198385" }, "item": [ { "name": "v1 - OAuth", "item": [ { "name": "Transmission", "item": [ { "name": "Send Email", "item": [ { "name": "A simple request", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"transmission_name\": \"My first Email API Campaign\",\n \"recipients\": [\n {\n \"address\": \"john.doe@zylker.com\",\n \"name\": \"John Doe\",\n \"additional_data\": {\n \"country\": \"JP\",\n \"ph\": \"1239333320\"\n },\n \"merge_data\": {\n \"first_name\": \"John\"\n }\n },\n ],\n \"content\": {\n \"from\": {\n \"address\": \"aron.ea@zylker.com\",\n \"name\": \"Aaron\"\n },\n \"subject\": \"Hello $[first_name|Customer]$\",\n \"html\": \"
Welcome $[first_name|Customer]$, your content goes here\",\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{zoho-campaigns-domain-x}}/emailapi/v1/transmission", "protocol": "https", "host": [ "{{zoho-campaigns-domain-x}}" ], "path": [ "emailapi", "v1", "transmission" ] } }, "response": [ { "name": "A simple request", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"transmission_name\": \"My first Email API Campaign\",\n \"recipients\": [\n {\n \"address\": \"john.doe@zylker.com\",\n \"name\": \"John Doe\",\n \"additional_data\": {\n \"country\": \"JP\",\n \"ph\": \"1239333320\"\n },\n \"merge_data\": {\n \"first_name\": \"John\"\n }\n },\n ],\n \"content\": {\n \"from\": {\n \"address\": \"aron.ea@zylker.com\",\n \"name\": \"Aaron\"\n },\n \"subject\": \"Hello $[first_name|Customer]$\",\n \"html\": \"Welcome $[first_name|Customer]$, your content goes here\",\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://campaigns.zoho.com/emailapi/v1/transmission", "protocol": "https", "host": [ "campaigns", "zoho", "com" ], "path": [ "emailapi", "v1", "transmission" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "ZGS" }, { "key": "Date", "value": "Tue, 16 Jul 2024 06:44:59 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Content-Length", "value": "170" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "Cache-Control", "value": "private,no-cache,no-store,max-age=0,must-revalidate" }, { "key": "Pragma", "value": "no-cache" }, { "key": "Expires", "value": "Thu, 01 Jan 1970 00:00:00 GMT" }, { "key": "X-Frame-Options", "value": "SAMEORIGIN" }, { "key": "Strict-Transport-Security", "value": "max-age=63072000" } ], "cookie": [], "body": "{\n \"rejected_recipients\": 0,\n \"accepted_recipients\": 1,\n \"response\": {\n \"code\": 200001,\n \"message\": \"Your transmission has been scheduled successfully\"\n },\n \"transmission_id\": \"1093639000422588002\"\n}" } ] }, { "name": "With Template ID", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"transmission_name\": \"My first Email API Campaign\",\n \"recipients\": [\n {\n \"address\": \"john.doe@zylker.com\",\n \"name\": \"John Doe\",\n \"additional_data\": {\n \"country\": \"JP\",\n \"ph\": \"1239333320\"\n },\n \"merge_data\": {\n \"first_name\": \"John\"\n }\n },\n ],\n \"content\": {\n \"from\": {\n \"address\": \"aron.ea@zylker.com\",\n \"name\": \"Aaron\"\n },\n \"subject\": \"Hello $[first_name|Customer]$\",\n \"template_id\": \"1093639000412559078\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{zoho-campaigns-domain-x}}/emailapi/v1/transmission", "protocol": "https", "host": [ "{{zoho-campaigns-domain-x}}" ], "path": [ "emailapi", "v1", "transmission" ] } }, "response": [ { "name": "With Template ID", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"transmission_name\": \"My first Email API Campaign\",\n \"recipients\": [\n {\n \"address\": \"john.doe@zylker.com\",\n \"name\": \"John Doe\",\n \"additional_data\": {\n \"country\": \"JP\",\n \"ph\": \"1239333320\"\n },\n \"merge_data\": {\n \"first_name\": \"John\"\n }\n },\n ],\n \"content\": {\n \"from\": {\n \"address\": \"aron.ea@zylker.com\",\n \"name\": \"Aaron\"\n \n },\n \"subject\": \"Hello $[first_name|Customer]$\",\n \"template_id\": \"1093639000412559078\"\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://campaigns.zoho.com/emailapi/v1/transmission", "protocol": "https", "host": [ "campaigns", "zoho", "com" ], "path": [ "emailapi", "v1", "transmission" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "ZGS" }, { "key": "Date", "value": "Tue, 16 Jul 2024 06:57:22 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Content-Length", "value": "170" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "Cache-Control", "value": "private,no-cache,no-store,max-age=0,must-revalidate" }, { "key": "Pragma", "value": "no-cache" }, { "key": "Expires", "value": "Thu, 01 Jan 1970 00:00:00 GMT" }, { "key": "X-Frame-Options", "value": "SAMEORIGIN" }, { "key": "Strict-Transport-Security", "value": "max-age=63072000" } ], "cookie": [], "body": "{\n \"rejected_recipients\": 0,\n \"accepted_recipients\": 1,\n \"response\": {\n \"code\": 200001,\n \"message\": \"Your transmission has been scheduled successfully\"\n },\n \"transmission_id\": \"1093639000422588055\"\n}" } ] }, { "name": "With Recipient list ID", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"transmission_name\": \"ea_test_1\",\n \"recipient_list_id\": \"1093639000000046001\",\n \"content\": {\n \"from\": {\n \"address\": \"aron.ea@zylker.com\",\n \"name\": \"Aaron\"\n },\n \"subject\": \"EA test 1\",\n \"html\": \"Welcome $[first_name|Customer]$, your content here $[first_name|Customer]$\",\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{zoho-campaigns-domain-x}}/emailapi/v1/transmission", "protocol": "https", "host": [ "{{zoho-campaigns-domain-x}}" ], "path": [ "emailapi", "v1", "transmission" ] } }, "response": [ { "name": "With Recipient list ID", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"campaign_name\": \"ea_test_1\",\n \"recipient_list_id\": \"1093639000000046001\",\n \"content\": {\n \"from\": {\n \"address\": \"aron.ea@zylker.com\",\n \"name\": \"Aaron\"\n },\n \"subject\": \"EA test 1\",\n \"html\": \"Welcome $[first_name|Customer]$, your content here $[first_name|Customer]$\",\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://campaigns.zoho.com/emailapi/v1/transmission", "protocol": "https", "host": [ "campaigns", "zoho", "com" ], "path": [ "emailapi", "v1", "transmission" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "ZGS" }, { "key": "Date", "value": "Tue, 16 Jul 2024 06:55:28 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Content-Length", "value": "170" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "Cache-Control", "value": "private,no-cache,no-store,max-age=0,must-revalidate" }, { "key": "Pragma", "value": "no-cache" }, { "key": "Expires", "value": "Thu, 01 Jan 1970 00:00:00 GMT" }, { "key": "X-Frame-Options", "value": "SAMEORIGIN" }, { "key": "Strict-Transport-Security", "value": "max-age=63072000" } ], "cookie": [], "body": "{\n \"rejected_recipients\": 0,\n \"accepted_recipients\": 5,\n \"response\": {\n \"code\": 200001,\n \"message\": \"Your transmission has been scheduled successfully\"\n },\n \"transmission_id\": \"1093639000422588023\"\n}" } ] }, { "name": "With schedule option", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"transmission_name\": \"My first Email API Campaign\",\n \"recipients\": [\n {\n \"address\": \"john.doe@zylker.com\",\n \"name\": \"John Doe\",\n \"additional_data\": {\n \"country\": \"JP\",\n \"ph\": \"1239333320\"\n },\n \"merge_data\": {\n \"first_name\": \"John\"\n }\n }\n ],\n \"options\": {\n \"schedule_at\": 1728474636000\n },\n \"content\": {\n \"from\": {\n \"address\": \"aron.ea@zylker.com\",\n \"name\": \"Aaron\"\n },\n \"subject\": \"Hello $[first_name|Customer]$\",\n \"html\": \"Welcome $[first_name|Customer]$, your content goes here\",\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{zoho-campaigns-domain-x}}/emailapi/v1/transmission", "protocol": "https", "host": [ "{{zoho-campaigns-domain-x}}" ], "path": [ "emailapi", "v1", "transmission" ] } }, "response": [ { "name": "With schedule option", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"transmission_name\": \"My first Email API Campaign\",\n \"recipients\": [\n {\n \"address\": \"john.doe@zylker.com\",\n \"name\": \"John Doe\",\n \"additional_data\": {\n \"country\": \"JP\",\n \"ph\": \"1239333320\"\n },\n \"merge_data\": {\n \"first_name\": \"John\"\n }\n }\n ],\n \"options\": {\n \"schedule_at\": 1728474636000\n },\n \"content\": {\n \"from\": {\n \"address\": \"aron.ea@zylker.com\",\n \"name\": \"Aaron\"\n },\n \"subject\": \"Hello $[first_name|Customer]$\",\n \"html\": \"Welcome $[first_name|Customer]$, your content goes here\",\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://campaigns.zoho.com/emailapi/v1/transmission", "protocol": "https", "host": [ "campaigns", "zoho", "com" ], "path": [ "emailapi", "v1", "transmission" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "ZGS" }, { "key": "Date", "value": "Tue, 16 Jul 2024 06:55:28 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Content-Length", "value": "170" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "Cache-Control", "value": "private,no-cache,no-store,max-age=0,must-revalidate" }, { "key": "Pragma", "value": "no-cache" }, { "key": "Expires", "value": "Thu, 01 Jan 1970 00:00:00 GMT" }, { "key": "X-Frame-Options", "value": "SAMEORIGIN" }, { "key": "Strict-Transport-Security", "value": "max-age=63072000" } ], "cookie": [], "body": "{\n \"rejected_recipients\": 0,\n \"accepted_recipients\": 1,\n \"response\": {\n \"code\": 200001,\n \"message\": \"Your transmission has been scheduled successfully\"\n },\n \"transmission_id\": \"1093639000422588023\"\n}" } ] }, { "name": "With tracking disabled", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"transmission_name\": \"My first Email API Campaign\",\n \"recipients\": [\n {\n \"address\": \"john.doe@zylker.com\",\n \"name\": \"John Doe\",\n \"additional_data\": {\n \"country\": \"JP\",\n \"ph\": \"1239333320\"\n },\n \"merge_data\": {\n \"first_name\": \"John\"\n }\n }\n ],\n \"options\": {\n \"tracking\": \"disabled\"\n },\n \"content\": {\n \"from\": {\n \"address\": \"aron.ea@zylker.com\",\n \"name\": \"Aaron\"\n },\n \"subject\": \"Hello $[first_name|Customer]$\",\n \"html\": \"Welcome $[first_name|Customer]$, your content goes here\",\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://{{zoho-campaigns-domain-x}}/emailapi/v1/transmission", "protocol": "https", "host": [ "{{zoho-campaigns-domain-x}}" ], "path": [ "emailapi", "v1", "transmission" ] } }, "response": [ { "name": "With tracking disabled", "originalRequest": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"transmission_name\": \"My first Email API Campaign\",\n \"recipients\": [\n {\n \"address\": \"john.doe@zylker.com\",\n \"name\": \"John Doe\",\n \"additional_data\": {\n \"country\": \"JP\",\n \"ph\": \"1239333320\"\n },\n \"merge_data\": {\n \"first_name\": \"John\"\n }\n }\n ],\n \"options\": {\n \"open_tracking\": \"disabled\",\n \"click_tracking\": \"disabled\"\n },\n \"content\": {\n \"from\": {\n \"address\": \"aron.ea@zylker.com\",\n \"name\": \"Aaron\"\n },\n \"subject\": \"Hello $[first_name|Customer]$\",\n \"html\": \"Welcome $[first_name|Customer]$, your content goes here\",\n }\n}", "options": { "raw": { "language": "json" } } }, "url": { "raw": "https://campaigns.zoho.com/emailapi/v1/transmission", "protocol": "https", "host": [ "campaigns", "zoho", "com" ], "path": [ "emailapi", "v1", "transmission" ] } }, "status": "OK", "code": 200, "_postman_previewlanguage": "json", "header": [ { "key": "Server", "value": "ZGS" }, { "key": "Date", "value": "Tue, 16 Jul 2024 06:55:28 GMT" }, { "key": "Content-Type", "value": "application/json" }, { "key": "Content-Length", "value": "170" }, { "key": "Connection", "value": "keep-alive" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "Cache-Control", "value": "private,no-cache,no-store,max-age=0,must-revalidate" }, { "key": "Pragma", "value": "no-cache" }, { "key": "Expires", "value": "Thu, 01 Jan 1970 00:00:00 GMT" }, { "key": "X-Frame-Options", "value": "SAMEORIGIN" }, { "key": "Strict-Transport-Security", "value": "max-age=63072000" } ], "cookie": [], "body": "{\n \"rejected_recipients\": 0,\n \"accepted_recipients\": 1,\n \"response\": {\n \"code\": 200001,\n \"message\": \"Your transmission has been scheduled successfully\"\n },\n \"transmission_id\": \"1093639000422588023\"\n}" } ] }, { "name": "With unsubscribe link", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"transmission_name\": \"My first Email API Campaign\",\n \"recipients\": [\n {\n \"address\": \"john.doe@zylker.com\",\n \"name\": \"John Doe\",\n \"additional_data\": {\n \"country\": \"JP\",\n \"ph\": \"1239333320\"\n },\n \"merge_data\": {\n \"first_name\": \"John\"\n }\n }\n ],\n \"options\": {\n \"tracking\": \"disabled\"\n },\n \"content\": {\n \"from\": {\n \"address\": \"aron.ea@zylker.com\",\n \"name\": \"Aaron\"\n },\n \"subject\": \"Hello $[first_name|Customer]$\",\n \"html\": \"Welcome $[first_name|Customer]$, your content goes here