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

# Screenshot Website

`POST /websites/{website_id}/screenshot`

## Request

- Base URL: `https://api.moda.app/v1`
- URL: `https://api.moda.app/v1/websites/{website_id}/screenshot`
- Auth: HTTP bearer

Render up to 3 of the site's pages to images; returns short-lived signed URLs.

Renders the DRAFT (current saved content) — identical to the live site
whenever ``has_unpublished_changes`` is false. Uses the shared website
render core, so it is the same JS-on, full-page capture the in-app export
produces. Binary delivery matches the export pattern: signed URLs, never
inlined bytes.

Requires edit permission on the site (renders are an editor affordance and
consume scarce browser capacity — the same gate as the in-app export).

## Path parameters

- `website_id` string, uuid, required

## Headers

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

## Request body

- WebsiteScreenshotRequest
  - `paths` string[]: Page route paths to capture (default: the homepage). At most 3 per call.
  - `viewport` 'desktop' | 'tablet' | 'mobile': Viewport to render at (desktop=1440, tablet=768, mobile=375 CSS px wide).
  - `format` 'jpg' | 'png': Image encoding of the captures.
  - `scale` integer, nullable: Device scale factor (default 2; a capture over the pixel budget steps down automatically).

## 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/screenshot/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)
