connect_domain_to_publication
Connect a verified domain to a blog publication so articles are served from that domain. Supports path, root, or subdomain routing to control URL structure.
Instructions
Connect a verified domain to a blog publication so articles are served from that domain. Supports three routingType modes: 'path' ({domain}/blog), 'root' (bare {domain}), and 'subdomain' (blog.{domain} — provisions a separate Domain row that needs its own DNS verification before it resolves).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brandId | No | Brand ID (uses active brand if omitted) | |
| domainId | Yes | Domain ID (from list_domains) — must belong to the same brand; for 'subdomain' mode, pass the APEX domain's ID (e.g. the row for 'acme.com'), not a blog.* row. | |
| pathPrefix | No | Path prefix if routingType is 'path', e.g. '/blog' | |
| routingType | No | How the blog is routed on the domain: 'path' serves it at {domain}/blog (or a custom pathPrefix); 'root' serves it at the bare domain root (the domain must not already have a landing page connected — 409 if it does); 'subdomain' serves it at blog.{domain} — this creates (or reuses) a separate 'blog.<domain>' Domain row that needs its OWN DNS verification (a CNAME/A record for the 'blog' host) before it resolves; call add_domain/verify_domain again for that new row after connecting. | |
| publicationId | Yes | Blog publication ID (from list_blogs) |