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

# 發佈事件

> 發佈自定義事件以觸發工作流和集成。

將自定義事件發佈到 Theo 事件總線。事件可以觸發工作流、連接器操作和技能激活。

## 身份驗證

需要 Bearer 令牌。參見[身份驗證](/api-reference/authentication)。

## 請求正文

<ParamField body="orgId" type="string" required>
  該事件所屬組織的 UUID。
</ParamField>

<ParamField body="eventType" type="string" required>
  事件類型標識符（例如 `"claim.created"`、`"policy.renewed"`）。
</ParamField>

<ParamField body="payload" type="any">
  任意事件負載數據。
</ParamField>

<ParamField body="sourceConnector" type="string">
  產生該事件的連接器 ID。
</ParamField>

## 請求示例

```bash theme={null}
curl -X POST https://www.hitheo.ai/api/v1/events \
  -H "Authorization: Bearer $THEO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "orgId": "org_abc123",
    "eventType": "claim.created",
    "payload": { "claimId": "CLM-001", "amount": 15000, "type": "auto" }
  }'
```

## 響應

返回已發佈的事件對象，包含生成的 `id` 和時間戳。

## 端點

`POST /api/v1/events`

需要通過 Bearer 令牌進行身份驗證。參見[身份驗證](/api-reference/authentication)。


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