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

# Read an event subscription

> IDを基準に特定のイベント配信登録を取得します。

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/legacy/v3/webhooks-webhooks-v3.json GET /webhooks/v3/{appId}/subscriptions/{subscriptionId}
openapi: 3.0.1
info:
  title: Webhooks Webhooks
  description: >-
    Provides a way for apps to subscribe to certain change events in HubSpot.
    Once configured, apps will receive event payloads containing details about
    the changes at a specified target URL. There can only be one target URL for
    receiving event notifications per app.
  version: v3
  x-hubspot-product-tier-requirements:
    marketing: FREE
    sales: FREE
    service: FREE
    cms: FREE
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
  x-hubspot-related-documentation:
    - name: Webhooks Guide
      url: https://developers.hubspot.com/docs/guides/api/webhooks/overview
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Basic
  - name: Batch
paths:
  /webhooks/v3/{appId}/subscriptions/{subscriptionId}:
    get:
      tags:
        - Basic
      summary: イベント配信登録を読み取る
      description: IDを基準に特定のイベント配信登録を取得します。
      operationId: get-/webhooks/v3/{appId}/subscriptions/{subscriptionId}_getById
      parameters:
        - name: appId
          in: path
          description: ターゲットアプリのID。
          required: true
          style: simple
          explode: false
          schema:
            type: integer
            format: int32
        - name: subscriptionId
          in: path
          description: ターゲット配信登録のID。
          required: true
          style: simple
          explode: false
          schema:
            type: integer
            format: int32
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionResponse'
              example:
                active: true
                createdAt: '2019-10-30T03:30:17.883Z'
                eventType: contact.propertyChange
                id: '12'
                propertyName: email
                updatedAt: '2019-11-30T03:30:17.883Z'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - developers-read
        - oauth2:
            - private-apps-read
components:
  schemas:
    SubscriptionResponse:
      required:
        - active
        - createdAt
        - eventType
        - id
      type: object
      properties:
        active:
          type: boolean
          description: >-
            配信登録が有効であるか一時停止中であるか。trueの場合、配信登録でWebhook通知が送信されます。falseの場合、配信登録は一時停止中であり、通知は送信されません。
        createdAt:
          type: string
          description: Webhook配信登録が作成された時刻のタイムスタンプ（ISO 8601形式）（例：2020-02-29T12:30:00Z）。
          format: date-time
        eventType:
          type: string
          description: >-
            待機するイベントのタイプ。許容される値には、contact.creation、contact.deletion、contact.propertyChangeのほか、その他のCRMオブジェクトやカスタムオブジェクトの同様のイベントタイプが含まれます。
          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: 待機するイベントの名前。標準のeventType列挙値以外のカスタムイベントタイプを指定するためにカスタムオブジェクトで使用されます。
        id:
          type: string
          description: Webhook配信登録の固有ID。
        objectTypeId:
          type: string
          description: >-
            サブスクリプションのオブジェクトタイプのID。標準のCRMオブジェクト（例：「コンタクト」、「会社」、「取引」）のほか、カスタムオブジェクトサブスクリプションの場合はカスタムオブジェクトIDを指定できます。
        propertyName:
          type: string
          description: 変更をモニタリングするプロパティーの内部名。eventTypeがpropertyChangeの場合のみ適用されます。
        updatedAt:
          type: string
          description: Webhook配信登録が最後に更新された時刻のタイムスタンプ（ISO 8601形式）（例：2020-02-29T12:30:00Z）。
          format: date-time
      description: Complete details for an event subscription.
    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: ''

````