Connect SendGrid Mailbox

Connect a mailbox (campaign) that sends through SendGrid. SendGrid handles outbound delivery via its API, while IMAP is used for the reply inbox — so you supply your SendGrid SMTP credentials alongside standard IMAP settings for the receiving side. On success, Mailivery returns the new campaign object with its id, which you'll use for all subsequent warm-up operations.

Body Params
string
required
length ≤ 255
string
length ≤ 255
string
required
length ≤ 255
string
length ≤ 255

If you do not pass this parameter in the request, Mailivery will assign the campaign to the account owner.

int32
required
0 to 2000
string
required
string
required
length ≤ 255
password
required
length ≤ 255
enum
required
Allowed:
string
required
length ≤ 255
int32
required
0 to 100
password
required
length ≤ 255
int32
enum
Defaults to 587

SMTP port for SendGrid (optional). Defaults to 587 if not provided. Allowed values: 465 (SSL) or 587 (TLS).

Allowed:
boolean
Defaults to false
enum
Defaults to normal
Allowed:
string
Defaults to America/Chicago

If no timezone is passed, Mailivery will use the default timezone set at the team level.

enum
Allowed:
string
enum
Defaults to inherit

Optional. Warm-up audience for the mailbox being created.

  • all -> warm up with both business and consumer mailboxes.
  • business -> warm up with business mailboxes only.
  • consumer -> warm up with consumer mailboxes only.
  • inherit -> follow the team-level setting. This is the default when the field is omitted.
Allowed:
string
enum
Defaults to inherit

Optional. Warm-up topics for the mailbox being created. See the Warm-Up Topics endpoints for the catalogue and the selection rules.

  • inherit -> follow the team setting. This is the default when the field is omitted.
  • general -> General content only for this mailbox. Send no warmup_topic_selections.
  • custom -> use warmup_topic_selections, which is then required.

To confirm what was saved, call GET /campaigns/{campaignId}/preferences/warmup-topics with the new id.

Allowed:
warmup_topic_selections
array of objects | null

Required when warmup_topic_mode is custom; omit it, or send [], otherwise. Sending industries in it without warmup_topic_mode returns 400 VALIDATION_ERROR.

Same rules as PATCH /campaigns/{campaignId}/preferences/warmup-topics: at most 5 industries with 1 to 5 topics each, names exactly as GET /warmup-topics returns them. Every industry must be available: true, because a new mailbox has nothing saved yet.

In multipart/form-data, send it in bracket notation, not as a JSON-encoded string (a string is rejected):
warmup_topic_selections[0][industry]=marketing_agencies and warmup_topic_selections[0][topics][]=Campaign performance reporting.

warmup_topic_selections
string | null
Headers
string
required

Any unique string, timestamp, or UUID for logging.

Responses

warmup_topic_mode was general or custom, but warm-up topic selection is not enabled for the team the new mailbox inherits from (the owner_email user's team when owner_email is sent, otherwise yours). No mailbox is created. Omit the topic fields, or send inherit, to create the mailbox with the team setting.

Language
Credentials
Bearer
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json