Skip to main content
POST
Connect an IMAP mailbox to a sender profile

Authorizations

Authorization
string
header
required

Access token issued by gs.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Path Parameters

sid
string
required

Sender profile sid (ub_sp_…).

Required string length: 18
Pattern: ^ub_sp_

Body

application/json

Request body of connect_sender_profile_imap_mailbox.

address
string<email>
required

The mailbox address to create on gtm.

Maximum string length: 320
connection
object
required

The server settings, both halves required: gtm reads with IMAP and sends with SMTP.

imap_password
string
required

Stored by gtm.service.email, never here. Sent once, on this call.

Maximum string length: 1024
smtp_password
string
required

Stored by gtm.service.email, never here. Often the same value as imap_password, but both are required.

Maximum string length: 1024
display_name
string | null

The From name; null = the address alone.

Maximum string length: 255
backfill_days
integer | null

How many days of existing mail gtm itself pulls from the server at connect; 0 = none, null = the gtm default. history_since is the bound on THIS side, over what gtm holds.

Required range: 0 <= x <= 3650
history_since
string | null

The mailbox's history window: import its mail from this day (YYYY-MM-DD) on, into the inbox and onto the linked people's activity, or nothing older than the connect with now; omitted or null = all of it.

Pattern: ^(now|\d{4}-\d{2}-\d{2})$
history_scope
enum<string> | null

The mailbox's import scope: playtable_people (omitted or null, the default) takes only the threads with a person the workspace keeps in a playtable, all every thread.

Available options:
all,
playtable_people

Response

action success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
action
action
string
required

kebab-case verb; matches the route segment.

item
object | null
required
result
object
required
meta
object
required