Async API tasks

Generate site with AI (optionally based on template)

Generate a site using AI. If template_id is provided, generates based on template; otherwise generates from scratch with AI.

post/api/async-tasks/generate-site-with-ai

Request

  • Base URL
    https://api.duda.co
  • URL
    https://api.duda.co/api/async-tasks/generate-site-with-ai
  • Auth
    HTTP basic

Request body

custom_instructionsstring
default_domain_prefixstring
do_not_gen_sslboolean
excluded_urlsstring[]
included_urlsstring[]
langstring

Rejected when building from a vibe template.

page_limitinteger
source_urlstring
template_aliasstring

Alias of the template to build from. A vibe template creates a vibe site, which rejects url, lang, xframe_options, a site_data.editor other than VIBE and any of site_data.{piwik_id, site_seo, removeBizInfos, schemas, site_business_info}. Omit it, and template_id, with site_data.editor VIBE to create a blank vibe site.

template_idinteger

Deprecated, use 'template_alias'.

urlstring

Rejected when building from a vibe template.

Response

OK

created_atstring date-time
finished_atstring date-time
idstring
status'CREATED' | 'IN_PROGRESS' | 'FAILED' | 'COMPLETED'
type'GENERATE_SITE_WITH_AI' | 'GENERATE_SITE_FROM_URL' | 'IMPORT_CONTENT_FROM_URL' | 'CLASSIC_TO_FLEX_MIGRATION'

Changes

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