domains

generate_domain

Draft a taxonomy from a description or Parse job. Cost class: slow.

Synchronous and non-persisting: the model proposes a taxonomy the author edits, then posts to POST /v1/domains. Nothing is written to the database and no job is created. Kept off MCP because authoring is a reviewed human act, not an agent-loop step.

Args: session: Database session used only to resolve a caller-owned Parse job. caller: The authenticated tenant (authorization only — no domain row is owned yet). request: The description or Parse-result source and optional identity hints.

Returns: Normalized taxonomy, suggested identity fields, and publish-gate validation for the draft.

Raises: PlatformError: upstream_unavailable when the model call fails, or job_timeout when it times out (both retryable).

post/v1/domains/generate

Request

Request body

descriptionstring nullable

What kinds of files belong in this domain — the classifier-facing brief.

sheet_namestring nullable

Workbook worksheet to extract. Required when the Parse result contains multiple sheets.

display_namestring nullable

Optional name hint used when suggesting a display name and slug.

slugstring nullable

Optional slug hint. When omitted, the model derives one from the input.

Response

Successful Response

suggested_slugstring required
suggested_display_namestring required

Changes

No recorded changes to this operation across all 1 revision of this API.