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

# Start an export

> リクエスト本文で指定されているようにポータルで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.export'
]}
    />
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml specs/legacy/v3/crm-exports-v3.json POST /crm/v3/exports/export/async
openapi: 3.0.1
info:
  title: CRM Exports
  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: Export CRM Guide
      url: https://developers.hubspot.com/docs/guides/api/crm/exports
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Advanced
  - name: Basic
paths:
  /crm/v3/exports/export/async:
    post:
      tags:
        - Advanced
      summary: エクスポートを開始
      description: リクエスト本文で指定されているようにポータルでCRMデータのエクスポートが開始されます
      operationId: post-/crm/v3/exports/export/async_start
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicExportRequest'
        required: true
      responses:
        '202':
          description: accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaskLocator'
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - crm.export
components:
  schemas:
    PublicExportRequest:
      properties: {}
      oneOf:
        - $ref: '#/components/schemas/PublicExportViewRequest'
        - $ref: '#/components/schemas/PublicExportListRequest'
    TaskLocator:
      required:
        - id
      type: object
      properties:
        id:
          type: string
          description: エクスポートの固有ID。
        links:
          type: object
          additionalProperties:
            type: string
          description: エクスポート処理に関連する、関連性の高いリンクを含むオブジェクト。
    PublicExportViewRequest:
      required:
        - associatedObjectType
        - exportInternalValuesOptions
        - exportName
        - exportType
        - format
        - includeLabeledAssociations
        - includePrimaryDisplayPropertyForAssociatedObjects
        - language
        - objectProperties
        - objectType
        - overrideAssociatedObjectsPerDefinitionPerRowLimit
      type: object
      properties:
        associatedObjectType:
          type: array
          items:
            type: string
        exportInternalValuesOptions:
          type: array
          items:
            type: string
            enum:
              - NAMES
              - VALUES
        exportName:
          type: string
        exportType:
          type: string
          default: VIEW
          enum:
            - VIEW
        format:
          type: string
          enum:
            - CSV
            - XLS
            - XLSX
        includeLabeledAssociations:
          type: boolean
        includePrimaryDisplayPropertyForAssociatedObjects:
          type: boolean
        language:
          type: string
          enum:
            - AF_ZA
            - AR_EG
            - BG
            - BN
            - CA_ES
            - CS
            - DA_DK
            - DE
            - EL_GR
            - EN
            - EN_GB
            - ES
            - ES_MX
            - ET_EE
            - FI
            - FR
            - FR_CA
            - HE_IL
            - HI_IN
            - HR
            - HU
            - ID
            - IT
            - JA
            - KO_KR
            - LT_LT
            - MS
            - NL
            - 'NO'
            - PL
            - PT_BR
            - PT_PT
            - RO
            - RU
            - SK_SK
            - SL
            - SV
            - TH
            - TL
            - TR
            - UK
            - VI_VN
            - ZH_CN
            - ZH_HK
            - ZH_TW
        objectProperties:
          type: array
          items:
            type: string
        objectType:
          type: string
        overrideAssociatedObjectsPerDefinitionPerRowLimit:
          type: boolean
        publicCrmSearchRequest:
          $ref: '#/components/schemas/PublicCrmSearchRequest'
      x-hubspot-sub-type-impl: true
    PublicExportListRequest:
      required:
        - associatedObjectType
        - exportInternalValuesOptions
        - exportName
        - exportType
        - format
        - includeLabeledAssociations
        - includePrimaryDisplayPropertyForAssociatedObjects
        - language
        - listId
        - objectProperties
        - objectType
        - overrideAssociatedObjectsPerDefinitionPerRowLimit
      type: object
      properties:
        associatedObjectType:
          type: array
          items:
            type: string
        exportInternalValuesOptions:
          type: array
          items:
            type: string
            enum:
              - NAMES
              - VALUES
        exportName:
          type: string
        exportType:
          type: string
          default: LIST
          enum:
            - LIST
        format:
          type: string
          enum:
            - CSV
            - XLS
            - XLSX
        includeLabeledAssociations:
          type: boolean
        includePrimaryDisplayPropertyForAssociatedObjects:
          type: boolean
        language:
          type: string
          enum:
            - AF_ZA
            - AR_EG
            - BG
            - BN
            - CA_ES
            - CS
            - DA_DK
            - DE
            - EL_GR
            - EN
            - EN_GB
            - ES
            - ES_MX
            - ET_EE
            - FI
            - FR
            - FR_CA
            - HE_IL
            - HI_IN
            - HR
            - HU
            - ID
            - IT
            - JA
            - KO_KR
            - LT_LT
            - MS
            - NL
            - 'NO'
            - PL
            - PT_BR
            - PT_PT
            - RO
            - RU
            - SK_SK
            - SL
            - SV
            - TH
            - TL
            - TR
            - UK
            - VI_VN
            - ZH_CN
            - ZH_HK
            - ZH_TW
        listId:
          type: string
        objectProperties:
          type: array
          items:
            type: string
        objectType:
          type: string
        overrideAssociatedObjectsPerDefinitionPerRowLimit:
          type: boolean
      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
    PublicCrmSearchRequest:
      required:
        - filterGroups
        - filters
        - sorts
      type: object
      properties:
        filterGroups:
          type: array
          items:
            $ref: '#/components/schemas/FilterGroup'
        filters:
          type: array
          items:
            $ref: '#/components/schemas/Filter'
        query:
          type: string
          description: CRMレコードを絞り込むための検索クエリー文字列。
        sorts:
          type: array
          description: CRMレコードが返される順序を定義します。
          items:
            type: string
    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: エラーに関する具体的な詳細が含まれる特定のカテゴリー
    FilterGroup:
      required:
        - filters
      type: object
      properties:
        filters:
          type: array
          items:
            $ref: '#/components/schemas/Filter'
    Filter:
      required:
        - operator
        - propertyName
      type: object
      properties:
        highValue:
          type: string
          description: 範囲ベースのフィルターを使用した場合の上限境界値。
        operator:
          type: string
          description: フィルターで使用される比較演算子（「EQ」や「GT」など）。
          enum:
            - BETWEEN
            - CONTAINS_TOKEN
            - EQ
            - GT
            - GTE
            - HAS_PROPERTY
            - IN
            - LT
            - LTE
            - NEQ
            - NOT_CONTAINS_TOKEN
            - NOT_HAS_PROPERTY
            - NOT_IN
        propertyName:
          type: string
          description: フィルターを適用するプロパティーの名前。
        value:
          type: string
          description: プロパティーと照合する値。
        values:
          type: array
          description: プロパティーと照合する値。
          items:
            type: string
      description: >-
        CRMオブジェクトを検索するための単一の条件を定義します。フィルターを適用するプロパティー、使用する演算子（「次の値と等しい」、「次の値より大きい」、「次を含む」など）、および比較対象の値を指定します。 
  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.export: ''

````