> ## 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.

# 이벤트 구조

> Tiro 웹훅 이벤트의 공통 페이로드 구조, 지원 이벤트 타입, 리소스 매핑을 구현 예시와 함께 확인하세요.

## 개요

모든 웹훅 이벤트는 아래 공통 구조를 사용해요.

## 표준 Event Structure

<pre />

## 필드 설명

### 최상위 필드

**id** `string` *required*

이 webhook 이벤트의 고유 식별자예요. idempotency와 중복 제거에 사용하세요.

**type** `string` *required*

이벤트 타입 식별자예요 (예: `note.created`, `note.recording.completed`).

**createdAt** `string` *required*

이벤트가 발생한 시각의 ISO-8601 timestamp예요. 이벤트 정렬에 사용하세요.

**workspaceGuid** `string | null`

웹훅 엔드포인트에 연결된 워크스페이스의 GUID예요. 워크스페이스 웹훅은 그 워크스페이스, 계정 웹훅은 만든 사용자의 개인 워크스페이스이고, 조직 웹훅은 `null`이에요. 이벤트가 실제로 생긴 워크스페이스와 다를 수 있으니 출처는 `sourceWorkspaceGuid`로 확인하세요.

**sourceWorkspaceGuid** `string`

이벤트가 발생한 워크스페이스의 GUID예요. 계정 웹훅이나 조직 웹훅처럼 한 엔드포인트가 여러 워크스페이스의 이벤트를 받을 때 이 값으로 출처를 구분하세요. 값이 없으면 필드가 빠져요.

**organizationGuid** `string | null`

이벤트가 속한 조직의 GUID예요. 조직 단위 webhook에서만 채워지며, 조직 웹훅이 아니면 `null`이에요.

**data** `object` *required*

리소스 정보를 담고 있는 이벤트별 데이터예요.

### Data 오브젝트 필드

**data.resourceType** `string` *required*

이벤트를 발생시킨 리소스의 타입이에요. 예: `Note`, `NoteDocument`, `NoteSummary`, `FolderNoteRelation`, `VoiceFileJob`.

**data.resourceId** `string` *required*

리소스의 고유 식별자예요. 라우팅과 중복 제거에 사용하세요.

**data.resource** `object` *required*

실제 리소스 데이터예요. 구조는 리소스 타입에 따라 달라지며 Tiro의 표준 스키마를 따라요.

## 이벤트 타입

지원하는 이벤트 타입 예시예요.

```json theme={"system"}
"note.created"
"note.deleted"
"note.user_content.updated"
"note.recording.completed"
"note.ended"
"note.participants.updated"
"note_document.generated"
"note_document.updated"
"note_document.deleted"
"note_summary.generated"
"note_summary.updated"
"note_summary.deleted"
"folder.note.added"
"folder.note.removed"
"voice_file_job.created"
"voice_file_job.completed"
"voice_file_job.failed"
"voice_file_job.deleted"
```

## Voice File Job 이벤트에는 어떤 데이터가 포함되나요?

`voice_file_job.*` 이벤트의 `data.resource`는 작업 메타데이터만 담아요. Tiro는 오디오와 전사 본문을 웹훅으로 전송하지 않아요.

| 필드 | 타입 | 설명 |
| - | - | - |
| `id` | string | Voice File Job ID예요. |
| `workspaceGuid` | string | 작업이 속한 워크스페이스 GUID예요. |
| `status` | string | 이벤트 발생 뒤의 상태예요. 삭제 이벤트에서는 `DELETED`예요. |
| `processCompletedAt` | string \| null | 처리를 완료했거나 실패한 시각이에요. 아직 완료하지 않았으면 `null`이에요. |
| `errorMessage` | string \| null | 실패 이유예요. 실패 이벤트가 아니면 `null`이에요. |

## 리소스 타입 매핑

| Event Type | Resource Type | Schema Reference |
| - | - | - |
| `note.*` | `Note` | [Note API](https://docs.tiro.ooo/api-reference/note/get-note.md) |
| `note_document.*` | `NoteDocument` | [NoteDocument Events](https://docs.tiro.ooo/ko/developers/webhooks/events/note-document-events.md) |
| `note_summary.*` | `NoteSummary` | [NoteSummary Events](https://docs.tiro.ooo/ko/developers/webhooks/events/note-summary-events.md) |
| `folder.*` | `FolderNoteRelation` | [FolderNote Events](https://docs.tiro.ooo/ko/developers/webhooks/events/folder-note-events.md) |
| `voice_file_job.*` | `VoiceFileJob` | [음성 파일 API 개요](https://docs.tiro.ooo/ko/developers/voice-file/overview.md) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.