SMTP Accounts

Connect email accounts (Gmail, Outlook, or raw SMTP) for sending campaigns.

GET/smtp

List all connected email accounts with warmup status and daily limits.

POST/smtp/connect

Connect a Gmail or Outlook account via OAuth. Supports both web (PKCE) and native mobile flows.

// Web flow (PKCE)
{
  "provider": "gmail",
  "authCode": "4/0AeoWu...",
  "displayName": "Work Gmail",
  "redirectUri": "https://kashew.ai/outreach/accounts",
  "codeVerifier": "abc123..."
}

// Mobile flow (native SDK)
{
  "provider": "gmail",
  "authCode": "4/0AeoWu...",
  "displayName": "Work Gmail"
}
POST/smtp/connect-raw

Connect any email provider via raw SMTP credentials (password auth).

{
  "displayName": "Office Email",
  "emailAddress": "sales@company.com",
  "smtpHost": "smtp.company.com",
  "smtpPort": 587,
  "smtpUsername": "sales@company.com",
  "smtpPassword": "app-password-here"
}
GET/smtp/auth/gmail/url

Get the Google OAuth consent URL (backend builds it with correct client_id).

DELETE/smtp/:id

Disconnect and delete an email account. Revokes OAuth tokens.