---
title: "Generate SMTP short passwords"
method: POST
path: "/mailagents/{mailagentkey}/short-passwords"
tags: ["agents"]
---

# Generate SMTP short passwords

`POST /mailagents/{mailagentkey}/short-passwords`

## Request

- Base URL: `https://cpaas.zoho.com/v1.1`
- URL: `https://cpaas.zoho.com/v1.1/mailagents/{mailagentkey}/short-passwords`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://accounts.zoho.com/oauth/v2/auth`
    - Token URL: `https://accounts.zoho.com/oauth/v2/token` scopes: `Zeptomail.MailAgents.CREATE`
  - OAuth 2
    - Authorization code: `https://accounts.zoho.com/oauth/v2/auth`
    - Token URL: `https://accounts.zoho.com/oauth/v2/token` scopes: `Zeptomail.MailAgents.ALL`

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

## Path parameters

- `mailagentkey` string, required

## Response `200`

SMTP short password generated successfully.

- object
  - `data` object
    - `created_time` string
    - `password` string
    - `id` string
  - `status` string

## Other responses

- `400`: Bad Request

---

[API](https://skmtc.dev/zoho/apis/zoho-cpaas.md) - [All operations](https://skmtc.dev/zoho/apis/zoho-cpaas/llms.txt) - [OpenAPI document](https://skmtc.dev/zoho/apis/zoho-cpaas/revisions/f0858a38e8b0?raw)
