/projects/{project_id}/auth/email_serverRetrieve email server configurationDeprecated. Use /projects/{project_id}/branches/{branch_id}/auth/email_provider instead. Removal scheduled for March 1, 2026.
Parameters
project_idstringpathrequiredThe Neon project ID
Responses
oneOf · 2 options
hoststringrequiredHostname of the email server.
passwordstringrequiredOn GET, returned redacted (empty) for ordinary callers, while callers with project-credential read permission receive the stored password — do not assume this field is empty. Update (PATCH) responses always return it redacted (empty) regardless of permission. Provide a value on update to set or rotate the password.
portintegerrequiredTCP port of the SMTP server. Common values: 25 (SMTP), 465 (SMTPS), 587 (submission).
sender_emailstringrequiredEmail address used as the From address on outgoing auth emails.
sender_namestringrequiredDisplay name shown as the sender in outgoing emails.
usernamestringrequiredUsername for authenticating with the SMTP server.
{
"sender_email": "string",
"sender_name": "string",
"type": "shared"
}codestringrequiredmessagestringrequiredError message
request_idstringUnique identifier for the request, useful for debugging. You can set this value manually by including an `X-Request-ID` header in the request. If not provided, the value will be generated automatically.
{
"code": "",
"message": "string",
"request_id": "string"
}