1. Exports
  • Litemail
    • Litemail Docs
    • Users
      • Retrieve User Details
    • Workspaces
      • Retrieve All Workspaces
      • Create New Workspace
      • Update Workspace
    • Billings
      • Add Billing Details
    • Mailboxes
      • Retrieve Mailboxes
      • Assign New Mailbox to Domain
      • Get Mailbox Details
      • Update Mailbox
      • Remove Mailbox (Next Renewal)
    • Payment & Wallet
      • Get Wallet Balance
      • Add Balance to Wallet
      • Enable Auto Recharge
    • Exports
      • Export Mailboxes
      • Add Third Party Account Details
      • Update Third Party Account Details
    • Subscriptions
      • Get All Subscriptions
      • Cancel Subscription
      • Upgrade Subscription
    • Domains
      • Retrieve Domains
      • List Assignable Domains
      • Add DMARC Records
      • Add Domain Forwarding
      • Remove Domain Forwarding
      • Get Name Servers
      • Verify Name Server Propagation
      • Connect Domains with LiteMail AI
      • Enable Email Forwarding
      • Remove Email Forwarding
      • Enable Catch-All Emails
      • Remove Catch-All Emails
      • Check DNS Records
      • Remove Unused Domain
      • Get Available Domains for Registration
      • Get Domain Purchase Payment Link
    • DNS
      • Get DNS Records
      • Add DNS Record
      • Update DNS Record
      • Delete DNS Record
    • apikeys testing
      • generate key by login first
    • Connect Inbox
      • connect-inboxes
  • LiteMail API v3
    • Users
      • Retrieve User Details
    • Domains
      • Retrieve Domains
      • Purchase/Register a New Domain
      • List Assignable Domains
      • Add DMARC Records
      • Add Domain Forwarding
      • Remove Domain Forwarding
      • Get Name Servers
      • Verify Name Server Propagation
      • Connect Domains with LiteMail
      • Enable Email Forwarding
      • Remove Email Forwarding
      • Enable Catch-All Emails
      • Remove Catch-All Emails
      • Check DNS Records
      • Get Domain Details
      • Remove Unused Domain
      • Get Available Domains for Registration
      • Get Domain Purchase Payment Link
    • Mailboxes
      • Retrieve Mailboxes
      • Assign New Mailbox to Domain
      • Get Mailbox Details
      • Update Mailbox
      • Remove Mailbox (Next Renewal)
      • Get Warmup Analytics for Mailboxes
    • Workspaces
      • Retrieve All Workspaces
      • Create New Workspace
      • Update Workspace
    • Billings
      • Add Billing Details
    • Payment & Wallet
      • Get Wallet Balance
      • Add Balance to Wallet
      • Enable Auto Recharge
    • Wallet
      • Add Credit to Wallet
      • List Billing Invoices
    • Exports
      • Export Mailboxes
        POST
      • Add Third Party Account Details
        POST
      • Update Third Party Account Details
        PUT
      • Connect Inboxes (Export to Platform)
        POST
    • Subscriptions
      • Get All Subscriptions
      • Cancel Subscription
      • Upgrade Subscription
    • DNS
      • Get DNS Records
      • Create DNS Record
      • Update DNS Record
      • Delete DNS Record
    • Tags
      • List Tags
      • Create Tag
      • Update Tag
      • Delete Tag
    • MailBoxes
      • Assign Mailboxes to Domain
    • Placement
      • List Placement Tests
      • Create Placement Test
    • Dashboard
      • Get Dashboard Overview
      • Get Mailbox Status Counts
    • Export History
      • List Export History
      • Create Export History Record
    • Cloudflare
      • Get Cloudflare Credentials & Zones
      • Save Credentials or Connect Domain
    • Webhooks
      • List Registered Webhooks
      • Register a New Webhook Endpoint
      • Delete a Webhook
  1. Exports

Connect Inboxes (Export to Platform)

POST
/v1/connect-inbox
Submit platform credentials and a list of inboxes to connect/export. Creates a connect_inbox record (upserted by platform+workspace+client) and an ExportHistory record with status IN_PROGRESS. Also fires Google Sheets logging in the background.

Request

Authorization
API Key
Add parameter in header
x-api-key
Example:
x-api-key: ********************
or
Body Params application/jsonRequired

Example
{
    "platform_type": "instantly",
    "platform_email": "user@instantly.ai",
    "platform_pass": "mypassword123",
    "inbox_type": "google",
    "inboxes": [
        {
            "email": "john@b2bforcelabs.com",
            "password": "john@2026!",
            "name": "John Doe"
        }
    ],
    "workspaceName": "Main Workspace"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/v1/connect-inbox' \
--header 'x-api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "platform_type": "instantly",
    "platform_email": "user@instantly.ai",
    "platform_pass": "mypassword123",
    "inbox_type": "google",
    "inboxes": [
        {
            "email": "john@b2bforcelabs.com",
            "password": "john@2026!",
            "name": "John Doe"
        }
    ],
    "workspaceName": "Main Workspace"
}'

Responses

🟢200
application/json
Inboxes queued for connection
Bodyapplication/json

Example
{
    "status": 200,
    "message": "Inboxes will be connected within 24 hours based on the queue of inboxes.",
    "data": {
        "record": {
            "id": "ci_abc1",
            "platform": "instantly",
            "email": "user@instantly.ai",
            "workspaceName": "Main Workspace",
            "selectedMailboxes": [
                {
                    "email": "john@b2bforcelabs.com"
                }
            ]
        },
        "exportHistory": {
            "id": "exp_abc3",
            "jobId": "EXB3C4",
            "totalMailboxes": 1,
            "platform": "instantly",
            "exportStatus": "IN_PROGRESS",
            "createdAt": "2025-10-02T15:45:32.267Z"
        }
    }
}
🟠400
🟠401
🔴500
Previous
Update Third Party Account Details
Next
Get All Subscriptions
Built with