---
title: "Create preview"
method: POST
path: "/v1/replica/{id}/previews"
tags: ["Previews"]
---

# Create preview

`POST /v1/replica/{id}/previews`

## Request

- Base URL: `https://api.replicas.dev`
- URL: `https://api.replicas.dev/v1/replica/{id}/previews`
- Auth: HTTP bearer

Creates a public URL for a port. Set `authenticated` to require Replicas sign-in. Port 3737 is reserved for the Replicas engine. The replica must be active.

## Path parameters

- `id` string, uuid, required

## Headers

- `X-Replicas-Api-Version` '2026-10-07'

## Request body

- object
  - `port` integer, required
  - `authenticated` boolean

## Response `201`

Created

- object
  - `preview` Preview
    - `port` integer, required
    - `public_url` string, uri, required
    - `created_at` string, date-time
    - `system` 'desktop': Set on previews Replicas creates, like the live desktop stream on port 6080

## Other responses

- `400`: Bad request - Missing or invalid parameters
- `401`: Unauthorized - Invalid or missing API key
- `404`: Resource not found
- `409`: Conflict - Resource already exists or operation conflicts with current state
- `500`: Internal server error

---

[API](https://skmtc.dev/replicas/apis/replicas-api.md) - [All operations](https://skmtc.dev/replicas/apis/replicas-api/llms.txt) - [OpenAPI document](https://skmtc.dev/replicas/apis/replicas-api/revisions/2703ac1c9cb7?raw)
