Skip to main content
POST

Authorizations

x-api-key
string
header
required

Body

application/json
name
string
required

Unique AI variable name.

Minimum string length: 1
prompt
string
required

Prompt template. Reference entity fields with {fieldName} placeholders. Use GET /v1/contacts/fields or GET /v1/companies/fields to discover the valid placeholder names for this workspace. Unsupported generic placeholders such as {previousMessage} are rejected in manual/public AI-variable creation.

Minimum string length: 1
entity
enum<string>
required

Entity that will store the generated value.

Available options:
CONTACT,
COMPANY
model
string | null

Optional model ID. Defaults to Enginy’s default AI model.

outputSchema
object

Optional output contract. Defaults to { "type": "text", "provideExplanation": false }.

Enable Deep Search for this AI variable. Defaults to false.

folderId
integer | null

Optional folder ID.

customWebsiteField
string | null

Optional custom website field source.

Response

AI variable created successfully

status
enum<string>
required
Available options:
success
message
string
required
data
object
required