Senders
Send from any mailbox over SMTP, read replies over IMAP; both logins are checked before anything is stored
PUT
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.
projectKeyheader
AuthorizationBearer <token>A project API key (sk_live_…) with read, enroll or admin scope.
id*stringLength
1 <= length <= 128application/json- body
provider*"smtp"Value in
"smtp"from?stringThe 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,}$Format
emailLength
length <= 320smtp*imap*Default Response
application/json- response
success*trueValue in
truedata*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" }}