---
title: "What a copy gets"
description: "Says what a copy of the site would get, for a page to show before it copies: the site's name and address, whether it has functions and a database (whose tables a copy gets without rows), and…"
canonical: "https://www.cool.computer/docs/api-reference/publishing/what-a-copy-gets"
---
# What a copy gets

> Says what a copy of the site would get, for a page to show before it copies: the site's name and address, whether it has functions and a database (whose tables a copy gets without rows), and…

```http
GET https://api.cool.computer/api/computers/{id}/copy
```

Says what a copy of the site would get, for a page to show before it copies: the site's name and address, whether it has functions and a database (whose tables a copy gets without rows), and keeps_secrets, true only for the owner's own copy of a site whose functions use a secret set, since no one else's copy gets one. It refuses what POST /api/computers/{id}/copy would refuse about the site (who may copy it, a VM, nothing published) and about the account's site limits (403 site_limit_reached, 429 artifact_creation_rate_exceeded), and reads nothing but records; the copy's name, and anything that fails while publishing, are checked by the POST.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Parameters

- `id` (path, string, at least 1 characters, required): The computer's name, such as agent-atlas, or its id (cmp_…). Every caller may use either, the computer's own runtime token included.

## Responses

- `200`: What a copy would get.
  - `application/json` (object)
    - `name` (string, required): The site's name.
    - `url` (string, required): The site's address.
    - `functions` (boolean, required): Its cool.json declares functions, which a copy gets.
    - `database` (boolean, required): It has a database, whose tables, indexes, views and triggers a copy gets without rows.
    - `keeps_secrets` (boolean, required): The copy keeps the site's secret set: only the owner's own copy of a site whose functions use one.
- `401`: Unauthorized.
- `403`: Forbidden. `copy_not_allowed`: its owner has not turned copies on. `site_limit_reached`: a Free account holds all the sites it may.
- `404`: Not Found: no site the caller may open.
- `409`: Conflict. `computer_has_vm`: only a site without a VM can be copied for now. `nothing_to_copy`: the site has nothing published.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `default`: A machine-readable API error with a stable code and recovery instruction.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl "https://api.cool.computer/api/computers/$PARAM_ID/copy" \
  -H "authorization: Bearer $TOKEN"
```
