Messaging Settings API
- Base URL:
https://email-settings.sls.epilot.io - API Docs: https://docs.epilot.io/api/email-settings
The Messaging Settings API provides comprehensive management of email configurations for epilot organizations.
Quick Startโ
# List available operations
epilot email-settings
# Call an operation
epilot email-settings provisionEpilotEmailAddress
Common Flagsโ
| Flag | Description |
|---|---|
-p key=value | Set a named parameter |
-d '{...}' | Request body JSON |
-H 'Key: Value' | Custom header |
-t, --token <token> | Bearer token for authentication |
--profile <name> | Use a named profile |
-s, --server <url> | Override server base URL |
-i, --include | Include response headers in output |
--json | Output raw JSON (no formatting) |
-v, --verbose | Verbose output (show request details) |
--jsonata <expr> | JSONata expression to transform response |
--definition <file> | Override OpenAPI spec file/URL |
--guided | Prompt for all parameters interactively |
--no-interactive | Disable interactive prompts |
Operationsโ
Email addresses
provisionEpilotEmailAddressโ Provisions or reactivates an epilot-managed email address for the organization.setEmailAddressPrimaryโ Sets the specified email address as the primary address for the organization.getEmailAddressโ Retrieves the details of a specific email address by its ID.updateEmailAddressโ Updates the configuration of an existing email address.deleteEmailAddressโ Permanently deletes an email address from the organization.listEmailAddressesโ Retrieves all email addresses configured for the organization.addEmailAddressโ Adds a new email address to the organization.
Shared inboxes
getSharedInboxโ Retrieves the details of a specific shared inbox by its ID.updateSharedInboxโ Updates the configuration of an existing shared inbox.deleteSharedInboxโ Deletes a shared inbox and reroutes all associated emails to a successor inbox.listSharedInboxesโ Retrieves all shared inboxes configured for the organization.addSharedInboxโ Creates a new shared inbox for the organization.
Inbox buckets
listInboxBucketsโ Retrieves all inbox buckets for the organization.
O365 Outlook Connection
connectOutlookโ Returns the Microsoft authorization URL for Outlook OAuth.getOutlookConnectionStatusโ Returns all Microsoft 365 / Outlook connections for the organization.getCalendarAdminConsentStatusโ Reports whether the caller's organization can connect personal OutlookgetMyCalendarConnectionโ Returns the calling user's personal Outlook calendar connection,disconnectMyCalendarโ Removes the calling user's personal calendar connection.disconnectOutlookโ Removes the Microsoft 365 / Outlook connection for a specific tenant.connectOutlookMailboxโ Connects an Outlook mailbox:disconnectOutlookMailboxโ Disconnects a single Outlook mailbox by email address.startMailboxSyncโ Triggers an Outlook mailbox sync for the specified email address.getMailboxSyncStatusโ Returns the current or latest sync status for the specified mailbox.getMailboxSyncEstimateโ Counts the inbox and sent messages a mailbox sync would import for each timeframe, with the same date filter theretryMailboxSyncโ Retries failed messages from a previous sync execution.cancelMailboxSyncโ Stops the running sync of an Outlook mailbox and marks it CANCELLED.getConnectedOutlookEmailsโ Returns all Outlook email addresses connected to the organization.outlookOAuthCallbackโ Exchanges authorization code for tokens and stores them.
Channels
connectMsTeamsโ Connects Microsoft Teams channel (click-to-call deep links, meetings) for the organization.disconnectMsTeamsโ Disconnects Microsoft Teams channel for the organization.getMsTeamsStatusโ Returns the connection status of the Microsoft Teams channel for the organization.
Custom SMTP
listSmtpConnectionsโ Returns all custom SMTP connections configured for the organization.createSmtpConnectionโ Creates a new custom SMTP connection. Runs a live verify against the SMTP servergetSmtpConnectionโ Returns a single custom SMTP connection by id. The password is never returned.updateSmtpConnectionโ Partial update; omitted fields keep their existing values. The mergeddeleteSmtpConnectionโ Deletes a custom SMTP connection. Messages already sent are unaffected.testSmtpConnectionโ Re-runs a live SMTP verify against the saved configuration (EHLO + AUTH + NOOP + QUIT)listSmtpSendersโ Returns every address registered to send through a custom SMTP connection.connectSmtpSenderโ Registers an address as a sender on a custom SMTP connection:disconnectSmtpSenderโ Removes a sender address: deletes the email address and its binding to the SMTP
Settings
getSettingsโ Retrieves settings of a specific type for the organization.addSettingโ Creates a new setting of the specified type.deleteSettingโ Deletes a setting by its ID and type.updateSettingโ Updates an existing setting identified by its ID.
Domains
getDomainsโ Retrieves all custom email domains for the organization.addDomainโ Adds a custom email domain to the organization.deleteDomainโ Removes a custom email domain from the organization.verifyNameServersโ Verifies that the domain's name server (NS) records are correctly configured.verifyDnsRecordsโ Verifies that the domain's DNS records (MX, TXT, CNAME) are correctly configuredverifyDomainโ Verifies ownership and configuration of a custom email domain.
provisionEpilotEmailAddressโ
Provisions or reactivates an epilot-managed email address for the organization.
PUT /v2/email-settings/email-addresses/epilot:provision
Request Body (required)
Sample Call
epilot email-settings provisionEpilotEmailAddress \
-d '{"address":"mycompany@epilot.cloud"}'
Using stdin pipe:
cat body.json | epilot email-settings provisionEpilotEmailAddress
With JSONata filter:
epilot email-settings provisionEpilotEmailAddress --jsonata '$'
Sample Response
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456",
"address": "sales@yourcompany.com",
"name": "Sales Team",
"user_ids": ["user-123", "user-456"],
"group_ids": ["group-789"],
"default_signature_id": "sig-abc",
"shared_inbox_id": "inbox-xyz",
"is_active": true,
"is_primary": false,
"is_epilot_email_address": false,
"provider": "outlook"
}
setEmailAddressPrimaryโ
Sets the specified email address as the primary address for the organization.
POST /v2/email-settings/email-addresses/primary
Request Body (required)
Sample Call
epilot email-settings setEmailAddressPrimary \
-d '{"address":"sales@yourcompany.com"}'
Using stdin pipe:
cat body.json | epilot email-settings setEmailAddressPrimary
With JSONata filter:
epilot email-settings setEmailAddressPrimary --jsonata '$'
Sample Response
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456",
"address": "sales@yourcompany.com",
"name": "Sales Team",
"user_ids": ["user-123", "user-456"],
"group_ids": ["group-789"],
"default_signature_id": "sig-abc",
"shared_inbox_id": "inbox-xyz",
"is_active": true,
"is_primary": false,
"is_epilot_email_address": false,
"provider": "outlook"
}
getEmailAddressโ
Retrieves the details of a specific email address by its ID.
GET /v2/email-settings/email-addresses/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique identifier of the email address. This can be either the UUID assigned |
when the email address was created, or the email address string itself. |
Sample Call
epilot email-settings getEmailAddress \
-p id=123e4567-e89b-12d3-a456-426614174000
Using positional args for path parameters:
epilot email-settings getEmailAddress 123e4567-e89b-12d3-a456-426614174000
With JSONata filter:
epilot email-settings getEmailAddress -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'
Sample Response
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456",
"address": "sales@yourcompany.com",
"name": "Sales Team",
"user_ids": ["user-123", "user-456"],
"group_ids": ["group-789"],
"default_signature_id": "sig-abc",
"shared_inbox_id": "inbox-xyz",
"is_active": true,
"is_primary": false,
"is_epilot_email_address": false,
"provider": "outlook"
}
updateEmailAddressโ
Updates the configuration of an existing email address.
PUT /v2/email-settings/email-addresses/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique identifier of the email address. This can be either the UUID assigned |
when the email address was created, or the email address string itself. |
Request Body
Sample Call
epilot email-settings updateEmailAddress \
-p id=123e4567-e89b-12d3-a456-426614174000
With request body:
epilot email-settings updateEmailAddress \
-p id=123e4567-e89b-12d3-a456-426614174000 \
-d '{
"name": "Sales Team",
"user_ids": ["user-123", "user-456"],
"group_ids": ["group-789"],
"default_signature_id": "sig-abc",
"shared_inbox_id": "inbox-xyz",
"is_active": true
}'
Using positional args for path parameters:
epilot email-settings updateEmailAddress 123e4567-e89b-12d3-a456-426614174000
Using stdin pipe:
cat body.json | epilot email-settings updateEmailAddress -p id=123e4567-e89b-12d3-a456-426614174000
With JSONata filter:
epilot email-settings updateEmailAddress -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'
Sample Response
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456",
"address": "sales@yourcompany.com",
"name": "Sales Team",
"user_ids": ["user-123", "user-456"],
"group_ids": ["group-789"],
"default_signature_id": "sig-abc",
"shared_inbox_id": "inbox-xyz",
"is_active": true,
"is_primary": false,
"is_epilot_email_address": false,
"provider": "outlook"
}
deleteEmailAddressโ
Permanently deletes an email address from the organization.
DELETE /v2/email-settings/email-addresses/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique identifier of the email address. This can be either the UUID assigned |
when the email address was created, or the email address string itself. |
Sample Call
epilot email-settings deleteEmailAddress \
-p id=123e4567-e89b-12d3-a456-426614174000
Using positional args for path parameters:
epilot email-settings deleteEmailAddress 123e4567-e89b-12d3-a456-426614174000
With JSONata filter:
epilot email-settings deleteEmailAddress -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'
listEmailAddressesโ
Retrieves all email addresses configured for the organization.
GET /v2/email-settings/email-addresses
Sample Call
epilot email-settings listEmailAddresses
With JSONata filter:
epilot email-settings listEmailAddresses --jsonata '$'
Sample Response
[
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456",
"address": "sales@yourcompany.com",
"name": "Sales Team",
"user_ids": ["user-123", "user-456"],
"group_ids": ["group-789"],
"default_signature_id": "sig-abc",
"shared_inbox_id": "inbox-xyz",
"is_active": true,
"is_primary": false,
"is_epilot_email_address": false,
"provider": "outlook"
}
]
addEmailAddressโ
Adds a new email address to the organization.
POST /v2/email-settings/email-addresses
Request Body (required)
Sample Call
epilot email-settings addEmailAddress
With request body:
epilot email-settings addEmailAddress \
-d '{
"address": "support@yourcompany.com",
"name": "Customer Support",
"user_ids": ["user-123"],
"group_ids": ["group-456"],
"default_signature_id": "sig-789",
"shared_inbox_id": "inbox-abc"
}'
Using stdin pipe:
cat body.json | epilot email-settings addEmailAddress
With JSONata filter:
epilot email-settings addEmailAddress --jsonata '$'
Sample Response
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456",
"address": "sales@yourcompany.com",
"name": "Sales Team",
"user_ids": ["user-123", "user-456"],
"group_ids": ["group-789"],
"default_signature_id": "sig-abc",
"shared_inbox_id": "inbox-xyz",
"is_active": true,
"is_primary": false,
"is_epilot_email_address": false,
"provider": "outlook"
}
getSharedInboxโ
Retrieves the details of a specific shared inbox by its ID.
GET /v2/email-settings/shared-inboxes/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique identifier (UUID) of the shared inbox. |
Use default to reference the organization's default inbox.
|
Sample Call
epilot email-settings getSharedInbox \
-p id=123e4567-e89b-12d3-a456-426614174000
Using positional args for path parameters:
epilot email-settings getSharedInbox 123e4567-e89b-12d3-a456-426614174000
With JSONata filter:
epilot email-settings getSharedInbox -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'
Sample Response
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456",
"name": "Customer Support",
"color": "#4CAF50",
"assignees": ["user-123", "user-456"],
"description": "Incoming customer support requests",
"bucket_id": "bucket-xyz"
}
updateSharedInboxโ
Updates the configuration of an existing shared inbox.
PUT /v2/email-settings/shared-inboxes/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique identifier (UUID) of the shared inbox. |
Use default to reference the organization's default inbox.
|
Request Body
Sample Call
epilot email-settings updateSharedInbox \
-p id=123e4567-e89b-12d3-a456-426614174000
With request body:
epilot email-settings updateSharedInbox \
-p id=123e4567-e89b-12d3-a456-426614174000 \
-d '{
"color": "#4CAF50",
"name": "Customer Support",
"assignees": ["user-123", "user-456"],
"description": "Incoming customer support requests"
}'
Using positional args for path parameters:
epilot email-settings updateSharedInbox 123e4567-e89b-12d3-a456-426614174000
Using stdin pipe:
cat body.json | epilot email-settings updateSharedInbox -p id=123e4567-e89b-12d3-a456-426614174000
With JSONata filter:
epilot email-settings updateSharedInbox -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'
Sample Response
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456",
"name": "Customer Support",
"color": "#4CAF50",
"assignees": ["user-123", "user-456"],
"description": "Incoming customer support requests",
"bucket_id": "bucket-xyz"
}
deleteSharedInboxโ
Deletes a shared inbox and reroutes all associated emails to a successor inbox.
DELETE /v2/email-settings/shared-inboxes/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | Unique identifier (UUID) of the shared inbox. |
Use default to reference the organization's default inbox.
|
| successorInboxId | query | string | No | ID of the inbox that will receive emails from the deleted inbox.
If not provided, the default inbox (default) will be used as the successor.
|
Sample Call
epilot email-settings deleteSharedInbox \
-p id=123e4567-e89b-12d3-a456-426614174000
Using positional args for path parameters:
epilot email-settings deleteSharedInbox 123e4567-e89b-12d3-a456-426614174000
With JSONata filter:
epilot email-settings deleteSharedInbox -p id=123e4567-e89b-12d3-a456-426614174000 --jsonata '$'
listSharedInboxesโ
Retrieves all shared inboxes configured for the organization.
GET /v2/email-settings/shared-inboxes
Sample Call
epilot email-settings listSharedInboxes
With JSONata filter:
epilot email-settings listSharedInboxes --jsonata '$'
Sample Response
[
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456",
"name": "Customer Support",
"color": "#4CAF50",
"assignees": ["user-123", "user-456"],
"description": "Incoming customer support requests",
"bucket_id": "bucket-xyz"
}
]
addSharedInboxโ
Creates a new shared inbox for the organization.
POST /v2/email-settings/shared-inboxes
Request Body (required)
Sample Call
epilot email-settings addSharedInbox
With request body:
epilot email-settings addSharedInbox \
-d '{
"id": "support-inbox",
"color": "#2196F3",
"name": "Sales Inquiries",
"assignees": ["user-123", "user-456"],
"description": "Inbound sales and pricing requests"
}'
Using stdin pipe:
cat body.json | epilot email-settings addSharedInbox
With JSONata filter:
epilot email-settings addSharedInbox --jsonata '$'
Sample Response
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456",
"name": "Customer Support",
"color": "#4CAF50",
"assignees": ["user-123", "user-456"],
"description": "Incoming customer support requests",
"bucket_id": "bucket-xyz"
}
listInboxBucketsโ
Retrieves all inbox buckets for the organization.
GET /v2/email-settings/inbox-buckets
Sample Call
epilot email-settings listInboxBuckets
With JSONata filter:
epilot email-settings listInboxBuckets --jsonata '$'
Sample Response
[
{
"id": "bucket-abc",
"inbox_id": "inbox-xyz"
}
]
connectOutlookโ
Returns the Microsoft authorization URL for Outlook OAuth.
POST /v2/outlook/connect
Request Body (required)
Sample Call
epilot email-settings connectOutlook \
-d '{"mail":true,"calendar":true,"return_to":"string"}'
Using stdin pipe:
cat body.json | epilot email-settings connectOutlook
With JSONata filter:
epilot email-settings connectOutlook --jsonata 'authorization_url'
Sample Response
{
"authorization_url": "string"
}
getOutlookConnectionStatusโ
Returns all Microsoft 365 / Outlook connections for the organization.
GET /v2/outlook/connection/status
Sample Call
epilot email-settings getOutlookConnectionStatus
With JSONata filter:
epilot email-settings getOutlookConnectionStatus --jsonata 'connections'
Sample Response
{
"connections": [
{
"status": "connected",
"action": "connect",
"action_reason": "expired",
"connected_by_display_name": "string",
"connected_by_email": "user@example.com",
"connected_by_user_id": "string",
"connected_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"tenant_id": "string",
"scopes": ["string"],
"expires_at": "1970-01-01T00:00:00.000Z",
"is_token_valid": true
}
],
"has_connections": true,
"teams_enabled": true
}
getCalendarAdminConsentStatusโ
Reports whether the caller's organization can connect personal Outlook
GET /v2/outlook/calendar/admin-consent-status
Sample Call
epilot email-settings getCalendarAdminConsentStatus
With JSONata filter:
epilot email-settings getCalendarAdminConsentStatus --jsonata 'admin_consented'
Sample Response
{
"admin_consented": true,
"admin_consent_url": "https://example.com/path"
}
getMyCalendarConnectionโ
Returns the calling user's personal Outlook calendar connection,
GET /v2/outlook/calendar/me
Sample Call
epilot email-settings getMyCalendarConnection
With JSONata filter:
epilot email-settings getMyCalendarConnection --jsonata 'connection'
Sample Response
{
"connection": {
"user_id": "string",
"tenant_id": "string",
"status": "connected",
"scopes": ["string"],
"connected_by_display_name": "string",
"connected_by_email": "user@example.com",
"connected_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"expires_at": "1970-01-01T00:00:00.000Z"
}
}
disconnectMyCalendarโ
Removes the calling user's personal calendar connection.
DELETE /v2/outlook/calendar/me
Sample Call
epilot email-settings disconnectMyCalendar
With JSONata filter:
epilot email-settings disconnectMyCalendar --jsonata '$'
disconnectOutlookโ
Removes the Microsoft 365 / Outlook connection for a specific tenant.
POST /v2/outlook/connection/disconnect
Request Body (required)
Sample Call
epilot email-settings disconnectOutlook \
-d '{"tenant_id":"string"}'
Using stdin pipe:
cat body.json | epilot email-settings disconnectOutlook
With JSONata filter:
epilot email-settings disconnectOutlook --jsonata 'success'
Sample Response
{
"success": true,
"tenant_id": "string",
"affected_shared_inboxes": ["string"]
}
connectMsTeamsโ
Connects Microsoft Teams channel (click-to-call deep links, meetings) for the organization.
POST /v2/channels/msteams/connect
Sample Call
epilot email-settings connectMsTeams
With JSONata filter:
epilot email-settings connectMsTeams --jsonata 'connected'
Sample Response
{
"connected": true,
"connected_at": "1970-01-01T00:00:00.000Z"
}
disconnectMsTeamsโ
Disconnects Microsoft Teams channel for the organization.
POST /v2/channels/msteams/disconnect
Sample Call
epilot email-settings disconnectMsTeams
With JSONata filter:
epilot email-settings disconnectMsTeams --jsonata 'connected'
Sample Response
{
"connected": true
}
getMsTeamsStatusโ
Returns the connection status of the Microsoft Teams channel for the organization.
GET /v2/channels/msteams/status
Sample Call
epilot email-settings getMsTeamsStatus
With JSONata filter:
epilot email-settings getMsTeamsStatus --jsonata 'connected'
Sample Response
{
"connected": true,
"connected_at": "1970-01-01T00:00:00.000Z",
"connected_by_user_id": "string"
}
connectOutlookMailboxโ
Connects an Outlook mailbox:
POST /v2/outlook/mailbox/connect
Request Body (required)
Sample Call
epilot email-settings connectOutlookMailbox
With request body:
epilot email-settings connectOutlookMailbox \
-d '{
"email": "user@example.com",
"shared_inbox_id": "default",
"name": "string",
"user_ids": ["string"],
"group_ids": ["string"],
"default_signature_id": "string",
"mailboxSyncTimeframe": "5m"
}'
Using stdin pipe:
cat body.json | epilot email-settings connectOutlookMailbox
With JSONata filter:
epilot email-settings connectOutlookMailbox --jsonata 'email_address'
Sample Response
{
"email_address": {
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456",
"address": "sales@yourcompany.com",
"name": "Sales Team",
"user_ids": ["user-123", "user-456"],
"group_ids": ["group-789"],
"default_signature_id": "sig-abc",
"shared_inbox_id": "inbox-xyz",
"is_active": true,
"is_primary": false,
"is_epilot_email_address": false,
"provider": "outlook"
},
"outlook_email": "user@example.com",
"tenant_id": "string",
"provider": "outlook"
}
disconnectOutlookMailboxโ
Disconnects a single Outlook mailbox by email address.
POST /v2/outlook/mailbox/{email}/disconnect
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
email | path | string (email) | Yes | Email address of the Outlook mailbox to disconnect |
Sample Call
epilot email-settings disconnectOutlookMailbox \
-p email=user@example.com
Using positional args for path parameters:
epilot email-settings disconnectOutlookMailbox user@example.com
With JSONata filter:
epilot email-settings disconnectOutlookMailbox -p email=user@example.com --jsonata 'email'
Sample Response
{
"success": true,
"email": "user@example.com"
}
startMailboxSyncโ
Triggers an Outlook mailbox sync for the specified email address.
POST /v2/outlook/mailbox/{email}/sync
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
email | path | string (email) | Yes | Email address of the Outlook mailbox to sync |
Request Body (required)
Sample Call
epilot email-settings startMailboxSync \
-p email=user@example.com \
-d '{"timeframe":"5m","since":"1970-01-01T00:00:00.000Z"}'
Using positional args for path parameters:
epilot email-settings startMailboxSync user@example.com
Using stdin pipe:
cat body.json | epilot email-settings startMailboxSync -p email=user@example.com
With JSONata filter:
epilot email-settings startMailboxSync -p email=user@example.com --jsonata '$'
getMailboxSyncStatusโ
Returns the current or latest sync status for the specified mailbox.
GET /v2/outlook/mailbox/{email}/sync/status
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
email | path | string (email) | Yes | Email address of the Outlook mailbox |
Sample Call
epilot email-settings getMailboxSyncStatus \
-p email=user@example.com
Using positional args for path parameters:
epilot email-settings getMailboxSyncStatus user@example.com
With JSONata filter:
epilot email-settings getMailboxSyncStatus -p email=user@example.com --jsonata 'execution_id'
Sample Response
{
"execution_id": "string",
"status": "RUNNING",
"timeframe": "5m",
"timeframe_start": "1970-01-01T00:00:00.000Z",
"started_at": "1970-01-01T00:00:00.000Z",
"completed_at": "1970-01-01T00:00:00.000Z",
"inbox": {
"status": "PENDING",
"total_messages": 0,
"processed_messages": 0,
"failed_messages": 0
},
"sent_items": {
"status": "PENDING",
"total_messages": 0,
"processed_messages": 0,
"failed_messages": 0
}
}
getMailboxSyncEstimateโ
Counts the inbox and sent messages a mailbox sync would import for each timeframe, with the same date filter the
GET /v2/outlook/mailbox/{email}/sync/estimate
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
email | path | string (email) | Yes | Email address of the Outlook mailbox |
timeframes | query | string | No | Comma-separated timeframes to estimate. Defaults to 1m,1y,2y, or to none when since is given. |
since | query | string (date-time) | No | Also estimate a custom period from this point up to now (returned with timeframe custom). At most 2 years back. |
Sample Call
epilot email-settings getMailboxSyncEstimate \
-p email=user@example.com
Using positional args for path parameters:
epilot email-settings getMailboxSyncEstimate user@example.com
With JSONata filter:
epilot email-settings getMailboxSyncEstimate -p email=user@example.com --jsonata 'estimates'
Sample Response
{
"estimates": [
{
"timeframe": "5m",
"since": "1970-01-01T00:00:00.000Z",
"inbox_messages": 0,
"sent_messages": 0,
"total_messages": 0,
"estimated_duration_seconds": 0
}
]
}
retryMailboxSyncโ
Retries failed messages from a previous sync execution.
POST /v2/outlook/mailbox/{email}/sync/retry
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
email | path | string (email) | Yes | Email address of the Outlook mailbox |
Request Body (required)
Sample Call
epilot email-settings retryMailboxSync \
-p email=user@example.com \
-d '{"sync_id":"string","scope":"all_failed","message_ids":["string"]}'
Using positional args for path parameters:
epilot email-settings retryMailboxSync user@example.com
Using stdin pipe:
cat body.json | epilot email-settings retryMailboxSync -p email=user@example.com
With JSONata filter:
epilot email-settings retryMailboxSync -p email=user@example.com --jsonata '$'
cancelMailboxSyncโ
Stops the running sync of an Outlook mailbox and marks it CANCELLED.
POST /v2/outlook/mailbox/{email}/sync/cancel
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
email | path | string (email) | Yes | Email address of the Outlook mailbox |
Sample Call
epilot email-settings cancelMailboxSync \
-p email=user@example.com
Using positional args for path parameters:
epilot email-settings cancelMailboxSync user@example.com
With JSONata filter:
epilot email-settings cancelMailboxSync -p email=user@example.com --jsonata 'execution_id'
Sample Response
{
"execution_id": "string",
"status": "RUNNING"
}
getConnectedOutlookEmailsโ
Returns all Outlook email addresses connected to the organization.
GET /v2/outlook/mailbox/mappings
Sample Call
epilot email-settings getConnectedOutlookEmails
With JSONata filter:
epilot email-settings getConnectedOutlookEmails --jsonata 'outlook_emails'
Sample Response
{
"outlook_emails": [
{
"outlook_email": "user@example.com",
"tenant_id": "string",
"provider": "outlook",
"connected_at": "1970-01-01T00:00:00.000Z",
"connected_by_user_id": "string"
}
],
"count": 0
}
listSmtpConnectionsโ
Returns all custom SMTP connections configured for the organization.
GET /v2/smtp/connections
Sample Call
epilot email-settings listSmtpConnections
With JSONata filter:
epilot email-settings listSmtpConnections --jsonata 'connections'
Sample Response
{
"connections": [
{
"connection_id": "string",
"smtp_host": "string",
"smtp_port": "string",
"smtp_secure": "tls",
"smtp_username": "string",
"smtp_password": "string",
"connected_by_display_name": "string",
"connected_by_email": "user@example.com",
"connected_by_user_id": "string",
"connected_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"last_tested_at": "1970-01-01T00:00:00.000Z",
"last_test_status": "ok",
"last_test_error": "string"
}
],
"has_connections": true
}
createSmtpConnectionโ
Creates a new custom SMTP connection. Runs a live verify against the SMTP server
POST /v2/smtp/connections
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
skip_test | query | boolean | No | Save without running the live verify. Use when the server is not reachable from |
epilot yet, or when a referenced {{ env.* }} secret has not been set. The
connection is stored untested โ `last_test_s |
Request Body (required)
Sample Call
epilot email-settings createSmtpConnection
With request body:
epilot email-settings createSmtpConnection \
-d '{
"smtp_host": "string",
"smtp_port": "string",
"smtp_secure": "tls",
"smtp_username": "string",
"smtp_password": "{{ env.smtp_password }}"
}'
Using stdin pipe:
cat body.json | epilot email-settings createSmtpConnection
With JSONata filter:
epilot email-settings createSmtpConnection --jsonata 'connection_id'
Sample Response
{
"connection_id": "string",
"smtp_host": "string",
"smtp_port": "string",
"smtp_secure": "tls",
"smtp_username": "string",
"smtp_password": "string",
"connected_by_display_name": "string",
"connected_by_email": "user@example.com",
"connected_by_user_id": "string",
"connected_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"last_tested_at": "1970-01-01T00:00:00.000Z",
"last_test_status": "ok",
"last_test_error": "string"
}
getSmtpConnectionโ
Returns a single custom SMTP connection by id. The password is never returned.
GET /v2/smtp/connections/{connectionId}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
connectionId | path | string | Yes |
Sample Call
epilot email-settings getSmtpConnection \
-p connectionId=123e4567-e89b-12d3-a456-426614174000
Using positional args for path parameters:
epilot email-settings getSmtpConnection 123e4567-e89b-12d3-a456-426614174000
With JSONata filter:
epilot email-settings getSmtpConnection -p connectionId=123e4567-e89b-12d3-a456-426614174000 --jsonata 'connection_id'
Sample Response
{
"connection_id": "string",
"smtp_host": "string",
"smtp_port": "string",
"smtp_secure": "tls",
"smtp_username": "string",
"smtp_password": "string",
"connected_by_display_name": "string",
"connected_by_email": "user@example.com",
"connected_by_user_id": "string",
"connected_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"last_tested_at": "1970-01-01T00:00:00.000Z",
"last_test_status": "ok",
"last_test_error": "string"
}
updateSmtpConnectionโ
Partial update; omitted fields keep their existing values. The merged
PUT /v2/smtp/connections/{connectionId}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
connectionId | path | string | Yes | |
skip_test | query | boolean | No | Save without running the live verify. Use when the server is not reachable from |
epilot yet, or when a referenced {{ env.* }} secret has not been set. The
connection is stored untested โ `last_test_s |
Request Body (required)
Sample Call
epilot email-settings updateSmtpConnection \
-p connectionId=123e4567-e89b-12d3-a456-426614174000 \
-d '{"smtp_host":"string","smtp_port":"string","smtp_secure":"tls","smtp_username":"string","smtp_password":"string"}'
Using positional args for path parameters:
epilot email-settings updateSmtpConnection 123e4567-e89b-12d3-a456-426614174000
Using stdin pipe:
cat body.json | epilot email-settings updateSmtpConnection -p connectionId=123e4567-e89b-12d3-a456-426614174000
With JSONata filter:
epilot email-settings updateSmtpConnection -p connectionId=123e4567-e89b-12d3-a456-426614174000 --jsonata 'connection_id'
Sample Response
{
"connection_id": "string",
"smtp_host": "string",
"smtp_port": "string",
"smtp_secure": "tls",
"smtp_username": "string",
"smtp_password": "string",
"connected_by_display_name": "string",
"connected_by_email": "user@example.com",
"connected_by_user_id": "string",
"connected_at": "1970-01-01T00:00:00.000Z",
"updated_at": "1970-01-01T00:00:00.000Z",
"last_tested_at": "1970-01-01T00:00:00.000Z",
"last_test_status": "ok",
"last_test_error": "string"
}
deleteSmtpConnectionโ
Deletes a custom SMTP connection. Messages already sent are unaffected.
DELETE /v2/smtp/connections/{connectionId}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
connectionId | path | string | Yes |
Sample Call
epilot email-settings deleteSmtpConnection \
-p connectionId=123e4567-e89b-12d3-a456-426614174000
Using positional args for path parameters:
epilot email-settings deleteSmtpConnection 123e4567-e89b-12d3-a456-426614174000
With JSONata filter:
epilot email-settings deleteSmtpConnection -p connectionId=123e4567-e89b-12d3-a456-426614174000 --jsonata 'success'
Sample Response
{
"success": true,
"connection_id": "string"
}
testSmtpConnectionโ
Re-runs a live SMTP verify against the saved configuration (EHLO + AUTH + NOOP + QUIT)
POST /v2/smtp/connections/{connectionId}/test
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
connectionId | path | string | Yes |
Sample Call
epilot email-settings testSmtpConnection \
-p connectionId=123e4567-e89b-12d3-a456-426614174000
Using positional args for path parameters:
epilot email-settings testSmtpConnection 123e4567-e89b-12d3-a456-426614174000
With JSONata filter:
epilot email-settings testSmtpConnection -p connectionId=123e4567-e89b-12d3-a456-426614174000 --jsonata 'status'
Sample Response
{
"status": "ok",
"error": "string",
"tested_at": "1970-01-01T00:00:00.000Z"
}
listSmtpSendersโ
Returns every address registered to send through a custom SMTP connection.
GET /v2/smtp/senders
Sample Call
epilot email-settings listSmtpSenders
With JSONata filter:
epilot email-settings listSmtpSenders --jsonata 'senders'
Sample Response
{
"senders": [
{
"email": "user@example.com",
"connection_id": "string",
"reply_to_email": "string",
"connected_at": "1970-01-01T00:00:00.000Z",
"connected_by_user_id": "string"
}
]
}
connectSmtpSenderโ
Registers an address as a sender on a custom SMTP connection:
POST /v2/smtp/senders
Request Body (required)
Sample Call
epilot email-settings connectSmtpSender
With request body:
epilot email-settings connectSmtpSender \
-d '{
"email": "user@example.com",
"connection_id": "string",
"name": "string",
"reply_to_email": "string",
"shared_inbox_id": "default",
"user_ids": ["string"],
"group_ids": ["string"],
"default_signature_id": "string"
}'
Using stdin pipe:
cat body.json | epilot email-settings connectSmtpSender
With JSONata filter:
epilot email-settings connectSmtpSender --jsonata 'email_address'
Sample Response
{
"email_address": {
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456",
"address": "sales@yourcompany.com",
"name": "Sales Team",
"user_ids": ["user-123", "user-456"],
"group_ids": ["group-789"],
"default_signature_id": "sig-abc",
"shared_inbox_id": "inbox-xyz",
"is_active": true,
"is_primary": false,
"is_epilot_email_address": false,
"provider": "outlook"
},
"sender": {
"email": "user@example.com",
"connection_id": "string",
"reply_to_email": "string",
"connected_at": "1970-01-01T00:00:00.000Z",
"connected_by_user_id": "string"
}
}
disconnectSmtpSenderโ
Removes a sender address: deletes the email address and its binding to the SMTP
DELETE /v2/smtp/senders/{email}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
email | path | string (email) | Yes |
Sample Call
epilot email-settings disconnectSmtpSender \
-p email=user@example.com
Using positional args for path parameters:
epilot email-settings disconnectSmtpSender user@example.com
With JSONata filter:
epilot email-settings disconnectSmtpSender -p email=user@example.com --jsonata 'email'
Sample Response
{
"success": true,
"email": "user@example.com"
}
outlookOAuthCallbackโ
Exchanges authorization code for tokens and stores them.
GET /v2/outlook/oauth/callback
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
code | query | string | No | |
state | query | string | Yes | |
session_state | query | string | No | |
error | query | string | No | |
error_description | query | string | No | |
error_subcode | query | string | No | |
client_info | query | string | No | |
error_uri | query | string | No | |
admin_consent | query | string | No | |
tenant | query | string | No | |
clientdata | query | string | No |
Sample Call
epilot email-settings outlookOAuthCallback \
-p state=example
With JSONata filter:
epilot email-settings outlookOAuthCallback -p state=example --jsonata 'connected'
Sample Response
{
"connected": true,
"expires_at": "1970-01-01T00:00:00.000Z",
"scope": "string"
}
getSettingsโ
Retrieves settings of a specific type for the organization.
GET /v1/email-settings
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
type | query | "signature" | "email_domain" | "email_address" | "whitelist_email_address" | "restrict_duplicates_within" | "allowed_recipient_domains" | "auto_link_identifier_attributes" | Yes | The type of settings to retrieve. Determines which category of |
email settings will be returned.
|
| id | query | string | No | Optional ID to retrieve a specific setting. If omitted, all settings
of the specified type are returned.
|
Sample Call
epilot email-settings getSettings \
-p type=signature
With JSONata filter:
epilot email-settings getSettings -p type=signature --jsonata '$'
Sample Response
[
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"name": "Default Signature",
"org_id": "org-123",
"type": "signature",
"value": "Best regards, The Team",
"html": "<p>Best regards,<br/><strong>The Team</strong></p>",
"schemas": {},
"excluded_senders": ["newsletter@partner.de", "@noreply.example.com"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456"
}
]
addSettingโ
Creates a new setting of the specified type.
POST /v1/email-settings
Request Body (required)
Sample Call
epilot email-settings addSetting
With request body:
epilot email-settings addSetting \
-d '{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"name": "Default Signature",
"org_id": "org-123",
"type": "signature",
"value": "Best regards, The Team",
"html": "<p>Best regards,<br/><strong>The Team</strong></p>",
"schemas": {},
"excluded_senders": ["newsletter@partner.de", "@noreply.example.com"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456"
}'
Using stdin pipe:
cat body.json | epilot email-settings addSetting
With JSONata filter:
epilot email-settings addSetting --jsonata '$'
Sample Response
[
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"name": "Default Signature",
"org_id": "org-123",
"type": "signature",
"value": "Best regards, The Team",
"html": "<p>Best regards,<br/><strong>The Team</strong></p>",
"schemas": {},
"excluded_senders": ["newsletter@partner.de", "@noreply.example.com"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456"
}
]
deleteSettingโ
Deletes a setting by its ID and type.
DELETE /v1/email-settings
Request Body (required)
Sample Call
epilot email-settings deleteSetting \
-d '{"type":"signature","id":"a10bd0ff-4391-4cfc-88ee-b19d718a9bf7"}'
Using stdin pipe:
cat body.json | epilot email-settings deleteSetting
With JSONata filter:
epilot email-settings deleteSetting --jsonata '$'
updateSettingโ
Updates an existing setting identified by its ID.
POST /v1/email-settings/{id}
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | The unique identifier of the setting to update |
Request Body (required)
Sample Call
epilot email-settings updateSetting \
-p id=a10bd0ff-4391-4cfc-88ee-b19d718a9bf7
With request body:
epilot email-settings updateSetting \
-p id=a10bd0ff-4391-4cfc-88ee-b19d718a9bf7 \
-d '{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"name": "Default Signature",
"org_id": "org-123",
"type": "signature",
"value": "Best regards, The Team",
"html": "<p>Best regards,<br/><strong>The Team</strong></p>",
"schemas": {},
"excluded_senders": ["newsletter@partner.de", "@noreply.example.com"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456"
}'
Using positional args for path parameters:
epilot email-settings updateSetting a10bd0ff-4391-4cfc-88ee-b19d718a9bf7
Using stdin pipe:
cat body.json | epilot email-settings updateSetting -p id=a10bd0ff-4391-4cfc-88ee-b19d718a9bf7
With JSONata filter:
epilot email-settings updateSetting -p id=a10bd0ff-4391-4cfc-88ee-b19d718a9bf7 --jsonata 'id'
Sample Response
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"name": "Default Signature",
"org_id": "org-123",
"type": "signature",
"value": "Best regards, The Team",
"html": "<p>Best regards,<br/><strong>The Team</strong></p>",
"schemas": {},
"excluded_senders": ["newsletter@partner.de", "@noreply.example.com"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456"
}
getDomainsโ
Retrieves all custom email domains for the organization.
GET /v1/email-settings/domain
Sample Call
epilot email-settings getDomains
With JSONata filter:
epilot email-settings getDomains --jsonata '$'
Sample Response
["string"]
addDomainโ
Adds a custom email domain to the organization.
POST /v1/email-settings/domain
Request Body (required)
Sample Call
epilot email-settings addDomain \
-d '{"domain":"mail.yourcompany.com"}'
Using stdin pipe:
cat body.json | epilot email-settings addDomain
With JSONata filter:
epilot email-settings addDomain --jsonata '$'
Sample Response
[
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"name": "Default Signature",
"org_id": "org-123",
"type": "signature",
"value": "Best regards, The Team",
"html": "<p>Best regards,<br/><strong>The Team</strong></p>",
"schemas": {},
"excluded_senders": ["newsletter@partner.de", "@noreply.example.com"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456"
}
]
deleteDomainโ
Removes a custom email domain from the organization.
DELETE /v1/email-settings/domain
Request Body (required)
Sample Call
epilot email-settings deleteDomain \
-d '{"domain":"mail.yourcompany.com"}'
Using stdin pipe:
cat body.json | epilot email-settings deleteDomain
With JSONata filter:
epilot email-settings deleteDomain --jsonata '$'
verifyNameServersโ
Verifies that the domain's name server (NS) records are correctly configured.
POST /v1/email-settings/domain/name-servers:verify
Request Body (required)
Sample Call
epilot email-settings verifyNameServers \
-d '{"domain":"mail.yourcompany.com"}'
Using stdin pipe:
cat body.json | epilot email-settings verifyNameServers
With JSONata filter:
epilot email-settings verifyNameServers --jsonata '$'
Sample Response
[
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"name": "Default Signature",
"org_id": "org-123",
"type": "signature",
"value": "Best regards, The Team",
"html": "<p>Best regards,<br/><strong>The Team</strong></p>",
"schemas": {},
"excluded_senders": ["newsletter@partner.de", "@noreply.example.com"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456"
}
]
verifyDnsRecordsโ
Verifies that the domain's DNS records (MX, TXT, CNAME) are correctly configured
POST /v1/email-settings/domain/dns-records:verify
Request Body (required)
Sample Call
epilot email-settings verifyDnsRecords \
-d '{"domain":"mail.yourcompany.com"}'
Using stdin pipe:
cat body.json | epilot email-settings verifyDnsRecords
With JSONata filter:
epilot email-settings verifyDnsRecords --jsonata '$'
Sample Response
[
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"name": "Default Signature",
"org_id": "org-123",
"type": "signature",
"value": "Best regards, The Team",
"html": "<p>Best regards,<br/><strong>The Team</strong></p>",
"schemas": {},
"excluded_senders": ["newsletter@partner.de", "@noreply.example.com"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456"
}
]
verifyDomainโ
Verifies ownership and configuration of a custom email domain.
POST /v1/email-settings/domain:verify
Request Body (required)
Sample Call
epilot email-settings verifyDomain \
-d '{"domain":"mail.yourcompany.com"}'
Using stdin pipe:
cat body.json | epilot email-settings verifyDomain
With JSONata filter:
epilot email-settings verifyDomain --jsonata '$'
Sample Response
[
{
"id": "a10bd0ff-4391-4cfc-88ee-b19d718a9bf7",
"name": "Default Signature",
"org_id": "org-123",
"type": "signature",
"value": "Best regards, The Team",
"html": "<p>Best regards,<br/><strong>The Team</strong></p>",
"schemas": {},
"excluded_senders": ["newsletter@partner.de", "@noreply.example.com"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"created_by": "user-123",
"updated_by": "user-456"
}
]