SMTP Accounts
Connect email accounts (Gmail, Outlook, or raw SMTP) for sending campaigns.
GET
/smtpList all connected email accounts with warmup status and daily limits.
POST
/smtp/connectConnect 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-rawConnect 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/urlGet the Google OAuth consent URL (backend builds it with correct client_id).
DELETE
/smtp/:idDisconnect and delete an email account. Revokes OAuth tokens.