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

# community.comment-thread@1 · OpenVibe.Services

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

# CommunityCommentThread `community.comment-thread@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/community/comment-thread.v1.json`](/docs/contracts/community.comment-thread.json)

community.comment-thread@1: one embeddable comment thread on OpenVibe.Community (server/comments/service.js shapeThread): the entity it belongs to, its visibility and comment count. id is the sequential id for services and the access id (cth\_…) for everyone else; a hidden thread shows moderators its count, others only that it is hidden.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `id` | integer \| string | yes |  |  |
| `access_id` | string | yes |  | - `pattern ^cth_` |
| `ref` | [common.entity-ref](/docs/contracts/common.entity-ref) | yes |  |  |
| `visibility` | enum | yes |  | - `one of "public", "hidden", "locked"` |
| `comment_count` | integer \| null | yes |  |  |
| `created_at` | string \| null |  |  | - `format date-time` |
| `updated_at` | string \| null |  |  | - `format date-time` |

## Examples

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

 Valid: vod

~~~~
{
  "id": "cth_Ab3dE5gH7jK9mN1pQ3sT5v",
  "access_id": "cth_Ab3dE5gH7jK9mN1pQ3sT5v",
  "ref": {
    "service": "live",
    "type": "vod",
    "id": "med_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "visibility": "public",
  "comment_count": 3,
  "created_at": "2026-09-20T10:00:00.000Z",
  "updated_at": "2026-09-25T18:00:00.000Z"
}
~~~~

Rejected: bad-visibility

~~~~
{
  "id": "cth_Ab3dE5gH7jK9mN1pQ3sT5v",
  "access_id": "cth_Ab3dE5gH7jK9mN1pQ3sT5v",
  "ref": {
    "service": "live",
    "type": "vod",
    "id": "med_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "visibility": "archived",
  "comment_count": 3,
  "created_at": "2026-09-20T10:00:00.000Z",
  "updated_at": "2026-09-25T18:00:00.000Z"
}
~~~~

## Validate

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