Senders

Send from any mailbox over SMTP, read replies over IMAP; both logins are checked before anything is stored

PUT
/v1/senders/{id}/channels/email

Replaces the sender email channel, whatever it was before. Passwords are encrypted at rest and never returned. 422 with SMTP_AUTH_FAILED, IMAP_AUTH_FAILED, SMTP_UNREACHABLE, IMAP_UNREACHABLE, SMTP_REFUSED or IMAP_REFUSED when a login fails.

Authorization

projectKey
headerAuthorizationBearer <token>

A project API key (sk_live_…) with read, enroll or admin scope.

Path Parameters

id*string
Length1 <= length <= 128

Request Body

application/json
  1. body
provider*"smtp"
Value in"smtp"
from?string

The address mail goes out from. Defaults to the SMTP user when that is an address, else the sender email.

Match^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
Formatemail
Lengthlength <= 320
smtp*
imap*

Response Body

Default Response

application/json
  1. response
success*true
Value intrue
data*
meta*
curl -X PUT 'http://localhost:8080/v1/senders/string/channels/email' \  -H 'Content-Type: application/json' \  -d '{  "provider": "smtp",  "smtp": {    "host": "string",    "port": 1,    "secure": true,    "user": "string",    "password": "string"  },  "imap": {    "host": "string",    "port": 1,    "secure": true,    "user": "string",    "password": "string"  }}'
{  "success": true,  "data": {    "id": "string",    "senderId": "string",    "projectId": "string",    "connectionId": "string",    "channel": "string",    "address": "string",    "status": "string",    "dailyLimit": -9007199254740991,    "weeklyLimit": -9007199254740991,    "minGapSeconds": -9007199254740991,    "optedInAt": "2019-08-24T14:15:22Z",    "config": {      "property1": null,      "property2": null    },    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "meta": {    "request_id": "string"  }}