メインコンテンツへスキップ
POST
/
webhooks
/
2026-03
/
{appId}
/
subscriptions
イベント配信登録を作成
curl --request POST \
  --url https://api.hubapi.com/webhooks/2026-03/{appId}/subscriptions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "active": true,
  "eventTypeName": "<string>",
  "objectTypeId": "<string>",
  "propertyName": "<string>"
}
'
{
  "active": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "eventTypeName": "<string>",
  "objectTypeId": "<string>",
  "propertyName": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Supported products

承認

Authorization
string
header
必須

The access token received from the authorization server in the OAuth 2.0 flow.

パスパラメータ

appId
integer<int32>
必須

アプリのID。

ボディ

application/json
active
boolean
必須

配信登録が有効かどうかを示すブール値。

eventType
enum<string>
必須

配信登録するイベントのタイプを表す文字列。有効な値には、さまざまなプロパティーの変更、作成、削除、結合、復元、関連付けの変更、イベントの完了が含まれます。

利用可能なオプション:
company.associationChange,
company.creation,
company.deletion,
company.merge,
company.propertyChange,
company.restore,
contact.associationChange,
contact.creation,
contact.deletion,
contact.merge,
contact.privacyDeletion,
contact.propertyChange,
contact.restore,
conversation.creation,
conversation.deletion,
conversation.newMessage,
conversation.privacyDeletion,
conversation.propertyChange,
deal.associationChange,
deal.creation,
deal.deletion,
deal.merge,
deal.propertyChange,
deal.restore,
event.completed,
line_item.associationChange,
line_item.creation,
line_item.deletion,
line_item.merge,
line_item.propertyChange,
line_item.restore,
object.associationChange,
object.creation,
object.deletion,
object.merge,
object.propertyChange,
object.restore,
product.creation,
product.deletion,
product.merge,
product.propertyChange,
product.restore,
ticket.associationChange,
ticket.creation,
ticket.deletion,
ticket.merge,
ticket.propertyChange,
ticket.restore
eventTypeName
string

イベントタイプの人間が読める名前を示す文字列。

objectTypeId
string

配信登録に関連付けられているオブジェクトタイプのIDを表す文字列。

propertyName
string

イベントタイプに関連する特定のプロパティー名を示す文字列(該当する場合)。

レスポンス

successful operation

active
boolean
必須

配信登録が現在有効かどうかを示すブール値。

createdAt
string<date-time>
必須

配信登録が作成された日時(ISO 8601形式)。

eventType
enum<string>
必須

配信登録を発動するイベントのタイプ。有効な値には、さまざまなHubSpotオブジェクトのプロパティー変更、作成、削除、結合、復元、関連付けの変更などがあります。

利用可能なオプション:
company.associationChange,
company.creation,
company.deletion,
company.merge,
company.propertyChange,
company.restore,
contact.associationChange,
contact.creation,
contact.deletion,
contact.merge,
contact.privacyDeletion,
contact.propertyChange,
contact.restore,
conversation.creation,
conversation.deletion,
conversation.newMessage,
conversation.privacyDeletion,
conversation.propertyChange,
deal.associationChange,
deal.creation,
deal.deletion,
deal.merge,
deal.propertyChange,
deal.restore,
event.completed,
line_item.associationChange,
line_item.creation,
line_item.deletion,
line_item.merge,
line_item.propertyChange,
line_item.restore,
object.associationChange,
object.creation,
object.deletion,
object.merge,
object.propertyChange,
object.restore,
product.creation,
product.deletion,
product.merge,
product.propertyChange,
product.restore,
ticket.associationChange,
ticket.creation,
ticket.deletion,
ticket.merge,
ticket.propertyChange,
ticket.restore
id
string
必須

配信登録の固有ID。int64形式の整数です。

eventTypeName
string

配信登録のイベントタイプの名前。

objectTypeId
string

配信登録に関連付けられているオブジェクトタイプのID。文字列です。

propertyName
string

配信登録イベントに関連付けられているプロパティーの名前(該当する場合)。

updatedAt
string<date-time>

配信登録が最後に更新された日時(ISO 8601形式)。

最終更新日 2026年4月13日