SuperSearchEnrichment

Create AI enrichment

Changed on

Create an AI enrichment for a resource (list or campaign)

Requires one of the following scopes: supersearch_enrichments:create, supersearch_enrichments:all, all:create, all:all

post/api/v2/supersearch-enrichment/ai

Request

  • Base URL
    https://api.instantly.ai
  • URL
    https://api.instantly.ai/api/v2/supersearch-enrichment/ai
  • Auth
    HTTP bearer

Request body

resource_idstring uuid required

Id of the resource (list or campaign) to enrich

output_columnstring required

Name of the column where the AI enrichment results will be stored

resource_type1 | 2 required

Type of the entity to enrich

input_columnsstring[]

List of column names to use as input data for the AI enrichment. These are the fields from your leads that will be used to generate content.

model_versionstring required

Version of the AI model to use for enrichment. Different models have different capabilities, costs, and token limits.

use_instantly_accountboolean

When true, the enrichment will use Instantly's account for API calls. When false, it will use your own API keys configured in settings.

overwriteboolean

When true, will overwrite existing values in the output column. When false, only empty fields will be enriched.

auto_updateboolean

When true, new leads added to the campaign/list will be automatically enriched using these same settings.

limitnumber

Maximum number of leads to enrich.

promptstring

Custom prompt to guide the AI enrichment. Use {{variables}} to reference input data. Only used when templateId is not provided.

template_idstring

ID of a predefined AI prompt template to use instead of a custom prompt. Templates are reusable prompt configurations.

Example request

{
  "resource_id": "01234567-89ab-cdef-0123-456789abcdef",
  "output_column": "ai_generated_content",
  "resource_type": 2,
  "input_columns": [
    "first_name"
  ],
  "model_version": "gpt-4o",
  "use_instantly_account": true,
  "auto_update": true,
  "limit": 100,
  "prompt": "Write a personalized email to {{first_name}} from {{company_name}} about our new product",
  "template_id": "123",
  "filters": [
    {
      "column_name": "email",
      "type": 1,
      "value": [
        "test@test.com"
      ]
    }
  ]
}

Response

Default Response

idstring required

Unique identifier for the enrichment

resource_idstring uuid required

ID of the resource being enriched

resource_type1 | 2 required

Type of the resource (1 for Campaign, 2 for List)

output_columnstring required

Name of the column where results will be stored

statusnumber required

Status of the enrichment job

model_versionstring required

AI model version used for enrichment

input_columnsstring[]

Input columns used for enrichment

overwriteboolean required

Whether to overwrite existing data

auto_updateboolean

Whether to auto-update new leads

limitnumber

Maximum number of leads to process

template_idstring nullable

ID of the prompt template used

Example response

{
  "id": "01234567-89ab-cdef-0123-456789abcdef",
  "resource_id": "01234567-89ab-cdef-0123-456789abcdef",
  "resource_type": 1,
  "output_column": "ai_generated_content",
  "status": 1,
  "model_version": "gpt-4o",
  "input_columns": [
    "first_name"
  ],
  "auto_update": true,
  "limit": 100,
  "template_id": "15762598695796759"
}

Changes

    • breaking

      added the new required request property //

    • breaking

      added the new required request property //

    • breaking

      removed the enum value 3.5 of the request property

    • breaking

      removed the enum value 4.0 of the request property

    • breaking

      removed the enum value claude-4.5-sonnet of the request property

    • breaking

      removed the enum value claude-4.6-sonnet of the request property

    • breaking

      removed the enum value gemini-3.0-flash of the request property

    • breaking

      removed the enum value gemini-3.5-flash of the request property

    • breaking

      removed the enum value gpt-4.1 of the request property

    • breaking

      removed the enum value gpt-4.1-mini of the request property

    • breaking

      removed the enum value gpt-4o of the request property

    • breaking

      removed the enum value gpt-5 of the request property

    • breaking

      removed the enum value gpt-5-mini of the request property

    • breaking

      removed the enum value gpt-5-nano of the request property

    • breaking

      removed the enum value gpt-5.4 of the request property

    • breaking

      removed the enum value grok-4.3 of the request property

    • breaking

      removed the enum value instantly-ai-lightspeed-agent-for-email-generation of the request property

    • breaking

      removed the enum value instantly-ai-lightspeed-agent-for-web-research of the request property

    • breaking

      removed the enum value o3 of the request property

    • breaking

      removed the enum value r1 of the request property

    • breaking

      removed the enum value sonar of the request property

    • breaking

      removed the enum value sonar-pro of the request property

    • breaking

      the request property's minLength was increased from 0 to 1

    • breaking

      the response property became optional for the status

    • warning

      the / request property's maxLength was set to 1000

    • warning

      the request property's maxLength was set to 200

    • warning

      the request property's maxLength was set to 100000

    • warning

      removed the request property

    • warning

      removed the request property

    • warning

      added the new Template not found enum value to the response property for the response status

    • info

      added the new optional request property //

    • info

      the request property default value false was added

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      removed the CAMPAIGN enum value from the response property for the response status

    • info

      removed the LIST enum value from the response property for the response status

    • info

      removed the Not Found enum value from the response property for the response status