> ## Documentation Index
> Fetch the complete documentation index at: https://open.manus.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# website.publish

> Deploys the latest checkpoint of a website and sets its visibility. Deployment is asynchronous — poll [website.status](https://open.manus.ai/docs/v2/website.status) until `publish_status` becomes `published` or `failed`. To change metadata (title, visibility) without redeploying, use [website.update](https://open.manus.ai/docs/v2/website.update) instead. See the [Website](https://open.manus.ai/docs/v2/website) guide.

<sup>Questions or issues? Contact us at [api-support@manus.ai](mailto:api-support@manus.ai).</sup>

<Tip>
  **Auth:** API Key only — not available with OAuth tokens.
</Tip>

<Tip>
  **Deploys latest:** Always deploys the website's most recent checkpoint — there is no `version_id` parameter. Use [website.listCheckpoints](https://open.manus.ai/docs/v2/website.listCheckpoints) to inspect history.

  **Asynchronous:** Poll [website.status](https://open.manus.ai/docs/v2/website.status) until `publish_status` is `published` or `failed`.

  **Metadata-only change?** To change title or visibility without redeploying, use [website.update](https://open.manus.ai/docs/v2/website.update) instead. See the [Website](https://open.manus.ai/docs/v2/website) guide.
</Tip>


## OpenAPI

````yaml POST /v2/website.publish
openapi: 3.1.0
info:
  title: Manus OpenAPI v2
  description: >-
    API for integrating Manus into your workflow. All responses are wrapped with
    {"ok": true, "request_id": "...", ...} for success and {"ok": false,
    "request_id": "...", "error": {"code": "...", "message": "..."}} for errors.
  version: 2.0.0
servers:
  - url: https://api.manus.ai
security:
  - ApiKeyAuth: []
paths:
  /v2/website.publish:
    post:
      summary: PublishWebsite
      description: >-
        Deploys the latest checkpoint of a website and sets its visibility.
        Deployment is asynchronous — poll
        [website.status](https://open.manus.ai/docs/v2/website.status) until
        `publish_status` becomes `published` or `failed`. To change metadata
        (title, visibility) without redeploying, use
        [website.update](https://open.manus.ai/docs/v2/website.update) instead.
        See the [Website](https://open.manus.ai/docs/v2/website) guide.
      operationId: openapi.v2.OpenapiV2Service.PublishWebsite
      parameters:
        - name: x-manus-api-key
          in: header
          required: true
          schema:
            type: string
          description: >-
            API key for authentication. This endpoint does not support OAuth2
            tokens. See
            [Authentication](https://open.manus.ai/docs/v2/authentication).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                task_id:
                  type: string
                  description: >-
                    Session UID. Mutually exclusive with `website_id` — exactly
                    one must be provided.
                website_id:
                  type: string
                  description: >-
                    Unique website ID. Mutually exclusive with `task_id` —
                    exactly one must be provided.
                visibility:
                  type: string
                  enum:
                    - public
                    - team
                  description: >-
                    Who can access the published site. Defaults to `public` when
                    omitted or sent as empty string. `team` is only available to
                    team accounts. Sites may cap the maximum allowed visibility
                    — requests that exceed it return `403 permission_denied`.
      responses:
        '200':
          description: >-
            Publish triggered successfully. Deployment is still in progress —
            poll `website.status` for the final state.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
                    description: Whether the request was successful.
                  request_id:
                    type: string
                    description: Unique identifier for this API request.
                  website_id:
                    type: string
                    description: Unique website ID.
                  version_id:
                    type: string
                    description: >-
                      `version_id` of the checkpoint being deployed — always the
                      latest checkpoint of the site.
        4XX:
          description: Error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security: []
components:
  schemas:
    ErrorResponse:
      type: object
      description: Standard error response format returned when a request fails.
      properties:
        ok:
          type: boolean
          example: false
          description: Always false for error responses.
        request_id:
          type: string
          description: >-
            Unique identifier for this API request, useful for debugging with
            support.
        error:
          type: object
          description: Error details.
          properties:
            code:
              type: string
              description: >-
                Machine-readable error code (e.g., "invalid_argument",
                "not_found", "permission_denied", "rate_limited").
            message:
              type: string
              description: Human-readable error description explaining what went wrong.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-manus-api-key

````