Zoho Mail offers secure business email for your organization. Host your business email on a secure, encrypted, privacy-guaranteed, and ad-free email service, and add a professional touch to every email that goes out.
Go to siteThe Zoho Mail API equips you with the ability to automate actions on emails, manage mailboxes, and interact with your Zoho Mail account programmatically. With Pipedream, you can trigger workflows on new emails, send emails automatically, and connect Zoho Mail to thousands of other services, streamlining communication processes, enhancing productivity, and enabling efficient data management.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zoho_mail: {
type: "app",
app: "zoho_mail",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://mail.${this.zoho_mail.$auth.base_api_uri}/api/accounts`,
headers: {
"Authorization": `Zoho-oauthtoken ${this.zoho_mail.$auth.oauth_access_token}`,
},
})
},
})
Email to Task Conversion: Create tasks in project management tools like Trello or Asana when receiving emails with specific keywords or from certain senders. This can automate the process of tracking important requests or action items coming through your email.
Support Ticket Generation: On receiving an email with a support query or issue report, instantly generate a ticket in a customer support platform like Zendesk or Freshdesk. This helps in ensuring that customer issues are addressed promptly and not lost in the shuffle of an inbox.
Email Campaign Analytics: After sending out a marketing campaign, you might want to track responses and engagement. Use the API to tag and categorize responses, then send this data to analytics tools like Google Sheets or a BI platform to measure campaign effectiveness.
Once you've connected your account, you can run your workflow and fetch data from the API. You can change any of the code associated with this step, changing the API endpoint you'd like to retrieve data from, or modifying the results in any way.
Issues Connecting My Account: IP Allowlist
If your Zoho security policy includes an IP Allowlist, update it to connect your account:
44.223.89.56
- 44.223.89.63
.After connecting your account, make sure to run the workflow within a VPC.
Zoho Mail uses OAuth authentication. When you connect your Zoho Mail account, Pipedream will open a popup window where you can sign into Zoho Mail and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zoho Mail API.
Pipedream requests the following authorization scopes when you connect your account:
ZohoMail.accounts.read
ZohoMail.accounts.update
ZohoMail.organization.subscriptions.read
ZohoMail.organization.subscriptions.update
ZohoMail.organization.spam.read
ZohoMail.organization.accounts.read
ZohoMail.organization.accounts.create
ZohoMail.organization.accounts.update
ZohoMail.messages.create
ZohoMail.messages.read
ZohoMail.messages.update
ZohoMail.messages.delete
ZohoMail.attachments.create
ZohoMail.attachments.read
ZohoMail.attachments.update
ZohoMail.attachments.delete
ZohoMail.organization.groups.create
ZohoMail.organization.groups.read
ZohoMail.organization.groups.update
ZohoMail.organization.groups.delete
ZohoMail.tags.create
ZohoMail.tags.read
ZohoMail.tags.update
ZohoMail.tags.delete
ZohoMail.folders.create
ZohoMail.folders.read
ZohoMail.folders.update
ZohoMail.folders.delete
ZohoMail.organization.domains.create
ZohoMail.organization.domains.read
ZohoMail.organization.domains.update
ZohoMail.organization.domains.delete
ZohoMail.tasks.create
ZohoMail.tasks.read
ZohoMail.notes.all
GET
https://accounts.{{custom_fields.base_api_uri}}/oauth/v2/auth
?
client_id={{oauth.client_id}}
&
redirect_uri={{oauth.redirect_uri}}
&
state={{oauth.state}}
&
response_type=code
&
scope={{oauth.space_separated_scopes}}
&
prompt=consent
&
access_type=offline
POST
https://accounts.{{custom_fields.base_api_uri}}/oauth/v2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
redirect_uri={{oauth.redirect_uri}}
&
grant_type=authorization_code
&
code={{oauth.code}}
POST
https://accounts.{{custom_fields.base_api_uri}}/oauth/v2/token
content-type: application/x-www-form-urlencoded
accept: application/json
client_id={{oauth.client_id}}
&
client_secret={{oauth.client_secret}}
&
grant_type=refresh_token
&
refresh_token={{oauth.refresh_token}}