# A visitor's comment on a published page

`POST /public/site/comments` · Rivier · hosting

A visitor's comment on a published page: checked for spam and abuse; doubtful ones wait for the owner.

- Scope: hosting:read
- Sdk: hosting.siteComment.submit
- Cli: hosting site comment submit
- Publishable: yes

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "site": {
      "type": "string",
      "format": "uuid"
    },
    "path": {
      "type": "string",
      "maxLength": 120
    },
    "name": {
      "type": "string",
      "minLength": 1,
      "maxLength": 60
    },
    "email": {
      "type": "string",
      "maxLength": 200
    },
    "text": {
      "type": "string",
      "minLength": 1,
      "maxLength": 1500
    },
    "hp": {
      "type": "string",
      "maxLength": 200
    },
    "locale": {
      "type": "string",
      "maxLength": 20
    }
  },
  "required": [
    "site",
    "path",
    "name",
    "text"
  ],
  "additionalProperties": false
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/public/site/comments' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "site": "string",
  "path": "string",
  "name": "string",
  "text": "string"
}'
```
