---
title: "Email a guest comment code"
method: POST
path: "/v1/data/{artifactId}/comments/_guest/code"
tags: ["Data"]
---

# Email a guest comment code

`POST /v1/data/{artifactId}/comments/_guest/code`

## Request

- Base URL: `https://shareout.site`
- URL: `https://shareout.site/v1/data/{artifactId}/comments/_guest/code`
- Auth: none required

Emails a 6-digit code (valid 10 minutes) so a person with no account can comment as a guest. Only when guest comments are on and the requester can already open the page without an account (public, or a password page whose access cookie the request carries). Must come from a page on this instance (`Origin`). Limits: 10 per hour per IP, 6 per hour per address, 30 s between sends.

## Request body

- object
  - `name` string, required
  - `email` string, email, required

## Response `200`

`{ success: true, data: { sent: true } }`

## Other responses

- `400`: `VALIDATION_ERROR`
- `403`: `GUEST_COMMENTS_DISABLED`, or `FORBIDDEN` (Origin)
- `429`: `RATE_LIMIT_EXCEEDED`

## Changes

- **2026-10-16** `8c602e339d5d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/shareout/apis/shareout-rest-api/changes/v1/data/:artifactId/comments/_guest/code/post.md)

---

[API](https://skmtc.dev/shareout/apis/shareout-rest-api.md) - [All operations](https://skmtc.dev/shareout/apis/shareout-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shareout/apis/shareout-rest-api/revisions/1e3f7fd34f6d?raw)
