> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modulex.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Instantly Integration for AI Agents & Workflows

> Integrate the Instantly V2 cold-email outreach API. Create and list leads, manage lead interest status, delete leads in bulk, list and create campaigns, reply to emails, and manage lead lists.

{/* Self-hosted logo — build-time vendored from modulex.json / Iconify (see scripts/lib/logo.js). */}

<img src="https://mintcdn.com/modulexaillc/df8MOr-hXotYLTh5/logos/placeholder.svg?fit=max&auto=format&n=df8MOr-hXotYLTh5&q=85&s=a4046f9cd6d738c81259050e9833913c" alt="Instantly logo" width="72" height="72" data-path="logos/placeholder.svg" />

## Overview

Add **Instantly** to any ModuleX agent or workflow. Cold-email outreach automation against the Instantly V2 REST API (`api.instantly.ai`). Manage leads, lead lists, campaigns, and Unibox emails.

<Info>
  **Categories**: Marketing & Advertising · Email · Sales Engagement · **Auth**: API Key · **Actions**: 13
</Info>

## Authentication

### API Key Authentication

Authenticate using your Instantly V2 API key

<Steps>
  <Step title="Step 1">
    Sign in at [https://app.instantly.ai](https://app.instantly.ai)
  </Step>

  <Step title="Step 2">
    Open Settings and navigate to the 'API Keys' (Integrations) section
  </Step>

  <Step title="Step 3">
    Create a new V2 API key with the required scopes
  </Step>

  <Step title="Step 4">
    Copy the key and paste it below
  </Step>
</Steps>

#### Required Credentials

| Field             | Description                                        | Required | Format |
| ----------------- | -------------------------------------------------- | -------- | ------ |
| Instantly API Key | Your Instantly V2 API key with the required scopes | Yes      | `-`    |

## Available Actions

<AccordionGroup>
  <Accordion title="list_leads — Retrieve leads with search, campaign, list, and pagination filters.">
    ### Parameters

    <ResponseField name="search" type="string">
      Search by first name, last name, or email
    </ResponseField>

    <ResponseField name="filter" type="string">
      Lead filter value, such as FILTER\_VAL\_CONTACTED or FILTER\_VAL\_ACTIVE
    </ResponseField>

    <ResponseField name="campaign" type="string">
      Campaign ID to filter leads
    </ResponseField>

    <ResponseField name="list_id" type="string">
      Lead list ID to filter leads
    </ResponseField>

    <ResponseField name="in_campaign" type="boolean">
      Whether the lead is in a campaign
    </ResponseField>

    <ResponseField name="in_list" type="boolean">
      Whether the lead is in a list
    </ResponseField>

    <ResponseField name="ids" type="array">
      Lead IDs to include
    </ResponseField>

    <ResponseField name="excluded_ids" type="array">
      Lead IDs to exclude
    </ResponseField>

    <ResponseField name="contacts" type="array">
      Lead email addresses to include
    </ResponseField>

    <ResponseField name="organization_user_ids" type="array">
      Organization user IDs to filter leads
    </ResponseField>

    <ResponseField name="smart_view_id" type="string">
      Smart view ID to filter leads
    </ResponseField>

    <ResponseField name="is_website_visitor" type="boolean">
      Whether the lead is a website visitor
    </ResponseField>

    <ResponseField name="distinct_contacts" type="boolean">
      Whether to return distinct contacts
    </ResponseField>

    <ResponseField name="enrichment_status" type="integer">
      Enrichment status filter
    </ResponseField>

    <ResponseField name="esg_code" type="string">
      Email security gateway code filter
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Number of leads to return, from 1 to 100
    </ResponseField>

    <ResponseField name="starting_after" type="string">
      Forward pagination cursor from next\_starting\_after
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "LeadDetail": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "timestamp_created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Created"
            },
            "timestamp_updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Updated"
            },
            "organization": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Organization"
            },
            "campaign": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Campaign"
            },
            "status": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email"
            },
            "personalization": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Personalization"
            },
            "website": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Website"
            },
            "last_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Last Name"
            },
            "first_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "First Name"
            },
            "company_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Company Name"
            },
            "job_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Job Title"
            },
            "phone": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Phone"
            },
            "email_open_count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Open Count"
            },
            "email_reply_count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Reply Count"
            },
            "email_click_count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Click Count"
            },
            "company_domain": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Company Domain"
            },
            "payload": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Payload"
            },
            "lt_interest_status": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Lt Interest Status"
            }
          },
          "title": "LeadDetail",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "leads": {
          "items": {
            "$ref": "#/$defs/LeadDetail"
          },
          "title": "Leads",
          "type": "array"
        },
        "count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Count"
        },
        "next_starting_after": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Next Starting After"
        }
      },
      "required": [
        "success"
      ],
      "title": "ListLeadsOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="get_lead — Retrieve a lead by ID.">
    ### Parameters

    <ResponseField name="lead_id" type="string" required>
      Lead ID
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "LeadDetail": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "timestamp_created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Created"
            },
            "timestamp_updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Updated"
            },
            "organization": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Organization"
            },
            "campaign": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Campaign"
            },
            "status": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email"
            },
            "personalization": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Personalization"
            },
            "website": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Website"
            },
            "last_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Last Name"
            },
            "first_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "First Name"
            },
            "company_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Company Name"
            },
            "job_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Job Title"
            },
            "phone": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Phone"
            },
            "email_open_count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Open Count"
            },
            "email_reply_count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Reply Count"
            },
            "email_click_count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Click Count"
            },
            "company_domain": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Company Domain"
            },
            "payload": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Payload"
            },
            "lt_interest_status": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Lt Interest Status"
            }
          },
          "title": "LeadDetail",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "lead": {
          "anyOf": [
            {
              "$ref": "#/$defs/LeadDetail"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        },
        "email_address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Email Address"
        },
        "first_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "First Name"
        },
        "last_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Last Name"
        },
        "campaign": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Campaign"
        },
        "status": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Status"
        }
      },
      "required": [
        "success"
      ],
      "title": "GetLeadOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_lead — Create a lead in a campaign or lead list.">
    ### Parameters

    <ResponseField name="campaign" type="string">
      Campaign ID associated with the lead
    </ResponseField>

    <ResponseField name="list_id" type="string">
      Lead list ID associated with the lead
    </ResponseField>

    <ResponseField name="email" type="string">
      Lead email address. Required when adding to a campaign.
    </ResponseField>

    <ResponseField name="first_name" type="string">
      Lead first name
    </ResponseField>

    <ResponseField name="last_name" type="string">
      Lead last name
    </ResponseField>

    <ResponseField name="company_name" type="string">
      Lead company name
    </ResponseField>

    <ResponseField name="job_title" type="string">
      Lead job title
    </ResponseField>

    <ResponseField name="phone" type="string">
      Lead phone number
    </ResponseField>

    <ResponseField name="website" type="string">
      Lead website
    </ResponseField>

    <ResponseField name="personalization" type="string">
      Lead personalization text
    </ResponseField>

    <ResponseField name="lt_interest_status" type="integer">
      Lead interest status value
    </ResponseField>

    <ResponseField name="pl_value_lead" type="string">
      Potential value of the lead
    </ResponseField>

    <ResponseField name="assigned_to" type="string">
      Organization user ID assigned to the lead
    </ResponseField>

    <ResponseField name="skip_if_in_workspace" type="boolean">
      Skip if the lead already exists in the workspace
    </ResponseField>

    <ResponseField name="skip_if_in_campaign" type="boolean">
      Skip if the lead already exists in the campaign
    </ResponseField>

    <ResponseField name="skip_if_in_list" type="boolean">
      Skip if the lead already exists in the list
    </ResponseField>

    <ResponseField name="blocklist_id" type="string">
      Blocklist ID to check for the lead
    </ResponseField>

    <ResponseField name="verify_leads_for_lead_finder" type="boolean">
      Whether to verify leads imported from Lead Finder
    </ResponseField>

    <ResponseField name="verify_leads_on_import" type="boolean">
      Whether to verify leads on import
    </ResponseField>

    <ResponseField name="custom_variables" type="object">
      Custom variable object with string, number, boolean, or null values
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "LeadDetail": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "timestamp_created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Created"
            },
            "timestamp_updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Updated"
            },
            "organization": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Organization"
            },
            "campaign": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Campaign"
            },
            "status": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email"
            },
            "personalization": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Personalization"
            },
            "website": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Website"
            },
            "last_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Last Name"
            },
            "first_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "First Name"
            },
            "company_name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Company Name"
            },
            "job_title": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Job Title"
            },
            "phone": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Phone"
            },
            "email_open_count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Open Count"
            },
            "email_reply_count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Reply Count"
            },
            "email_click_count": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Click Count"
            },
            "company_domain": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Company Domain"
            },
            "payload": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Payload"
            },
            "lt_interest_status": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Lt Interest Status"
            }
          },
          "title": "LeadDetail",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "lead": {
          "anyOf": [
            {
              "$ref": "#/$defs/LeadDetail"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        },
        "email_address": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Email Address"
        },
        "first_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "First Name"
        },
        "last_name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Last Name"
        },
        "campaign": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Campaign"
        },
        "status": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Status"
        }
      },
      "required": [
        "success"
      ],
      "title": "CreateLeadOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="delete_leads — Delete leads in bulk from a campaign or lead list.">
    ### Parameters

    <ResponseField name="campaign_id" type="string">
      Campaign ID to delete leads from. Required if list\_id is not provided.
    </ResponseField>

    <ResponseField name="list_id" type="string">
      Lead list ID to delete leads from. Required if campaign\_id is not provided.
    </ResponseField>

    <ResponseField name="status" type="integer">
      Optional lead status filter
    </ResponseField>

    <ResponseField name="ids" type="array">
      Specific lead IDs to delete
    </ResponseField>

    <ResponseField name="limit" type="integer">
      Maximum number of matching leads to delete, up to 10000
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Count"
        }
      },
      "required": [
        "success"
      ],
      "title": "DeleteLeadsOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="update_lead_interest_status — Submit a background job to update a lead interest status.">
    ### Parameters

    <ResponseField name="lead_email" type="string" required>
      Lead email address
    </ResponseField>

    <ResponseField name="interest_value" type="integer">
      Interest status value. Pass null to reset to Lead.
    </ResponseField>

    <ResponseField name="campaign_id" type="string">
      Campaign ID for the lead
    </ResponseField>

    <ResponseField name="list_id" type="string">
      Lead list ID for the lead
    </ResponseField>

    <ResponseField name="ai_interest_value" type="integer">
      AI interest value to set for the lead
    </ResponseField>

    <ResponseField name="disable_auto_interest" type="boolean">
      Whether to disable auto interest
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "message": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Message"
        }
      },
      "required": [
        "success"
      ],
      "title": "UpdateLeadInterestStatusOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_campaigns — Retrieve campaigns with search, status, tag, and pagination filters.">
    ### Parameters

    <ResponseField name="limit" type="integer">
      Number of campaigns to return, from 1 to 100
    </ResponseField>

    <ResponseField name="starting_after" type="string">
      Pagination cursor from next\_starting\_after
    </ResponseField>

    <ResponseField name="search" type="string">
      Search by campaign name
    </ResponseField>

    <ResponseField name="tag_ids" type="string">
      Comma-separated campaign tag IDs
    </ResponseField>

    <ResponseField name="ai_sales_agent_id" type="string">
      AI Sales Agent ID filter
    </ResponseField>

    <ResponseField name="status" type="integer">
      Campaign status enum value
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "CampaignDetail": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            },
            "pl_value": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Pl Value"
            },
            "status": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "is_evergreen": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Evergreen"
            },
            "timestamp_created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Created"
            },
            "timestamp_updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Updated"
            },
            "email_gap": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Gap"
            },
            "daily_limit": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Daily Limit"
            },
            "daily_max_leads": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Daily Max Leads"
            },
            "open_tracking": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Open Tracking"
            },
            "stop_on_reply": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Stop On Reply"
            },
            "sequences": {
              "items": {},
              "title": "Sequences",
              "type": "array"
            },
            "campaign_schedule": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Campaign Schedule"
            }
          },
          "title": "CampaignDetail",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "campaigns": {
          "items": {
            "$ref": "#/$defs/CampaignDetail"
          },
          "title": "Campaigns",
          "type": "array"
        },
        "count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Count"
        },
        "next_starting_after": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Next Starting After"
        }
      },
      "required": [
        "success"
      ],
      "title": "ListCampaignsOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_campaign — Create a campaign using the documented campaign schedule schema.">
    ### Parameters

    <ResponseField name="name" type="string" required>
      Campaign name
    </ResponseField>

    <ResponseField name="campaign_schedule" type="object" required>
      Campaign schedule object with schedules array
    </ResponseField>

    <ResponseField name="sequences" type="array">
      Campaign sequence definitions
    </ResponseField>

    <ResponseField name="email_list" type="array">
      Sending email accounts
    </ResponseField>

    <ResponseField name="daily_limit" type="integer">
      Daily sending limit
    </ResponseField>

    <ResponseField name="daily_max_leads" type="integer">
      Daily maximum new leads to contact
    </ResponseField>

    <ResponseField name="open_tracking" type="boolean">
      Whether to track opens
    </ResponseField>

    <ResponseField name="stop_on_reply" type="boolean">
      Whether to stop the campaign on reply
    </ResponseField>

    <ResponseField name="link_tracking" type="boolean">
      Whether to track links
    </ResponseField>

    <ResponseField name="text_only" type="boolean">
      Whether the campaign is text only
    </ResponseField>

    <ResponseField name="email_gap" type="integer">
      Gap between emails in minutes
    </ResponseField>

    <ResponseField name="pl_value" type="number">
      Value of every positive lead
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "CampaignDetail": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            },
            "pl_value": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Pl Value"
            },
            "status": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "is_evergreen": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Evergreen"
            },
            "timestamp_created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Created"
            },
            "timestamp_updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Updated"
            },
            "email_gap": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Gap"
            },
            "daily_limit": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Daily Limit"
            },
            "daily_max_leads": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Daily Max Leads"
            },
            "open_tracking": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Open Tracking"
            },
            "stop_on_reply": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Stop On Reply"
            },
            "sequences": {
              "items": {},
              "title": "Sequences",
              "type": "array"
            },
            "campaign_schedule": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Campaign Schedule"
            }
          },
          "title": "CampaignDetail",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "campaign": {
          "anyOf": [
            {
              "$ref": "#/$defs/CampaignDetail"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Name"
        },
        "status": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Status"
        }
      },
      "required": [
        "success"
      ],
      "title": "CreateCampaignOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="patch_campaign — Update documented campaign fields.">
    ### Parameters

    <ResponseField name="campaign_id" type="string" required>
      Campaign ID
    </ResponseField>

    <ResponseField name="name" type="string">
      Campaign name
    </ResponseField>

    <ResponseField name="campaign_schedule" type="object">
      Campaign schedule object with schedules array
    </ResponseField>

    <ResponseField name="sequences" type="array">
      Campaign sequence definitions
    </ResponseField>

    <ResponseField name="email_list" type="array">
      Sending email accounts
    </ResponseField>

    <ResponseField name="daily_limit" type="integer">
      Daily sending limit
    </ResponseField>

    <ResponseField name="daily_max_leads" type="integer">
      Daily maximum new leads to contact
    </ResponseField>

    <ResponseField name="open_tracking" type="boolean">
      Whether to track opens
    </ResponseField>

    <ResponseField name="stop_on_reply" type="boolean">
      Whether to stop the campaign on reply
    </ResponseField>

    <ResponseField name="link_tracking" type="boolean">
      Whether to track links
    </ResponseField>

    <ResponseField name="text_only" type="boolean">
      Whether the campaign is text only
    </ResponseField>

    <ResponseField name="email_gap" type="integer">
      Gap between emails in minutes
    </ResponseField>

    <ResponseField name="pl_value" type="number">
      Value of every positive lead
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "CampaignDetail": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            },
            "pl_value": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Pl Value"
            },
            "status": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "is_evergreen": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Evergreen"
            },
            "timestamp_created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Created"
            },
            "timestamp_updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Updated"
            },
            "email_gap": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Gap"
            },
            "daily_limit": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Daily Limit"
            },
            "daily_max_leads": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Daily Max Leads"
            },
            "open_tracking": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Open Tracking"
            },
            "stop_on_reply": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Stop On Reply"
            },
            "sequences": {
              "items": {},
              "title": "Sequences",
              "type": "array"
            },
            "campaign_schedule": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Campaign Schedule"
            }
          },
          "title": "CampaignDetail",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "campaign": {
          "anyOf": [
            {
              "$ref": "#/$defs/CampaignDetail"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Name"
        },
        "status": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Status"
        }
      },
      "required": [
        "success"
      ],
      "title": "PatchCampaignOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="activate_campaign — Activate, start, or resume a campaign.">
    ### Parameters

    <ResponseField name="campaign_id" type="string" required>
      Campaign ID
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "CampaignDetail": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            },
            "pl_value": {
              "anyOf": [
                {
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Pl Value"
            },
            "status": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Status"
            },
            "is_evergreen": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Evergreen"
            },
            "timestamp_created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Created"
            },
            "timestamp_updated": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Updated"
            },
            "email_gap": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Email Gap"
            },
            "daily_limit": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Daily Limit"
            },
            "daily_max_leads": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Daily Max Leads"
            },
            "open_tracking": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Open Tracking"
            },
            "stop_on_reply": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Stop On Reply"
            },
            "sequences": {
              "items": {},
              "title": "Sequences",
              "type": "array"
            },
            "campaign_schedule": {
              "anyOf": [
                {
                  "additionalProperties": true,
                  "type": "object"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Campaign Schedule"
            }
          },
          "title": "CampaignDetail",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "campaign": {
          "anyOf": [
            {
              "$ref": "#/$defs/CampaignDetail"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Name"
        },
        "status": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Status"
        }
      },
      "required": [
        "success"
      ],
      "title": "ActivateCampaignOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_emails — Retrieve Unibox emails with search and pagination filters.">
    ### Parameters

    <ResponseField name="limit" type="integer">
      Number of emails to return, from 1 to 100
    </ResponseField>

    <ResponseField name="starting_after" type="string">
      Pagination cursor from next\_starting\_after
    </ResponseField>

    <ResponseField name="search" type="string">
      Search query, email address, or thread:\<thread-id>
    </ResponseField>

    <ResponseField name="campaign_id" type="string">
      Campaign ID filter
    </ResponseField>

    <ResponseField name="list_id" type="string">
      Lead list ID filter
    </ResponseField>

    <ResponseField name="i_status" type="integer">
      Email interest status filter
    </ResponseField>

    <ResponseField name="eaccount" type="string">
      Sending email account filter
    </ResponseField>

    <ResponseField name="lead" type="string">
      Lead email address filter
    </ResponseField>

    <ResponseField name="is_unread" type="boolean">
      Unread status filter
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "EmailBody": {
          "additionalProperties": false,
          "properties": {
            "text": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Text"
            },
            "html": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Html"
            }
          },
          "title": "EmailBody",
          "type": "object"
        },
        "EmailDetail": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "timestamp_created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Created"
            },
            "timestamp_email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Email"
            },
            "message_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Message Id"
            },
            "subject": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Subject"
            },
            "from_address_email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "From Address Email"
            },
            "to_address_email_list": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "To Address Email List"
            },
            "cc_address_email_list": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Cc Address Email List"
            },
            "bcc_address_email_list": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Bcc Address Email List"
            },
            "reply_to": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Reply To"
            },
            "body": {
              "anyOf": [
                {
                  "$ref": "#/$defs/EmailBody"
                },
                {
                  "type": "null"
                }
              ],
              "default": null
            },
            "organization_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Organization Id"
            },
            "campaign_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Campaign Id"
            },
            "subsequence_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Subsequence Id"
            },
            "list_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "List Id"
            },
            "lead": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Lead"
            },
            "lead_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Lead Id"
            },
            "eaccount": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Eaccount"
            },
            "ue_type": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Ue Type"
            },
            "is_unread": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Unread"
            },
            "is_auto_reply": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Auto Reply"
            },
            "i_status": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "I Status"
            },
            "thread_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Thread Id"
            },
            "content_preview": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Content Preview"
            }
          },
          "title": "EmailDetail",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "emails": {
          "items": {
            "$ref": "#/$defs/EmailDetail"
          },
          "title": "Emails",
          "type": "array"
        },
        "count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Count"
        },
        "next_starting_after": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Next Starting After"
        }
      },
      "required": [
        "success"
      ],
      "title": "ListEmailsOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="reply_to_email — Send a reply to an existing Unibox email.">
    ### Parameters

    <ResponseField name="eaccount" type="string" required>
      Connected email account used to send the reply
    </ResponseField>

    <ResponseField name="reply_to_uuid" type="string" required>
      Email ID to reply to
    </ResponseField>

    <ResponseField name="subject" type="string" required>
      Reply subject
    </ResponseField>

    <ResponseField name="body_text" type="string">
      Reply body as plain text
    </ResponseField>

    <ResponseField name="body_html" type="string">
      Reply body as HTML
    </ResponseField>

    <ResponseField name="cc_address_email_list" type="string">
      Comma-separated CC email addresses
    </ResponseField>

    <ResponseField name="bcc_address_email_list" type="string">
      Comma-separated BCC email addresses
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "EmailBody": {
          "additionalProperties": false,
          "properties": {
            "text": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Text"
            },
            "html": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Html"
            }
          },
          "title": "EmailBody",
          "type": "object"
        },
        "EmailDetail": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "timestamp_created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Created"
            },
            "timestamp_email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Email"
            },
            "message_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Message Id"
            },
            "subject": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Subject"
            },
            "from_address_email": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "From Address Email"
            },
            "to_address_email_list": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "To Address Email List"
            },
            "cc_address_email_list": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Cc Address Email List"
            },
            "bcc_address_email_list": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Bcc Address Email List"
            },
            "reply_to": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Reply To"
            },
            "body": {
              "anyOf": [
                {
                  "$ref": "#/$defs/EmailBody"
                },
                {
                  "type": "null"
                }
              ],
              "default": null
            },
            "organization_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Organization Id"
            },
            "campaign_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Campaign Id"
            },
            "subsequence_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Subsequence Id"
            },
            "list_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "List Id"
            },
            "lead": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Lead"
            },
            "lead_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Lead Id"
            },
            "eaccount": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Eaccount"
            },
            "ue_type": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Ue Type"
            },
            "is_unread": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Unread"
            },
            "is_auto_reply": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Is Auto Reply"
            },
            "i_status": {
              "anyOf": [
                {
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "I Status"
            },
            "thread_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Thread Id"
            },
            "content_preview": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Content Preview"
            }
          },
          "title": "EmailDetail",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "email": {
          "anyOf": [
            {
              "$ref": "#/$defs/EmailDetail"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        },
        "subject": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Subject"
        },
        "thread_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Thread Id"
        }
      },
      "required": [
        "success"
      ],
      "title": "ReplyToEmailOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="list_lead_lists — Retrieve lead lists with search and pagination filters.">
    ### Parameters

    <ResponseField name="limit" type="integer">
      Number of lead lists to return, from 1 to 100
    </ResponseField>

    <ResponseField name="starting_after" type="string">
      Starting-after cursor from next\_starting\_after
    </ResponseField>

    <ResponseField name="has_enrichment_task" type="boolean">
      Filter by enrichment task setting
    </ResponseField>

    <ResponseField name="search" type="string">
      Search query to filter lead lists by name
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "LeadListDetail": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "organization_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Organization Id"
            },
            "has_enrichment_task": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has Enrichment Task"
            },
            "owned_by": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Owned By"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            },
            "timestamp_created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Created"
            }
          },
          "title": "LeadListDetail",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "lead_lists": {
          "items": {
            "$ref": "#/$defs/LeadListDetail"
          },
          "title": "Lead Lists",
          "type": "array"
        },
        "count": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Count"
        },
        "next_starting_after": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Next Starting After"
        }
      },
      "required": [
        "success"
      ],
      "title": "ListLeadListsOutput",
      "type": "object"
    }
    ```
  </Accordion>

  <Accordion title="create_lead_list — Create a lead list.">
    ### Parameters

    <ResponseField name="name" type="string" required>
      Lead list name
    </ResponseField>

    <ResponseField name="has_enrichment_task" type="boolean">
      Whether this list runs enrichment for every added lead
    </ResponseField>

    <ResponseField name="owned_by" type="string">
      User ID of the lead list owner
    </ResponseField>

    ### Response

    ```json theme={null}
    {
      "$defs": {
        "LeadListDetail": {
          "additionalProperties": false,
          "properties": {
            "id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Id"
            },
            "organization_id": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Organization Id"
            },
            "has_enrichment_task": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Has Enrichment Task"
            },
            "owned_by": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Owned By"
            },
            "name": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Name"
            },
            "timestamp_created": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "default": null,
              "title": "Timestamp Created"
            }
          },
          "title": "LeadListDetail",
          "type": "object"
        }
      },
      "additionalProperties": false,
      "properties": {
        "success": {
          "title": "Success",
          "type": "boolean"
        },
        "error": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Error"
        },
        "lead_list": {
          "anyOf": [
            {
              "$ref": "#/$defs/LeadListDetail"
            },
            {
              "type": "null"
            }
          ],
          "default": null
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Id"
        },
        "name": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Name"
        }
      },
      "required": [
        "success"
      ],
      "title": "CreateLeadListOutput",
      "type": "object"
    }
    ```
  </Accordion>
</AccordionGroup>

## Limits & Quotas

* List endpoints accept `limit` (1–100) and forward-paginate via the
  `next_starting_after` cursor returned in each response — pass it back
  as `starting_after` for the next page.
* `update_lead_interest_status` submits an asynchronous background job;
  the response carries a submission `message`, not the updated lead.
* **Error model**: non-2xx responses and timeouts are caught and
  returned as `success=False` + `error` rather than raising. Plan agent
  retries based on the error string.

## Related integrations

<CardGroup cols={3}>
  <Card title="Klaviyo" href="/integrations/tools/klaviyo" />

  <Card title="SendGrid" href="/integrations/tools/sendgrid" />

  <Card title="AgentMail" href="/integrations/tools/agentmail" />
</CardGroup>

## Links

* [Instantly](https://instantly.ai)
