---
title: "Open the comment link of a site published without an account"
description: "The web app's comment link page (https://www.<domain>/comment#<computer ID>.<comment key>) sends the key from its fragment here, from the web app's own origin only (another origin is 403)."
canonical: "https://www.cool.computer/docs/api-reference/comments/open-the-comment-link-of-a-site-published-without-an-account"
---
# Open the comment link of a site published without an account

> The web app's comment link page (https://www.<domain>/comment#<computer ID>.<comment key>) sends the key from its fragment here, from the web app's own origin only (another origin is 403).

```http
POST https://api.cool.computer/api/computers/{id}/comment-link
```

The web app's comment link page (https://www.\<domain>/comment#\<computer ID>.\<comment key>) sends the key from its fragment here, from the web app's own origin only (another origin is 403). For the computer's current comment key it sets the HttpOnly cookie commentLinkCookie, which lasts until the computer expires, and answers the computer's address, which the page then opens: that browser reads the board and comments as the link holder until someone claims the computer. A claimed computer has no comment link.

## Authorization

No credential is needed.

## 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.

## Request body

Required.

- `application/json` (object)
  - `comment_key` (string, at least 1 characters, required): The key after the computer ID in the comment link's fragment.

## Responses

- `200`: The cookie is set; open url.
  - `application/json` (object)
    - `url` (string, uri, required): The computer's address.
- `400`: Bad Request.
- `403`: Forbidden: the request did not come from the web app.
- `404`: Not Found. `comment_link_not_found`: the key is not this computer's comment key, or the computer was claimed; open the whole link, or sign in to comment on a claimed site.
- `409`: Conflict. `comment_link_expired`: the computer's 24 hours are over; its publisher publishes again for a new link.
- `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 -X POST "https://api.cool.computer/api/computers/$PARAM_ID/comment-link" \
  -H "content-type: application/json" \
  --data '{"comment_key":"string"}'
```
