---
title: "Publish Website"
method: POST
path: "/websites/{website_id}/publish"
tags: ["websites"]
---

# Publish Website

`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

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.

## Path parameters

- `website_id` string, uuid, required

## Headers

- `Moda-Version` '2026-04-12' | '2026-05-01'

## Request body

- WebsitePublishRequest
  - `slug_prefix` string, 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 `200`

Successful Response

- object

## Other responses

- `401`: Authentication required.
- `402`: Insufficient credits for a metered operation.
- `403`: Permission denied for this scope.
- `404`: Resource not found.
- `409`: Conflict (idempotency / resource state).
- `422`: Request validation failed.
- `429`: Rate limit exceeded.
- `500`: Internal error.

## Changes

- **2026-11-03** `9ac6a3abc0f8`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/moda/apis/moda-public-api/changes/websites/:website_id/publish/post.md)

---

[API](https://skmtc.dev/moda/apis/moda-public-api.md) - [All operations](https://skmtc.dev/moda/apis/moda-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/moda/apis/moda-public-api/revisions/9ac6a3abc0f8?raw)
