Get the instance's way of sending e-mail
GET
/api/platform/mail/settings
const url = 'https://forge.example.com/api/platform/mail/settings';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://forge.example.com/api/platform/mail/settings \ --header 'Authorization: Bearer <token>'source is console once an operator administrator set it here, which then wins, or settings, the server’s Email settings, which apply while nothing is set here. settings is the way in effect: method (off, ses or smtp), the from address and name, the reply address, the operator addresses, the SES Region and access key id, and the SMTP server, port, smtpSecurity (starttls, tls or none) and user name. Of the SES secret key and the SMTP password only whether one is set, and by whom and when; never the secret. Send version back with a change.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”OK
Media typeapplication/json
object
source
required
string
settings
required
object
method
required
string
fromAddress
required
string
fromName
required
string
replyTo
required
null | string
operatorAddresses
required
Array<string>
sesRegion
required
null | string
sesAccessKey
required
null | string
sesSecretKey
required
smtpHost
required
null | string
smtpPort
required
null | integer | string format: int32
smtpSecurity
required
null | string
smtpUser
required
null | string
smtpPassword
required
setAt
required
null | string format: date-time
canKeepSecrets
required
boolean
version
required
integer | string format: int32
Example generated
{ "source": "example", "settings": { "method": "example", "fromAddress": "example", "fromName": "example", "replyTo": "example", "operatorAddresses": [ "example" ], "sesRegion": "example", "sesAccessKey": "example", "sesSecretKey": { "set": true, "setBy": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "displayName": "example" }, "setAt": "2026-04-15T12:00:00Z" }, "smtpHost": "example", "smtpPort": 1, "smtpSecurity": "example", "smtpUser": "example", "smtpPassword": { "set": true, "setBy": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "displayName": "example" }, "setAt": "2026-04-15T12:00:00Z" }, "setBy": { "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "displayName": "example" }, "setAt": "2026-04-15T12:00:00Z" }, "canKeepSecrets": true, "version": 1}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}