Sending accounts
Connect an SMTP/IMAP mailbox
Adds a mailbox by its SMTP and IMAP settings. The connection is checked before it is saved. Gmail and Microsoft 365 mailboxes are connected by members in the app (OAuth). **Required scope:** `accounts:write`
POST
Adds a mailbox by its SMTP and IMAP settings. The connection is checked before it is saved. Gmail and Microsoft 365 mailboxes are connected by members in the app (OAuth).
Required scope: accounts:write
apiKeyheader
AuthorizationBearer <token>A workspace API key (mf_live_…), created under Settings → API keys. Send it as Authorization: Bearer <key>.
application/json- body
email*stringMatch
^(?:[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 <= 254displayName*stringMatch
^\P{Cc}*$Length
1 <= length <= 100smtp*imap*Default Response
application/json- response
data*curl -X POST 'https://api.coldvenue.in/api/v1/accounts/smtp' \ -H 'Content-Type: application/json' \ -d '{ "email": "user@example.com", "displayName": "string", "smtp": { "host": "string", "port": 1, "secure": true, "username": "string", "password": "string" }, "imap": { "host": "string", "port": 1, "secure": true, "username": "string", "password": "string" }}'Example Response202
{ "data": { "id": "string", "email": "string", "displayName": "string", "provider": "gmail", "status": "PENDING", "settings": { "dailyLimit": 1, "minDelaySeconds": 0, "maxDelaySeconds": 0, "signatureHtml": "string" }, "tags": [ "string" ], "lastError": { "category": "string", "message": "string", "at": "string" }, "connectedAt": "string", "lastVerifiedAt": "string", "lastTestSend": { "at": "string", "to": "string", "ok": true, "error": "string" }, "health": { "level": "healthy", "score": 0, "issues": [ { "code": "string", "severity": "string", "message": "string", "action": "string" } ] }, "domain": { "id": "string", "name": "string", "dnsStatus": "string" }, "sendsToday": 0, "campaigns": [ { "id": "string", "name": "string", "status": "string" } ], "createdAt": "string" }}