---
title: "community.comment.created@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/community.comment.created"
updated: null
---

# community.comment.created@1 · OpenVibe.Services

HTML: [community.comment.created@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/community.comment.created)

# CommunityCommentCreatedPayload `community.comment.created@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: community
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/community.comment.created.v1.json`](/docs/contracts/community.comment.created.json)

community.comment.created v1 (OpenVibe.Community server/events.js, queued in the transaction of the change). A comment was added to a comment thread attached to something on another service (a Live VOD or clip, a channel) or to a paste. Never the body. Envelope: subject { type: comment, id }, visibility public when the item is public else internal, priority low, actor the person or service:community.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `comment_id` | integer | yes |  | - `minimum 1` |
| `thread_access_id` | string | yes |  | - `minLength 1`<br>- `maxLength 64` |
| `ref` | object | yes |  | - `no other fields` |
| `ref.service` | string | yes |  | - `pattern ^[a-z][a-z0-9-]{1,39}$` |
| `ref.type` | string | yes |  | - `pattern ^[a-z][a-z0-9_]{1,39}$` |
| `ref.id` | string | yes |  | - `minLength 1`<br>- `maxLength 200` |
| `author` | one of | yes |  |  |
| `visibility` | enum | yes |  | - `one of "public", "hidden", "locked"` |
| `url` | string \| null | yes | The public page, or null when the item is not public. | - `maxLength 500` |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: example

~~~~
{
  "comment_id": 20,
  "thread_access_id": "ct_abc123",
  "ref": {
    "service": "live",
    "type": "vod",
    "id": "906"
  },
  "author": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "visibility": "public",
  "url": "https://openvibe.community/c/ct_abc123"
}
~~~~

Rejected: carries-content

~~~~
{
  "comment_id": 20,
  "thread_access_id": "ct_abc123",
  "ref": {
    "service": "live",
    "type": "vod",
    "id": "906"
  },
  "author": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "visibility": "public",
  "url": "https://openvibe.community/c/ct_abc123",
  "body": "the content never travels"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('community.comment.created@1', value);   // { valid, errors: [{ path, message }] }
~~~~
