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

# Submit details of an inbound call to the CRM.

> このエンドポイントを使用すると、着信通話に関する情報をCRMシステムに送信できます。リクエストには、外部コールID、コールステータス、関連する電話番号などの詳細を含める必要があります。この操作は、CRM内での着信通話データのログ記録と管理に役立ちます。

export const ScopesList = ({scopes = [], description = "この API には、次のいずれかのスコープが必要です。"}) => {
  if (!scopes || scopes.length === 0) {
    return null;
  }
  const sortedScopes = scopes.sort((a, b) => a.localeCompare(b));
  return <div>
      <div className="text-sm mb-2">{description}</div>
      <div>
        {sortedScopes.map((scope, index) => <div key={index}>
            <code>
              <span className="text-xs">{scope}</span>
            </code>
          </div>)}
      </div>
    </div>;
};

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>;
};

<AccordionGroup>
  <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>

  <Accordion title="Required Scopes" icon="key">
    <ScopesList
      scopes={[
  'crm.schemas.contacts.write',
  'crm.objects.contacts.write',
  'crm.objects.contacts.highly_sensitive.write.v2',
  'crm.objects.contacts.sensitive.write.v2'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/legacy/v3/crm-calling-extensions-v3.json POST /crm/v3/extensions/calling/inbound-call
openapi: 3.0.1
info:
  title: CRM Calling Extensions
  description: Basepom for all HubSpot Projects
  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: Call SDK Guide
      url: >-
        https://developers.hubspot.com/docs/guides/api/crm/extensions/calling-sdk
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Advanced
  - name: Basic
paths:
  /crm/v3/extensions/calling/inbound-call:
    post:
      tags:
        - Advanced
      summary: 着信通話の詳細をCRMに送信します。
      description: >-
        このエンドポイントを使用すると、着信通話に関する情報をCRMシステムに送信できます。リクエストには、外部コールID、コールステータス、関連する電話番号などの詳細を含める必要があります。この操作は、CRM内での着信通話データのログ記録と管理に役立ちます。
      operationId: >-
        post-/crm/v3/extensions/calling/inbound-call_/crm/v3/extensions/calling/inbound-call
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CompletedThirdPartyCallRequest'
        required: true
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompletedThirdPartyCallResponse'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - crm.objects.contacts.highly_sensitive.write.v2
        - oauth2:
            - crm.objects.contacts.write
        - oauth2:
            - crm.objects.contacts.sensitive.write.v2
        - oauth2:
            - crm.schemas.contacts.write
components:
  schemas:
    CompletedThirdPartyCallRequest:
      required:
        - createEngagement
        - engagementProperties
        - externalCallId
        - finalCallStatus
        - fromNumber
        - potentialRecipientUserIds
        - toNumber
      type: object
      properties:
        callStartedTimestamp:
          type: string
          description: 日時文字列として書式設定される、通話が開始された日時を示すタイムスタンプ。
          format: date-time
        createEngagement:
          type: boolean
          description: この通話でエンゲージメントを作成するかどうかを示します。
        durationSeconds:
          type: integer
          description: コールの所要時間（秒）
          format: int32
        engagementProperties:
          type: object
          additionalProperties:
            type: string
          description: エンゲージメントに関連する追加プロパティーが含まれます。
        externalCallId:
          type: string
          description: 外部システムからのコールの固有ID。
        finalCallStatus:
          type: string
          description: >-
            コールの最終ステータス。許容される値は、BUSY、CALLING_CRM_USER、CANCELED、COMPLETED、CONNECTING、FAILED、HOLD、IN_PROGRESS、MISSED、NO_ANSWER、QUEUED、RINGING、UNKNOWNなどです。
          enum:
            - BUSY
            - CALLING_CRM_USER
            - CANCELED
            - COMPLETED
            - CONNECTING
            - FAILED
            - HOLD
            - IN_PROGRESS
            - MISSED
            - NO_ANSWER
            - QUEUED
            - RINGING
            - UNKNOWN
        fromNumber:
          $ref: '#/components/schemas/FormattedPhoneNumber'
        potentialRecipientUserIds:
          type: array
          items:
            type: integer
            format: int32
        toNumber:
          $ref: '#/components/schemas/FormattedPhoneNumber'
        userId:
          type: integer
          description: コールに関連付けられているユーザーのID。
          format: int32
    CompletedThirdPartyCallResponse:
      required:
        - callerIdMatches
      type: object
      properties:
        callerIdMatches:
          type: array
          items:
            oneOf:
              - $ref: '#/components/schemas/ContactCallerId'
              - $ref: '#/components/schemas/CompanyCallerId'
    FormattedPhoneNumber:
      required:
        - e164Number
        - phoneNumberType
      type: object
      properties:
        e164Number:
          type: string
          description: E.164標準形式の電話番号。
        extension:
          type: string
          description: 電話番号に関連付けられている内線番号。
        phoneNumberType:
          type: string
          description: 電話番号のタイプ。許容される値は、FIXED_LINE、MOBILE、VOIPなどです。
          enum:
            - FIXED_LINE
            - FIXED_LINE_OR_MOBILE
            - MOBILE
            - PAGER
            - PERSONAL_NUMBER
            - PREMIUM_RATE
            - SHARED_COST
            - TOLL_FREE
            - UAN
            - UNKNOWN
            - VOICEMAIL
            - VOIP
    ContactCallerId:
      title: CONTACT
      required:
        - callerIdType
        - objectCoordinates
      type: object
      properties:
        callerIdType:
          type: string
          description: 発信者IDのタイプを指定します。デフォルト値はCONTACTです。
          default: CONTACT
          enum:
            - CONTACT
        email:
          type: string
          description: コンタクトのEメールアドレス。
        firstName:
          type: string
          description: コンタクトの名。
        lastName:
          type: string
          description: コンタクトの姓。
        objectCoordinates:
          $ref: '#/components/schemas/ObjectCoordinates'
      x-hubspot-sub-type-impl: true
    CompanyCallerId:
      title: COMPANY
      required:
        - callerIdType
        - objectCoordinates
      type: object
      properties:
        callerIdType:
          type: string
          description: 発信者IDのタイプを指定します。デフォルトで「COMPANY」に設定されます。
          default: COMPANY
          enum:
            - COMPANY
        name:
          type: string
          description: 会社の発信者IDに関連付けられている名前。
        objectCoordinates:
          $ref: '#/components/schemas/ObjectCoordinates'
      x-hubspot-sub-type-impl: true
    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。エラー報告またはサポートチケットには必ずこの値を含めてください
          format: uuid
          example: aeb5f871-7f07-4993-9211-075dc63e7cbf
        errors:
          type: array
          description: エラーに関する詳細情報
          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
    ObjectCoordinates:
      required:
        - objectId
        - objectTypeId
        - portalId
      type: object
      properties:
        objectId:
          type: integer
          description: オブジェクトの固有ID。
          format: int64
        objectTypeId:
          type: string
          description: オブジェクトのタイプID。
        portalId:
          type: integer
          description: ポータルの固有ID。
          format: int32
    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:
            crm.extensions_calling_transcripts.read: ''
            crm.extensions_calling_transcripts.write: ''
            crm.objects.contacts.highly_sensitive.write.v2: ''
            crm.objects.contacts.sensitive.read.v2: ''
            crm.objects.contacts.sensitive.write.v2: ''
            crm.objects.contacts.write: ''
            crm.schemas.contacts.write: ''
            developers-read: ''
            developers-write: ''

````