---
title: "Sleep replica"
method: POST
path: "/v1/replica/{id}/sleep"
tags: ["Replica"]
---

# Sleep replica

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

## Request

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

Pauses compute. The replica keeps its files and wakes on the next message.

## Path parameters

- `id` string, uuid, required

## Headers

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

## Response `200`

Sleep accepted

- SleepWorkspaceResponse
  - `success` boolean, required: Whether the sleep request was accepted

## Other responses

- `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)
