Skip to content

Initiate an operation that creates a list of data values using generative AI

Request

Security
ApiKeyAuth
Bodyapplication/json
namestringrequired

A name for this data generation request. This name will be used for the generated file, if requested.

Example:"German first names"
descriptionstring

An optional description for this data generation request

Example:"A list of 65 German first names"
data_typestringrequired

The type of data to generate

Example:"first name"
attributesArray of objects, >= 0 items(GenerateDataAttribute)

Attributes to use when generating some values. For each attribute, generation will iterate over each value, so each attribute value will apply to a subset of the generated values. An empty "" in the values list will cause generation skip this attribute for some generated values.

max_value_lengthinteger, (int32), [ 1 .. 4000 ]

The maximum length in characters for each generated value. Generated values which are too long are discarded. The default value depends on whether multiline_values is enabled.

Example:20
requested_countinteger, (int32), >= 1

The number of values to generate

Default:10
Example:65
filter_charactersstring

A Java regular expression that matches each character to filter from the generated values.

Default:""
Example:"[{}]"
allow_duplicatesboolean

Whether to allow duplicate values in the generated value list

Default:false
trim_valuesboolean

Whether to trim leading and trailing whitespace from generated values.

Default:true
multiline_valuesbooleanrequired

Whether to allow generation of multiline values. Values generated with this setting true cannot be exported to secure lookup files. When this value is false, multiline values are rejected.

retention_timeinteger, (int64)

The length of time, in seconds, that generated values should be made available in the API. Values will always be available while the generated request is running. No value means data will be retained indefinitely.

Example:3600
error_toleranceinteger, (int32)

The quantity of unusable, duplicate or failed LLM prompts allowed before the generate operation will fail. This value is expressed as a percentage multiple of total expected number of prompts need to complete the generate operation. Given the high likelihood of duplicate values, this value should not be decreased unless it is critical to time/resource bound the generate operation.

Default:300
Example:500
priorityinteger, (int32)

The request priority, where higher values mean higher priority. This will typically be 0 for bulk operations and 1 for sample generation.

Default:0
Example:0
curl -i -X POST \
  https://help-api.delphix.com/_mock/data-control-tower/continuous-data/2025.6.0.0/continuous-data-apis-dct-2025.6.0.0/ai/generate \
  -H 'Authorization: YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "German first names",
    "description": "A list of 65 German first names",
    "data_type": "first name",
    "attributes": [
      {
        "label": "string",
        "values": [
          "string"
        ]
      }
    ],
    "max_value_length": 20,
    "requested_count": 65,
    "filter_characters": "[{}]",
    "allow_duplicates": false,
    "trim_values": true,
    "multiline_values": true,
    "retention_time": 3600,
    "error_tolerance": 500,
    "priority": 0
  }'

Responses

Success

Bodyapplication/json
jobobject(Job)

An asynchronous task.

Response
{ "job": { "id": "job-123", "status": "RUNNING", "is_waiting_for_telemetry": true, "type": "DB_REFRESH", "localized_type": "DB Refresh", "error_details": "Unable to connect to the engine.", "warning_message": "Failed to remove local MaskingJob, engineId: 3 localMaskingJobId: 7.", "target_id": "vdb-123", "target_name": "vdb", "start_time": "2022-01-02T05:11:24.148Z", "update_time": "2022-01-02T06:11:24.148Z", "trace_id": "string", "engine_ids": [ … ], "tags": [ … ], "engines": [ … ], "account_id": 1, "account_name": "User 1", "percent_complete": 50, "virtualization_tasks": [ … ], "tasks": [ … ], "execution_id": "string", "result_type": "string", "result": {} } }