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

# news.story.created@1 · OpenVibe.Services

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

# NewsStoryCreatedPayload `news.story.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: news
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/events/payloads/news.story.created.v1.json`](/docs/contracts/news.story.created.json)

news.story.created v1 (OpenVibe.News server/domain/stories.js create). An editor opened a draft story (news.story.create), in the transaction that created it; when it was opened from a cluster, that cluster's active items (not duplicates, not removed upstream) were attached as its first sources. A first text sent with the request becomes revision 1 in the same transaction and is not announced here. Deliberately left out: the working headline, slug and any text (drafts are not public). Envelope: subject { type: story, id: sty\_… }, visibility internal, priority low, actor the editor { type: user } (also when a service acts for a signed-in editor), otherwise the calling service.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `cluster_id` | string \| null | yes | The cluster it was opened from, followed through merges; null for a story opened without one. | - `pattern ^clu_[0-9A-HJKMNP-TV-Z]{26}$` |
| `topic` | string \| null | yes | Slug of the story's topic (news\_topics); null when none was given. | - `minLength 1`<br>- `maxLength 60` |
| `sources` | integer | yes | How many source items were attached at creation. | - `minimum 0` |

## Examples

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

 Valid: blank

~~~~
{
  "cluster_id": null,
  "topic": null,
  "sources": 0
}
~~~~

Valid: from-cluster

~~~~
{
  "cluster_id": "clu_01K5RZ3M8R5D1F7H3K9N2Q4S6T",
  "topic": "space",
  "sources": 3
}
~~~~

Rejected: headline-leaked

~~~~
{
  "cluster_id": "clu_01K5RZ3M8R5D1F7H3K9N2Q4S6T",
  "topic": "space",
  "sources": 3,
  "headline": "Europa Clipper is on its way to Jupiter"
}
~~~~

Rejected: missing-sources

~~~~
{
  "cluster_id": "clu_01K5RZ3M8R5D1F7H3K9N2Q4S6T",
  "topic": "space"
}
~~~~

Rejected: negative-sources

~~~~
{
  "cluster_id": "clu_01K5RZ3M8R5D1F7H3K9N2Q4S6T",
  "topic": null,
  "sources": -1
}
~~~~

## Validate

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