POST
/
v1
/
notifications
/
email
curl --request POST \
  --url https://api.base39.io/v1/notifications/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "mail": {
    "to": "destinatario@exemplo.com",
    "from": "remetente@exemplo.com",
    "subject": "Saudações!",
    "text": "Olá, mundo!"
  },
  "transport": {
    "host": "smtp.exemplo.com",
    "port": 465,
    "auth": {
      "type": "basic",
      "options": {
        "username": "username",
        "password": "password"
      }
    }
  }
}'
{
  "message": "<string>",
  "messageId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
mail
object
required
transport
object

Configurações de transporte. Caso não informado, irá obter das configurações de notificação

Response

202
application/json
Retorna quando a mensagem foi aceita, sem confirmar o envio da notificação..

Mensagem de retorno de sucesso informando que a mensagem foi aceita para processamento.

message
string
required

Mensagem de retorno

messageId
string
required

Identificador da mensagem