Skip to main content
POST
Generate semantic model

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

x-correlation-id
string | null

Optional ID for this request. If you don't send one, the server makes one and sends it back in an HTTP response header.

Body

application/json

Request to generate semantic models using AI.

domain_name
string | null

Domain name. For example, Finance. Requires either domain_name or domain_urn.

domain_urn
string | null

DataHub domain URN. For example, urn:li:domain:Finance. Requires either domain_name or domain_urn.

user_prompt
string | null

Optional description of what kind of models to generate.

include_tables
string[] | null

Specific tables to include. Defaults to all tables in a domain.

exclude_tables
string[] | null

Tables to exclude from generation.

target_catalog
string
default:iceberg

Target Trino catalog for views.

target_schema
string | null

Target schema. Default: domain name

auto_submit_for_review
boolean
default:true

Automatically submit generated models for review.

documents
string[] | null

URNs of reference documents to take definitions from. Omit to use the domain's most relevant documents (at most three); pass [] to use none. Preview the choice with the context endpoint.

Maximum array length: 20
business_rules
string[] | null

Business rules to apply in the model's SQL, as workspace/key. Only the published version is used; an unpublished rule is reported and not applied.

Maximum array length: 20

Response

Generation task submitted

Response for a generation task submission.

task_id
string<uuid>
required

Internal task ID.

celery_task_id
string
required

Always empty. Not currently used.

domain_urn
string
required

DataHub domain URN the task is scanning.

status
string
required

Status of the generation task, such as submitted, running, completed, or failed.

submitted_by
string
required

Keycloak username of who submitted the task.

submitted_at
string<date-time>
required

The task's submission time.

message
string
default:Task submitted successfully.

Human-readable result message.

models_generated
integer | null

Number of models generated if completed.

result_model_ids
string[] | null

IDs of generated models if completed.