Email Accounts
Connect Email Account
POST
/v1/email-accountsPOST
/v1/email-accounts
Connect Email Account
Connect a Gmail or Microsoft email account using OAuth tokens obtained by the partner through their own OAuth flow. Creates the account with all warmup defaults configured and ready to start warmup.
Authorization
X-Api-Key<token>
In: header
Request Body
application/jsonRequiredfromEmailstring
Example: "user@example.com"fromNamestring
Example: "John Doe"typestring
Example: "gmail"Value in: "gmail" | "microsoft" | "smtp"accessTokenstring
Example: "ya29.access_token"refreshTokenstring
Example: "1//refresh_token"expiresInnumber
Example: 3599emailServiceProviderstring
Example: "other"Value in: "gmail" | "microsoft" | "gsuite" | "o365" | "other" | "yahoo" | "zoho" | "godaddy" | "yandex" | "sendgrid" | "mailgun" | "amazonses"smtpobject
imapobject
Responses
201
201 response
{
"emailAccountId": 123,
"fromEmail": "user@gmail.com",
"fromName": "John Doe",
"type": "gmail",
"status": "active"
}