Campaign

Search campaigns by lead email

Changed on

Requires one of the following scopes: campaigns:read, campaigns:all, all:read, all:all

get/api/v2/campaigns/search-by-contact

Request

  • Base URL
    https://api.instantly.ai
  • URL
    https://api.instantly.ai/api/v2/campaigns/search-by-contact
  • Auth
    HTTP bearer

Query parameters

searchstring
Example:lead-email@example.com

Search by lead email

sort_columnstring
Example:timestamp_created

Sort campaigns by column name

sort_orderstring
Example:asc

Sort direction

Response

Default Response

Example response

{
  "items": [
    {
      "id": "01a19e6f-5061-7d3a-a26d-af6f9d3ae830",
      "name": "My First Campaign",
      "pl_value": 100,
      "status": 1,
      "campaign_schedule": {
        "start_date": "2025-09-25",
        "end_date": "2025-09-25",
        "schedules": [
          {
            "name": "My Schedule",
            "timing": {
              "from": "09:00",
              "to": "17:00"
            },
            "days": {
              "0": true,
              "1": true,
              "2": true,
              "3": true,
              "4": true
            },
            "timezone": "Etc/GMT+12"
          }
        ]
      },
      "sequences": [
        {
          "steps": [
            {
              "type": "email",
              "delay": 2,
              "delay_unit": "days",
              "pre_delay": 2,
              "pre_delay_unit": "days",
              "variants": [
                {
                  "subject": "Hello {{firstName}}",
                  "body": "Hey {{firstName}},<br/><br/>I hope you are doing well.",
                  "v_disabled": true
                }
              ]
            }
          ]
        }
      ],
      "timestamp_created": "2026-11-02T22:44:17.633Z",
      "timestamp_updated": "2026-11-02T22:44:17.633Z",
      "email_gap": 10,
      "random_wait_max": 10,
      "email_list": [
        "john@doe.com"
      ],
      "daily_limit": 100,
      "email_tag_list": [
        "01a19e6f-5061-7d3a-a26d-af700389ae6b"
      ],
      "link_tracking": true,
      "open_tracking": true,
      "daily_max_leads": 100,
      "auto_variant_select": {
        "trigger": "click_rate"
      },
      "not_sending_status": 2,
      "limit_emails_per_company_override": {
        "mode": "custom",
        "daily_limit": 3,
        "scope": "per_campaign"
      },
      "cc_list": [
        "john@doe.com"
      ],
      "bcc_list": [
        "john@doe.com"
      ],
      "organization": "01a19e6f-5061-7d3a-a26d-af7169f08577",
      "owned_by": "01a19e6f-5061-7d3a-a26d-af7257cc7628",
      "created_by": "01a19e6f-5061-7d3a-a26d-af738f92a777",
      "ai_sdr_id": "01a19e6f-5061-7d3a-a26d-af74ab5a91ca",
      "provider_routing_rules": [
        {
          "action": "send",
          "recipient_esp": [
            "all"
          ],
          "sender_esp": [
            "all"
          ]
        }
      ]
    }
  ]
}

Changes