Generate SMTP short passwords

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Generate a new SMTP short password for a specific Mail Agent.

Request URL

https://cpaas.zoho.com/v1.1/mailagents/{mailagentkey}/short-passwords Copied!

Scope

Zeptomail.MailAgents.CREATECopied!
(or)
Zeptomail.MailAgents.ALLCopied!

Request Parameters

- Path Parameters

mailagentkeystringMandatory

Unique key of the Mail Agent.

Example
123456abcd78

Sample Request

Curl
Java
Python
Deluge
Copied!
curl --request POST \
  --url https://cpaas.zoho.com/v1.1/mailagents/{mailagentkey}/short-passwords \
  --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52'

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Show Sub-Attributes
dataJSON Object
Show Sub-Attributes
created_timestringread-only
Example
2025-06-12T11:50:00Z
passwordstringread-only
Example
yyyy
idstringread-only
Example
smtp-002
statusstringread-only
Example
success

- HTTP code 400

Response Body - application/json
JSON Object
Show Sub-Attributes
errorJSON Object
Show Sub-Attributes
codestringread-only
Example
MA_107
messagestringread-only
Example
Mail agent name already exists
statusstringread-only
Example
failure

Sample Response: HTTP 200

Copied!
  {
    "data": {
      "created_time": "2025-06-12T11:50:00Z",
      "password": "yyyy",
      "id": "smtp-002"
    },
    "status": "success"
  }
                
▼ Show full

Sample Response: HTTP 400

Copied!
  {
    "error": {
      "code": "MA_107",
      "message": "Mail agent name already exists"
    },
    "status": "failure"
  }
                
▼ Show full