> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tiro.ooo/llms.txt
> Use this file to discover all available pages before exploring further.

# Note Document イベント

> NoteDocument リソースに関する webhook イベント

export const EventBaseStructure = {
  id: "evt_01J9ABCDEF",
  type: "note.created",
  createdAt: "2025-09-05T07:12:34Z",
  workspaceGuid: "ws_a1b2c3d4",
  data: {
    resourceType: "Note",
    resourceId: "note-guid-123",
    resource: {
      "title": "Meeting Note"
    }
  }
};

export const Json = ({data, lang = 'json', spaces = 2}) => <pre>
    <code className={`language-${lang}`}>{JSON.stringify(data, null, spaces)}</code>
  </pre>;

## 概要

NoteDocument リソースに関する webhook イベントです。すべての note document イベントは `resourceType: "NoteDocument"` を使用します。

## イベントの詳細

### note\_document.generated

* ドキュメントのすべてのセクションが生成されたとき

### note\_document.updated

* ユーザーがセクションの内容を変更したとき
* ドキュメントの metadata が変更されたとき

### note\_document.deleted

* ドキュメントが削除されたとき

## payload の例

<Json
  data={{
...EventBaseStructure,
type: "note_document.generated",
data: {
...EventBaseStructure.data,
resourceType: "NoteDocument",
resourceId: "456",
resource: {
  id: 456,
  noteGuid: "note-abc123-def456",
  note: {
    guid: "note-abc123-def456",
    webUrl: "https://tiro.ooo/n/xQ8YKnZUPGHNB"
  },
  template: {
    id: 789,
    title: "회의록"
  },
  locale: "ko_KR",
  sections: [
    {
      content: {
        type: "text/markdown",
        content: "회의 요약 내용..."
      },
      createdAt: "2025-10-23T12:00:00Z"
    }
  ],
  createdAt: "2025-10-23T11:55:00Z",
  updatedAt: "2025-10-23T11:55:00Z"
}
}
}}
/>

## リソースデータ

詳細なスキーマ情報については、[API Reference](/api-reference/note-document/get-note-document) の `NoteDocument` の定義をご覧ください。
