websites

Publish Website

Changed on

Publish (or republish) the site to its public URL.

review_status: "pending_review" means the publish succeeded but the site is held for review before it serves.

post/websites/{website_id}/publish

Request

  • Base URL
    https://api.moda.app/v1
  • URL
    https://api.moda.app/v1/websites/{website_id}/publish
  • Auth
    HTTP bearer

Path parameters

website_idstring uuid required

Headers

Moda-Version'2026-04-12' | '2026-05-01'
Example:2026-05-01

Calendar-dated API version pin. New integrations should pin 2026-05-01 to opt into the newest response shapes. For back-compat the server also accepts requests with no header and resolves them to the current default (today: 2026-04-12); that default advances on each sunset date. Any unsupported value returns 400 unsupported_version.

Request body

slug_prefixstring nullable

Optional subdomain hint applied on the FIRST publish only (the final slug appends a random suffix). Ignored on republish — the site keeps its slug.

Response

Successful Response

object required

Changes