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

# Get rows from draft table

> 指定されたテーブルの下書きバージョンの行が返されます。行の結果は絞り込みや並べ替えが可能です。絞り込みや並べ替えのオプションはクエリーパラメーターとしてAPIリクエストに送信されます。例えば、クエリーパラメーター「column1__gt=5&sort=-column1」を追加すると、APIによって「column1」列の値が5より大きい行が「column1」の値の降順で返されます。絞り込みや並べ替えのオプションについて詳しくは、［概要セクション］（https://developers.hubspot.com/docs/api/cms/hubdb#filtering-and-sorting-table-rows）を参照してください。

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

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


## OpenAPI

````yaml specs/2026-03/cms-hubdb-v2026-03.json GET /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft
openapi: 3.0.1
info:
  title: HubDB
  description: Basepom for all HubSpot Projects
  version: 2026-03
  x-hubspot-product-tier-requirements:
    marketing: PROFESSIONAL
    sales: FREE
    service: FREE
    cms: PROFESSIONAL
    commerce: FREE
    crmHub: FREE
    dataHub: FREE
servers:
  - url: https://api.hubapi.com
security: []
tags:
  - name: Rows
  - name: Tables
  - name: テーブル
  - name: 行
paths:
  /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft:
    get:
      tags:
        - Tables
        - テーブル
      summary: 下書きテーブルから行を取得
      description: >-
        指定されたテーブルの下書きバージョンの行が返されます。行の結果は絞り込みや並べ替えが可能です。絞り込みや並べ替えのオプションはクエリーパラメーターとしてAPIリクエストに送信されます。例えば、クエリーパラメーター「column1__gt=5&sort=-column1」を追加すると、APIによって「column1」列の値が5より大きい行が「column1」の値の降順で返されます。絞り込みや並べ替えのオプションについて詳しくは、［概要セクション］（https://developers.hubspot.com/docs/api/cms/hubdb#filtering-and-sorting-table-rows）を参照してください。
      operationId: >-
        get-/cms/hubdb/2026-03/tables/{tableIdOrName}/rows/draft_readDraftTableRows
      parameters:
        - name: tableIdOrName
          in: path
          description: 照会するテーブルのIDまたは名前。
          required: true
          style: simple
          explode: false
          schema:
            type: string
        - name: after
          in: query
          description: >-
            最後に正常に読み取られたリソースのページ操作カーソルトークンは、より多くの結果を含むページ付きレスポンスのpaging.next.after
            JSONプロパティーとして返されます。
          required: false
          style: form
          explode: true
          schema:
            type: string
        - name: archived
          in: query
          description: アーカイブ済みの行を返すかどうかを指定します。デフォルト値は「false」です。
          required: false
          style: form
          explode: true
          schema:
            type: boolean
        - name: limit
          in: query
          description: 返す結果の最大数。デフォルトは「1000」です。
          required: false
          style: form
          explode: true
          schema:
            type: integer
            format: int32
        - name: offset
          in: query
          description: 結果を返し始める前にスキップする行数。
          required: false
          style: form
          explode: true
          schema:
            type: integer
            format: int32
        - name: properties
          in: query
          description: >-
            全ての列の詳細ではなく必要な列のみが含まれる結果を取得するには、列名を指定してください。結果に複数の列を含める場合は、このクエリーパラメーターを何度も使用します。
          required: false
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
        - name: sort
          in: query
          description: 結果を並べ替える基準にする列名が指定されます。
          required: false
          style: form
          explode: true
          schema:
            type: array
            items:
              type: string
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/UnifiedCollectionResponseWithTotalBaseHubDbTableRowV3
        default:
          $ref: '#/components/responses/Error'
          description: ''
      security:
        - oauth2:
            - hubdb
        - oauth2:
            - hubdb.rows.read
components:
  schemas:
    UnifiedCollectionResponseWithTotalBaseHubDbTableRowV3:
      properties: {}
      oneOf:
        - $ref: >-
            #/components/schemas/RandomAccessCollectionResponseWithTotalHubDbTableRowV3
        - $ref: >-
            #/components/schemas/StreamingCollectionResponseWithTotalHubDbTableRowV3
    RandomAccessCollectionResponseWithTotalHubDbTableRowV3:
      required:
        - results
        - total
        - type
      type: object
      properties:
        paging:
          $ref: '#/components/schemas/BoundedPaging'
        results:
          type: array
          items: 2da2063e-d95c-4ca1-a2af-1ce67db749a1
        total:
          type: integer
          description: コレクションで使用可能な行の合計数。
          format: int32
        type:
          type: string
          description: レスポンスのタイプを示し、デフォルトでは「RANDOM_ACCESS」です。
          default: RANDOM_ACCESS
          enum:
            - RANDOM_ACCESS
      x-hubspot-sub-type-impl: true
    StreamingCollectionResponseWithTotalHubDbTableRowV3:
      required:
        - results
        - total
        - type
      type: object
      properties:
        paging:
          $ref: '#/components/schemas/Paging'
        results:
          type: array
          items: 2da2063e-d95c-4ca1-a2af-1ce67db749a1
        total:
          type: integer
          description: コレクションで使用可能な行の合計数。
          format: int32
        type:
          type: string
          description: レスポンスのタイプを示し、デフォルトでは「STREAMING」です。
          default: STREAMING
          enum:
            - STREAMING
      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
    BoundedPaging:
      type: object
      properties:
        next:
          $ref: '#/components/schemas/BoundedNextPage'
    Paging:
      type: object
      properties:
        next:
          $ref: '#/components/schemas/NextPage'
        prev:
          $ref: '#/components/schemas/PreviousPage'
    ErrorDetail:
      required:
        - message
      type: object
      properties:
        code:
          type: string
          description: エラーの詳細に関連付けられているステータスコード
        context:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: エラー条件に関する背景状況
          example: >-
            {invalidPropertyName=[propertyValue], missingScopes=[scope1,
            scope2]}
        in:
          type: string
          description: エラーが見つかったフィールドまたはパラメーターの名前。
        message:
          type: string
          description: エラーと修正手順（該当する場合）を記した、人が理解できるメッセージ
        subCategory:
          type: string
          description: エラーに関する具体的な詳細が含まれる特定のカテゴリー
    BoundedNextPage:
      required:
        - offset
      type: object
      properties:
        link:
          type: string
          description: 結果の次のセットを取得するために使用できるURL。
        offset:
          type: integer
          description: 結果の次のセットの開始点を示すオフセット値。
          format: int32
    NextPage:
      required:
        - after
      type: object
      properties:
        after:
          type: string
          description: 後続のページを取得するためのページングカーソルトークン。
        link:
          type: string
          description: 次ページの結果を取得するために使用できるURL。
      description: >-
        Specifies the paging information needed to retrieve the next set of
        results in a paginated API response
    PreviousPage:
      required:
        - before
      type: object
      properties:
        before:
          type: string
          description: 前のページを取得するためのページ操作カーソルトークン。
        link:
          type: string
          description: 前のページの結果を取得するために使用できるURL。
      description: >-
        specifies the paging information needed to retrieve the previous set of
        results in a paginated API response
  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:
            hubdb: ''

````