apistockdocs
API reference/Ops: email

Show how the app sends email

GET/ops/mail

The provider, whether email goes to Mailpit or the provider, and the current sender. Change the sender with `PUT /ops/settings/mail.from_email`.

bearer auth

Responses

200OKapplication/json
deliverystringrequired

mailpit: every email goes to the development inbox; provider: real email

one of "mailpit", "provider"
detailsobjectrequired

Provider configuration from the environment, without secrets

from_emailstringrequired

Runtime setting mail.from_email

from_namestringrequired

Runtime setting mail.from_name

providerstringrequired

Chosen with aps add mail

one of "resend", "smtp"
reply_tostring

Runtime setting mail.reply_to

401Unauthorizedapplication/problem+json
codestringrequired

Stable machine-readable error code

detailstring

Human-readable explanation

errorsarray of object

Field-level validation errors

request_idstring

Correlates with server logs and traces

statusinteger (int64)required

HTTP status code

titlestringrequired

Short summary of the problem type

typestring

URI identifying the problem type

403Forbiddenapplication/problem+json
codestringrequired

Stable machine-readable error code

detailstring

Human-readable explanation

errorsarray of object

Field-level validation errors

request_idstring

Correlates with server logs and traces

statusinteger (int64)required

HTTP status code

titlestringrequired

Short summary of the problem type

typestring

URI identifying the problem type

500Internal Server Errorapplication/problem+json
codestringrequired

Stable machine-readable error code

detailstring

Human-readable explanation

errorsarray of object

Field-level validation errors

request_idstring

Correlates with server logs and traces

statusinteger (int64)required

HTTP status code

titlestringrequired

Short summary of the problem type

typestring

URI identifying the problem type

v0.5
esc
↑↓ move↵ openesc close