API index guide

API or Application Programming Interface acts as a connection between applications or softwares, by allowing them to adopt specific functionalities (navigation, emails, payment etc.) within their application. One such functionality that application owners can adopt is transactional email-sending and related actions. This page lists all the APIs available in ZeptoMail. 

The total email size which includes your email headers, body content, inline images, and attachments should NOT exceed 15 MB.

Email-sending API

Method name Method typeURL
Send single email POST/v1.1/email
Send batch emailPOST/v1.1/email/batch 
Send single email with templatePOST/v1.1/email/template 
Send batch email with templatePOST/v1.1/email/template/batch 

File cache API

Method nameMethod typeURL
Upload File cache POST/v1.1/files?name=logo.jpg 

Suppression list API

Method nameMethod typeURLOAuth scopeOperation
Add a suppression list entryPOST/v1.1/suppressions/{type} Zeptomail.Suppressions.AllCREATE
Edit a suppression list entryPUT/v1.1/suppressions/{type} UPDATE
Fetch suppression list entriesGET/v1.1/suppressions/{type} READ
Delete a suppression list entryDELETE/v1.1/suppressions/{type} DELETE

Templates API

Method nameMethod typeURLOAuth scopeOperation
Add a new templatePOST/v1.1/agents/{agent-alias}/templates Zeptomail.MailTemplates.AllCREATE
Edit an existing templatesPUT/v1.1/agents/{agent-alias}/templates/{template-key} UPDATE
Fetch single templateGET/v1.1/agents/{agent-alias}/templates{template-key} READ
Fetch multiple templatesGET/v1.1/agents/{agent-alias}/templates?offset=*&limit=* READ
Delete a templateDELETE/v1.1/agents/{agent-alias}/templates{template-key} DELETE

Domains API

Method nameMethod typeURLOAuth scopeOperation
Add a new domainPOST/v1.1/domainsZeptomail.Domains.AllCREATE
Edit domainPUT/v1.1/domains/{domain_key}UPDATE
List all domainsGET/v1.1/domainsREAD
List specific domainsGET/v1.1/domains/{domain_key}READ
Validate domain verificationPUT/v1.1/domains/{domain_key}/verifyUPDATE
Delete domainDELETE/v1.1/domains/{domain_key}DELETE

Agents API

Method nameMethod typeURLOAuth scopeOperation
Add a new AgentPOST/v1.1/agentsZeptomail.Agents.AllCREATE
Edit existing AgentPUT/v1.1/agents/{agentkey}UPDATE
List all AgentsGET/v1.1/agentsREAD
Generate SMTP short passwordPOST/v1.1/agents/{agentkey}/short-passwordsCREATE
List SMTP short passwordGET/v1.1/agents/{agentkey}/short-passwordsREAD
Delete SMTP short passwordDELETE/v1.1/agents/{agentkey}/short-passwords/{{id}}DELETE
Generate API keysPOST/v1.1/agents/{agentkey}/apikeysCREATE
List API keysGET/v1.1/agents/{agentkey}/apikeysREAD
Delete API keysDELETE/v1.1/agents/{agentkey}/apikeys/{{id}}DELETE

Email logs API

Method nameMethod typeURLOAuth scopeOperation
Get all email logsGET/v1.1/emailZeptomail.email.AllREAD
Get specific email logsGET/v1.1/email/email-reference/{email-reference}READ

API error codes: The commonly intercepted errors while using APIs can be found here. This will help you better handle them.