Skip to content

See how the instance sends e-mail

GET
/api/platform/mail
curl --request GET \
--url https://forge.example.com/api/platform/mail \
--header 'Authorization: Bearer <token>'

The provider (ses, smtp, or log when nothing is sent), where it was set (source: console or settings), its Region, or the SMTP host, port and security, the from and reply addresses, the support address and the operator addresses; what the provider says about the sending account, such as whether it may mail anyone yet, or the provider’s own words when it would not say; when a message was last sent and the last refusal in the provider’s or server’s own words; the queue in figures; and how many addresses are not mailed again, with the last reading of the provider’s list. Never a key.

OK

Media typeapplication/json
object
provider
required
string
region
required
null | string
from
required
string
replyTo
required
null | string
delivers
required
boolean
supportAddress
required
null | string
operatorAddresses
required
Array<string>
account
required
One of:
null
accountProblem
required
null | string
queue
required
object
waiting
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
sentLastDay
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
failedLastWeek
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
heldBackLastWeek
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
suppressed
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
suppressionsRead
required
One of:
null
source
string
host
null | string
port
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
security
null | string
problem
null | string
lastSentAt
null | string format: date-time
lastRefusal
One of:
null

Example generated

{
"provider": "example",
"region": "example",
"from": "example",
"replyTo": "example",
"delivers": true,
"supportAddress": "example",
"operatorAddresses": [
"example"
],
"account": {
"productionAccess": true,
"sendingEnabled": true,
"maxPerDay": 1,
"sentLastDay": 1,
"maxPerSecond": 1
},
"accountProblem": "example",
"queue": {
"waiting": 1,
"sentLastDay": 1,
"failedLastWeek": 1,
"heldBackLastWeek": 1
},
"suppressed": 1,
"suppressionsRead": {
"at": "2026-04-15T12:00:00Z",
"added": 1,
"error": "example"
},
"source": "example",
"host": "example",
"port": 1,
"security": "example",
"problem": "example",
"lastSentAt": "2026-04-15T12:00:00Z",
"lastRefusal": {
"at": "2026-04-15T12:00:00Z",
"words": "example"
}
}

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"
}