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

# Complete a callback

> IDを基準にブロックされた特定のアクション実行を実施します。

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="PROFESSIONAL" salesLevel="PROFESSIONAL" serviceLevel="PROFESSIONAL" cmsLevel="PROFESSIONAL" />
  </Accordion>

  <Accordion title="Required Scopes" icon="key">
    <ScopesList
      scopes={[
  'automation'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/2026-03/automation-actions-v4-v2026-03.json POST /automation/actions/callbacks/2026-03/{callbackId}/complete
openapi: 3.0.1
info:
  title: Automation Actions V4
  description: Basepom for all HubSpot Projects
  version: 2026-03
  x-hubspot-product-tier-requirements:
    marketing: PROFESSIONAL
    sales: PROFESSIONAL
    service: PROFESSIONAL
    cms: PROFESSIONAL
    commerce: PROFESSIONAL
    crmHub: PROFESSIONAL
    dataHub: PROFESSIONAL
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Callbacks
  - name: Definitions
  - name: Functions
  - name: Revisions
paths:
  /automation/actions/callbacks/2026-03/{callbackId}/complete:
    post:
      tags:
        - Callbacks
      summary: コールバックを実施
      description: IDを基準にブロックされた特定のアクション実行を実施します。
      operationId: >-
        post-/automation/actions/callbacks/2026-03/{callbackId}/complete_complete
      parameters:
        - name: callbackId
          in: path
          description: 完了する特定のコールバックの固有ID。
          required: true
          style: simple
          explode: false
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CallbackCompletionRequest'
        required: true
      responses:
        '204':
          description: No content
          content: {}
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - automation
components:
  schemas:
    CallbackCompletionRequest:
      required:
        - outputFields
        - typedOutputs
      type: object
      properties:
        failureReasonType:
          type: string
          description: コールバック完了の失敗理由を示します。
        outputFields:
          type: object
          additionalProperties:
            type: string
          description: コールバックに関連付けられた出力フィールドが含まれており、各フィールドはキーと値のペアとして表されます。
        requestContext:
          description: リクエストが行われるコンテキストを指定します。これは、事前に定義された複数のコンテキストのいずれかになります。
          oneOf:
            - $ref: '#/components/schemas/WorkflowsRequestContext'
            - $ref: '#/components/schemas/AgentRequestContext'
            - $ref: '#/components/schemas/CopilotRequestContext'
            - $ref: '#/components/schemas/StandaloneRequestContext'
            - $ref: '#/components/schemas/TestRequestContext'
        typedOutputs:
          type: object
          properties: {}
          description: コールバックに関連する型指定された出力を保持し、オブジェクトとして構造化されます。
    WorkflowsRequestContext:
      title: WORKFLOWS
      required:
        - source
        - workflowId
      type: object
      properties:
        actionExecutionIndexIdentifier:
          $ref: '#/components/schemas/ActionExecutionIndexIdentifier'
        actionId:
          type: integer
          description: ワークフローコンテキスト内のアクションID。
          format: int64
        source:
          type: string
          description: リクエストのソースを示します。デフォルト値はWORKFLOWSです。
          default: WORKFLOWS
          enum:
            - WORKFLOWS
        workflowId:
          type: integer
          description: リクエストコンテキストに関連付けられているワークフローのID。
          format: int64
      x-hubspot-sub-type-impl: true
    AgentRequestContext:
      title: AGENTS
      required:
        - agentId
        - chirpAiContextObject
        - source
      type: object
      properties:
        agentId:
          type: integer
          description: リクエストを行うエージェントの固有ID。
          format: int64
        chirpAiContextObject:
          $ref: '#/components/schemas/ChirpAiContextObject'
        source:
          type: string
          description: リクエストのソースを示します。デフォルト値は「AGENTS」です。
          default: AGENTS
          enum:
            - AGENTS
        trajectoryId:
          type: string
          description: エージェントリクエストと関連付けられた軌跡の固有ID。
      x-hubspot-sub-type-impl: true
    CopilotRequestContext:
      title: COPILOT
      required:
        - source
      type: object
      properties:
        source:
          type: string
          description: リクエストのソースを示します。デフォルト値は「COPILOT」です。
          default: COPILOT
          enum:
            - COPILOT
        trajectoryId:
          type: string
          description: 軌跡の固有のID。
      x-hubspot-sub-type-impl: true
    StandaloneRequestContext:
      title: STANDALONE
      required:
        - chirpAiContextObject
        - source
      type: object
      properties:
        chirpAiContextObject:
          $ref: '#/components/schemas/ChirpAiContextObject'
        source:
          type: string
          description: リクエストのソースを示します。デフォルト値は「STANDALONE」です。
          default: STANDALONE
          enum:
            - STANDALONE
        trajectoryId:
          type: string
          description: リクエストの軌跡を追跡するための固有ID。
      x-hubspot-sub-type-impl: true
    TestRequestContext:
      title: TEST
      required:
        - source
      type: object
      properties:
        source:
          type: string
          description: テストリクエストのソースを示します。許容される値は「TEST」のみです。
          default: TEST
          enum:
            - TEST
      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
    ActionExecutionIndexIdentifier:
      required:
        - actionExecutionIndex
        - enrollmentId
      type: object
      properties:
        actionExecutionIndex:
          type: integer
          description: アクションの実行順序を表すインデックス番号。
          format: int32
        enrollmentId:
          type: integer
          description: 登録プロセスに関連付けられているID。
          format: int64
    ChirpAiContextObject:
      required:
        - applicationGroup
        - applicationId
        - isPrivate
        - metadata
        - otelContextHolder
        - unstructuredSources
      type: object
      properties:
        applicationGroup:
          type: string
          description: アプリケーションが属するグループ。
        applicationId:
          type: string
          description: コンテキストと関連付けられたアプリケーションのID。
        complianceIds:
          $ref: '#/components/schemas/ComplianceIds'
        conversationId:
          type: string
        featureId:
          type: string
          description: コンテキストに関連付けられた機能のID。
        inferenceId:
          type: string
          description: コンテキストと関連付けられた推論のID。
        isPrivate:
          type: boolean
        metadata:
          type: object
          additionalProperties:
            type: string
          description: コンテキストに関連する追加のメタデータで、キーと値のペアで表されます。
        otelContextHolder:
          type: object
          additionalProperties:
            type: string
          description: OpenTelemetryのコンテキスト情報をキーと値のペアとして保持します。
        trajectoryId:
          type: string
          description: 軌跡のIDで、UUIDとして書式設定されます。
          format: uuid
        unstructuredSources:
          type: array
          items:
            type: string
            enum:
              - NONE
              - USER_INPUT
              - LOGGED_EMAIL
              - VIDEO_CALL
              - AUDIO_CALL
              - CALL_TRANSCRIPT
              - MEETING_TRANSCRIPT
              - FORMS
              - FEEDBACK_SURVEY
              - PDF
              - QUOTE
              - INVOICE
              - OTHER_ATTACHMENT_DOC
              - WHATSAPP
              - SMS
              - CHAT
              - FACEBOOK_MESSENGER
              - CUSTOM_CHANNEL_OR_API
              - MANY
              - NOTE
              - DERIVED
    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: エラーに関する具体的な詳細が含まれる特定のカテゴリー
    ComplianceIds:
      required:
        - contactIds
        - portalIds
        - userIds
      type: object
      properties:
        contactIds:
          type: array
          items:
            $ref: '#/components/schemas/ContactId'
        noContactIdReason:
          type: string
          description: コンタクトIDが利用できない理由。
        noPortalIdReason:
          type: string
          description: ポータルIDが利用できない理由。
        noUserIdReason:
          type: string
          description: ユーザーIDが利用できない理由。
        portalIds:
          type: array
          items:
            type: integer
            format: int32
        userIds:
          type: array
          items:
            type: integer
            format: int32
    ContactId:
      required:
        - portalId
      type: object
      properties:
        email:
          type: string
          description: コンタクトのEメールアドレス。
        portalId:
          type: integer
          description: コンタクトに関連付けられているポータルのID。
          format: int32
        vid:
          type: integer
          description: コンタクトの固有ID。
          format: int64
  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:
            automation: ''
            developers-read: ''
            developers-write: ''

````