Zum Hauptinhalt springen
GET
/
cms
/
hubdb
/
2026-03
/
tables
/
{tableIdOrName}
/
draft
Details für eine Entwurfstabelle abrufen
curl --request GET \
  --url https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/draft \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/draft"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/draft', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/draft",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/draft"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/draft")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.hubapi.com/cms/hubdb/2026-03/tables/{tableIdOrName}/draft")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "allowChildTables": true,
  "allowPublicApiAccess": true,
  "columnCount": 123,
  "columns": [
    {
      "deleted": true,
      "description": "<string>",
      "id": "<string>",
      "label": "<string>",
      "name": "<string>",
      "createdAt": "2023-11-07T05:31:56Z",
      "createdBy": {
        "email": "<string>",
        "firstName": "<string>",
        "id": "<string>",
        "lastName": "<string>"
      },
      "createdByUserId": 123,
      "foreignColumnId": 123,
      "foreignIds": [
        {
          "id": "<string>",
          "name": "<string>",
          "type": "<string>"
        }
      ],
      "foreignIdsById": {},
      "foreignIdsByName": {},
      "foreignTableId": 123,
      "optionCount": 123,
      "options": [
        {
          "createdAt": "2023-11-07T05:31:56Z",
          "id": "<string>",
          "label": "<string>",
          "name": "<string>",
          "order": 123,
          "type": "<string>",
          "updatedAt": "2023-11-07T05:31:56Z",
          "createdBy": {
            "email": "<string>",
            "firstName": "<string>",
            "id": "<string>",
            "lastName": "<string>"
          },
          "createdByUserId": 123,
          "updatedBy": {
            "email": "<string>",
            "firstName": "<string>",
            "id": "<string>",
            "lastName": "<string>"
          },
          "updatedByUserId": 123
        }
      ],
      "updatedAt": "2023-11-07T05:31:56Z",
      "updatedBy": {
        "email": "<string>",
        "firstName": "<string>",
        "id": "<string>",
        "lastName": "<string>"
      },
      "updatedByUserId": 123,
      "width": 123
    }
  ],
  "createdAt": "2023-11-07T05:31:56Z",
  "deleted": true,
  "deletedAt": "2023-11-07T05:31:56Z",
  "dynamicMetaTags": {},
  "enableChildTablePages": true,
  "id": "<string>",
  "label": "<string>",
  "name": "<string>",
  "published": true,
  "publishedAt": "2023-11-07T05:31:56Z",
  "rowCount": 123,
  "updatedAt": "2023-11-07T05:31:56Z",
  "useForPages": true,
  "createdBy": {
    "email": "<string>",
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>"
  },
  "isOrderedManually": true,
  "updatedBy": {
    "email": "<string>",
    "firstName": "<string>",
    "id": "<string>",
    "lastName": "<string>"
  }
}
{
"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"
}
}

Supported products

Autorisierungen

Authorization
string
header
erforderlich

The access token received from the authorization server in the OAuth 2.0 flow.

Pfadparameter

tableIdOrName
string
erforderlich

Die ID oder der Name der Tabelle, die zurückgegeben werden soll.

Abfrageparameter

archived
boolean

Legen Sie dies auf „true“ (wahr) fest, um eine archivierte Tabelle zurückzugeben. Der Standardwert ist „false“ (falsch).

includeForeignIds
boolean

Legen Sie dies auf „true“ (wahr) fest, um Fremd-ID-Werte im Ergebnis auszufüllen.

isGetLocalizedSchema
boolean

Gibt an, ob das lokalisierte Schema für die Tabelle abgerufen werden soll.

Antwort

successful operation

allowChildTables
boolean
erforderlich

Gibt an, ob untergeordnete Tabellen erstellt werden können

allowPublicApiAccess
boolean
erforderlich

Gibt an, ob die Tabelle öffentlich zugänglich ist und ohne Autorisierung gelesen werden kann

columnCount
integer<int64>
erforderlich

Anzahl der Spalten inklusive der gelöschten

columns
object[]
erforderlich

Liste mit den Spalten in der Tabelle

createdAt
string<date-time>
erforderlich

Zeitstempel, wann die Tabelle erstellt wurde

deleted
boolean
erforderlich

Gibt an, ob die Tabelle als gelöscht markiert ist.

deletedAt
string<date-time>
erforderlich

Der Zeitstempel, der angibt, wann die Tabelle gelöscht wurde.

dynamicMetaTags
object
erforderlich

Gibt die Schlüssel-Wert-Paare der Metadatenfelder mit den zugehörigen Spalten-IDs an.

enableChildTablePages
boolean
erforderlich

Gibt die Erstellung dynamischer Multi-Level-Seiten mithilfe von untergeordneten Tabellen an

id
string
erforderlich

ID der Tabelle

label
string
erforderlich

Label der Tabelle

name
string
erforderlich

Name der Tabelle

published
boolean
erforderlich

Gibt an, ob die Tabelle derzeit veröffentlicht ist.

publishedAt
string<date-time>
erforderlich

Zeitstempel, wann die Tabelle kürzlich veröffentlicht wurde

rowCount
integer<int32>
erforderlich

Anzahl der Zeilen in der Tabelle

updatedAt
string<date-time>
erforderlich

Zeitstempel, wann die Tabelle kürzlich aktualisiert wurde

useForPages
boolean
erforderlich

Gibt an, ob die Tabelle zum Erstellen von dynamischen Seiten verwendet werden kann

createdBy
object
isOrderedManually
boolean

Gibt an, ob die Tabellenzeilen manuell sortiert sind.

updatedBy
object
Zuletzt geändert am 1. April 2026