メインコンテンツへスキップ

Documentation Index

Fetch the complete documentation index at: https://docs.oneinbox.ai/llms.txt

Use this file to discover all available pages before exploring further.

開始前

必要なもの: api_key と POST を受け付ける公開 HTTPS URL。 一般的なイベント:
イベントタイミング
call.started通話接続
call.ended通話終了
transcript.final完全なトランスクリプト準備完了

1

1. Webhook を作成

curl -X POST https://api.oneinbox.ai/v1/webhooks \
  -H "Authorization: Bearer <api_key>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Call events",
    "url": "https://example.com/webhook",
    "events": ["call.started", "call.ended", "transcript.final"]
  }'
2

2. 配信をテスト

URL へテストペイロードを送信:
curl -X POST https://api.oneinbox.ai/v1/webhooks/<webhook_id>/test \
  -H "Authorization: Bearer <api_key>"
サーバーログで受信リクエストを確認します。
3

3. 一覧・更新

# 一覧
curl https://api.oneinbox.ai/v1/webhooks \
  -H "Authorization: Bearer <api_key>"

# イベント更新
curl -X PATCH https://api.oneinbox.ai/v1/webhooks/<webhook_id> \
  -H "Authorization: Bearer <api_key>" \
  -H "Content-Type: application/json" \
  -d '{
    "events": ["call.started", "call.ended"]
  }'

# 削除
curl -X DELETE https://api.oneinbox.ai/v1/webhooks/<webhook_id> \
  -H "Authorization: Bearer <api_key>"

API リファレンス

Webhook 作成 · Webhook テスト · Webhook 一覧