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

# Create an event subscription

> 指定されたアプリの新しいイベント配信登録を作成します。

export const SupportedProducts = ({marketing, sales, service, cms, marketingLevel, salesLevel, serviceLevel, cmsLevel}) => {
  const translations = {
    header: "サポートされる製品",
    description: "次のいずれかの製品またはそれ以上が必要です。",
    productNames: {
      marketing: "Marketing Hub",
      sales: "Sales Hub",
      service: "Service Hub",
      cms: "Content Hub"
    },
    tiers: {
      free: "無料ツール",
      starter: "Starter",
      professional: "Professional",
      enterprise: "Enterprise"
    }
  };
  const translateTier = tier => {
    if (!tier) return '';
    const lowerTier = tier.toLowerCase();
    return translations.tiers[lowerTier] || tier;
  };
  const products = [{
    name: marketing ? translations.productNames.marketing : '',
    level: translateTier(marketingLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/marketing-bolt.svg",
    alt: "Marketing Hub"
  }, {
    name: sales ? translations.productNames.sales : '',
    level: translateTier(salesLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/sales-star.svg",
    alt: "Sales Hub"
  }, {
    name: service ? translations.productNames.service : '',
    level: translateTier(serviceLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/service-heart.svg",
    alt: "Service Hub"
  }, {
    name: cms ? translations.productNames.cms : '',
    level: translateTier(cmsLevel),
    icon: "https://mintlify-assets.b-cdn.net/Icons/content-play.svg",
    alt: "Content Hub"
  }].filter(product => product.name && product.level);
  if (products.length === 0) return null;
  return <div>
      <div className="text-sm mb-2">{translations.description}</div>
      <div className={`grid ${products.length === 1 ? 'grid-cols-1' : 'grid-cols-2'} gap-1.5`}>
        {products.map((product, index) => <div key={index} style={{
    display: 'flex',
    alignItems: 'center'
  }}>
            <img src={product.icon} alt={product.alt} className="w-3.5 h-3.5 mr-1.5 mt-2.5 mb-2.5 flex-shrink-0 align-middle" />
            <span className="font-medium mr-1 text-sm">{product.name} -</span>
            <span className="text-sm">{product.level}</span>
          </div>)}
      </div>
    </div>;
};

<Accordion title="Supported products" defaultOpen="true" icon="cubes">
  <SupportedProducts marketing={true} sales={true} service={true} cms={true} marketingLevel="FREE" salesLevel="FREE" serviceLevel="FREE" cmsLevel="FREE" />
</Accordion>


## OpenAPI

````yaml specs/2026-03/webhooks-webhooks-v2026-03.json POST /webhooks/2026-03/{appId}/subscriptions
openapi: 3.0.1
info:
  title: Webhooks Webhooks
  description: Basepom for all HubSpot Projects
  version: 2026-03
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: FREE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Advanced
  - name: Basic
  - name: Batch
paths:
  /webhooks/2026-03/{appId}/subscriptions:
    post:
      tags:
        - Basic
      summary: イベント配信登録を作成
      description: 指定されたアプリの新しいイベント配信登録を作成します。
      operationId: post-/webhooks/2026-03/{appId}/subscriptions_create
      parameters:
        - name: appId
          in: path
          description: アプリのID。
          required: true
          style: simple
          explode: false
          schema:
            type: integer
            format: int32
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubscriptionCreateRequest'
        required: true
      responses:
        '201':
          description: successful operation
          headers:
            Location:
              description: URL of the newly created resource
              style: simple
              explode: false
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionResponse'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - developers-write
        - oauth2:
            - private-apps-write
components:
  schemas:
    SubscriptionCreateRequest:
      required:
        - active
        - eventType
      type: object
      properties:
        active:
          type: boolean
          description: 配信登録が有効かどうかを示すブール値。
        eventType:
          type: string
          description: >-
            配信登録するイベントのタイプを表す文字列。有効な値には、さまざまなプロパティーの変更、作成、削除、結合、復元、関連付けの変更、イベントの完了が含まれます。
          enum:
            - 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:
          type: string
          description: イベントタイプの人間が読める名前を示す文字列。
        objectTypeId:
          type: string
          description: 配信登録に関連付けられているオブジェクトタイプのIDを表す文字列。
        propertyName:
          type: string
          description: イベントタイプに関連する特定のプロパティー名を示す文字列（該当する場合）。
    SubscriptionResponse:
      required:
        - active
        - createdAt
        - eventType
        - id
      type: object
      properties:
        active:
          type: boolean
          description: 配信登録が現在有効かどうかを示すブール値。
        createdAt:
          type: string
          description: 配信登録が作成された日時（ISO 8601形式）。
          format: date-time
        eventType:
          type: string
          description: >-
            配信登録を発動するイベントのタイプ。有効な値には、さまざまなHubSpotオブジェクトのプロパティー変更、作成、削除、結合、復元、関連付けの変更などがあります。
          enum:
            - 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:
          type: string
          description: 配信登録のイベントタイプの名前。
        id:
          type: string
          description: 配信登録の固有ID。int64形式の整数です。
        objectTypeId:
          type: string
          description: 配信登録に関連付けられているオブジェクトタイプのID。文字列です。
        propertyName:
          type: string
          description: 配信登録イベントに関連付けられているプロパティーの名前（該当する場合）。
        updatedAt:
          type: string
          description: 配信登録が最後に更新された日時（ISO 8601形式）。
          format: date-time
    Error:
      required:
        - category
        - correlationId
        - message
      type: object
      properties:
        category:
          type: string
          description: エラーカテゴリー。
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー状態に関する背景情報で、追加プロパティーがあるオブジェクトとして表されます。
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        correlationId:
          type: string
          description: リクエストの固有ID。UUID形式です。エラー報告またはサポートチケットには必ずこの値を含めてください。
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: エラーに関する詳細情報を提供する配列で、各項目はErrorDetailオブジェクトです。
          items:
            $ref: '#/components/schemas/ErrorDetail'
        links:
          type: object
          additionalProperties:
            type: string
          description: >-
            エラーに関するドキュメントまたは推奨される修正手順が含まれる関連付けられたURIへのリンク名の対応付けで、文字列プロパティーがあるオブジェクトとして表されます。
        message:
          type: string
          description: エラーと、該当する場合は修正手順を記した人間が理解できるメッセージ。文字列です。
          example: An error occurred
        subCategory:
          type: string
          description: エラーに関するより具体的な詳細が含まれる特定のカテゴリーで、文字列として表されます。
      example:
        message: Invalid input (details will vary based on the error)
        correlationId: aeb5f871-7f07-4993-9211-075dc63e7cbf
        category: VALIDATION_ERROR
        links:
          knowledge-base: https://www.hubspot.com/products/service/knowledge-base
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: エラーの詳細に関連付けられたステータスコード。この文字列は、参照用の標準化されたエラーコードを提供します。
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー条件に関する背景情報。各キーがコンテキスト名で、値が詳細情報を提供する文字列の配列であるオブジェクトとして表されます。
          example: '{missingScopes=[scope1, scope2]}'
        in:
          type: string
          description: エラーが見つかったフィールドまたはパラメーターの名前。エラーの原因を特定するのに役立つ文字列です。
        message:
          type: string
          description: エラーと、該当する場合は修正手順を記した人間が理解できるメッセージ。これは必須フィールドです。
        subCategory:
          type: string
          description: エラーに関するより具体的な詳細を含む特定のカテゴリー。この文字列は、エラーをさらに分類するのに役立ちます。
  responses:
    Error:
      description: An error occurred.
      content:
        '*/*':
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://app.hubspot.com/oauth/authorize
          tokenUrl: https://api.hubapi.com/oauth/v1/token
          scopes:
            developers-read: ''
            developers-write: ''
            private-apps-read: ''
            private-apps-write: ''
            webhooks-journal-data-access: ''
            webhooks-journal-snapshot-management: ''
            webhooks-journal-subscription-management: ''
            webhooks-journal-subscription-read: ''

````