Skip to content

HubSpot: Start an export

HubSpot exports.createExport: arguments, response, policy and SDK examples.

← Exports operations · Get started

Operation hubspot.exports_create_export

Provider route: POST /crm/exports/2026-09/export/async. Alter supplies the connection’s credentials and routing.

Install @alter-ai/sdk @alter-ai/hubspot with npm, or alter-sdk-hubspot with pip. Supply your connected customer’s grant ID and the arguments described below.

import { App } from "@alter-ai/sdk";
import { HubSpotIntegration } from "@alter-ai/hubspot";
async function execute(input: Parameters<HubSpotIntegration["exports"]["createExport"]>[0]) {
const app = new App({ apiKey: process.env.ALTER_API_KEY! });
try {
const provider = new HubSpotIntegration(app, { grantId: process.env.PROVIDER_GRANT_ID! });
const call = await provider.exports.createExport(input);
const result = await call.wait();
return result.bodyJson();
} finally {
await app.close();
}
}
import os
from alter_sdk import App
from alter_sdk_hubspot import HubSpotIntegration
async def execute(arguments):
async with App(api_key=os.environ["ALTER_API_KEY"]) as app:
provider = HubSpotIntegration(app, {"grant_id": os.environ["PROVIDER_GRANT_ID"]})
call = await provider.exports.create_export(arguments)
result = await call.wait()
return result.body_json()
FieldTypePresenceDescription and constraints
$objectRootAdditional keys: not allowed
bodyModelRequired within parentExpand Start an export — request body — body

Referenced models: Start an export — request body — body

Response media type: application/json. The table describes the pinned successful response. Referenced models link to their complete fields.

FieldTypePresenceDescription and constraints
$ModelRootExpand Start an export — response body

Referenced models: Start an export — response body

Start an export — response body
FieldTypePresenceDescription and constraints
$objectRoot
idstringRequired within parentThe unique ID of the export.
linksobjectOptionalAn object containing relevant links related to the export process.
Additional keys: see wildcard field
links.*stringAdditional keys
Start an export — request body — body
FieldTypePresenceDescription and constraints
$JSONRoot
$ (oneOf 1)ModelAlternativeExpand Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX
$ (oneOf 2)ModelAlternativeExpand Start an export — request body — body / exportType: LIST, format: CSV, XLS, XLSX

Referenced models: Start an export — request body — body / exportType: LIST, format: CSV, XLS, XLSX, Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX

Start an export — request body — body / exportType: LIST, format: CSV, XLS, XLSX
FieldTypePresenceDescription and constraints
$objectRoot
associatedObjectTypearrayRequired within parentAn array of strings specifying the types of associated objects to include in the export.
associatedObjectType[]stringEach item
exportInternalValuesOptionsarrayRequired within parentAn array of strings indicating options for exporting internal values. Valid values are 'NAMES' and 'VALUES'.
exportInternalValuesOptions[]stringEach itemOne of: NAMES, VALUES
exportNamestringRequired within parentA string representing the name of the export.
exportTypestringRequired within parentA string indicating the type of export, which is 'LIST' by default.
Default: LIST
One of: LIST
formatstringRequired within parentA string specifying the format of the export file. Valid values are 'XLS', 'XLSX', and 'CSV'.
One of: CSV, XLS, XLSX
includeLabeledAssociationsbooleanRequired within parentA boolean indicating whether to include labeled associations in the export.
includePrimaryDisplayPropertyForAssociatedObjectsbooleanRequired within parentA boolean indicating whether to include the primary display property for associated objects.
languagestringRequired within parentA string specifying the language for the export. Valid values include language codes such as 'EN', 'FR', 'DE', etc.
One of: 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
listIdstringRequired within parentA string representing the ID of the list to be exported.
objectPropertiesarrayRequired within parentAn array of strings listing the properties of the objects to be included in the export.
objectProperties[]stringEach item
objectTypestringRequired within parentA string representing the type of objects being exported.
overrideAssociatedObjectsPerDefinitionPerRowLimitbooleanRequired within parentA boolean indicating whether to override the limit on associated objects per definition per row.
Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX
FieldTypePresenceDescription and constraints
$objectRoot
associatedObjectTypearrayRequired within parentAn array of strings indicating the types of associated objects to include in the export.
associatedObjectType[]stringEach item
exportInternalValuesOptionsarrayRequired within parentAn array of strings specifying options for internal values in the export. Valid values are 'NAMES' and 'VALUES'.
exportInternalValuesOptions[]stringEach itemOne of: NAMES, VALUES
exportNamestringRequired within parentThe name assigned to the export, represented as a string.
exportTypestringRequired within parentThe type of export being requested. The only valid value is 'VIEW'.
Default: VIEW
One of: VIEW
formatstringRequired within parentThe file format for the export. Valid options are 'XLS', 'XLSX', and 'CSV'.
One of: CSV, XLS, XLSX
includeLabeledAssociationsbooleanRequired within parentA boolean indicating whether labeled associations should be included in the export.
includePrimaryDisplayPropertyForAssociatedObjectsbooleanRequired within parentA boolean indicating whether the primary display property for associated objects should be included.
languagestringRequired within parentThe language code for the export. Valid values include 'EN', 'FR', 'DE', 'JA', 'ES', 'PT_BR', 'NL', 'BN', 'CS', 'DA_DK', 'EL_GR', 'ES_MX', 'FI', 'HR', 'HU', 'ID', 'IT', 'KO_KR', 'NO', 'PL', 'RO', 'RU', 'SV', 'TH', 'VI_VN', 'ZH_CN', 'ZH_HK', 'AF_ZA', 'AR_EG', 'BG', 'CA_ES', 'SL', 'TR', 'UK', 'EN_GB', 'FR_CA', 'HE_IL', 'LT_LT', 'PT_PT', 'SK_SK', 'MS', 'TL', 'ZH_TW', 'HI_IN', 'ET_EE'.
One of: 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
objectPropertiesarrayRequired within parentAn array of strings specifying the properties of the object to be included in the export.
objectProperties[]stringEach item
objectTypestringRequired within parentA string representing the type of object being exported.
overrideAssociatedObjectsPerDefinitionPerRowLimitbooleanRequired within parentA boolean indicating whether to override the limit of associated objects per definition per row.
publicCrmSearchRequestModelOptionalExpand Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX public Crm Search Request

Referenced models: Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX public Crm Search Request

Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX public Crm Search Request
FieldTypePresenceDescription and constraints
$objectRoot
filterGroupsarrayRequired within parentAn array of filter groups, where each group contains multiple filters. This allows for complex filtering logic by combining multiple filters together.
filterGroups[]ModelEach itemExpand Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX public Crm Search Request filter Groups item
filtersarrayRequired within parentAn array of filter objects used to specify the criteria for the search. Each filter defines a property, an operator, and a value to filter by.
filters[]ModelEach itemExpand Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX public Crm Search Request filters item
querystringOptionalThe search query string, to filter CRM records.
sortsarrayRequired within parentDefines the order in which the CRM records should be returned.
sorts[]stringEach item

Referenced models: Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX public Crm Search Request filters item, Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX public Crm Search Request filter Groups item

Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX public Crm Search Request filters item
FieldTypePresenceDescription and constraints
$objectRootDefines a single condition for searching CRM objects, specifying the property to filter on, the operator to use (such as equals, greater than, or contains), and the value(s) to compare against.
highValuestringOptionalA string representing the upper boundary value used with the 'BETWEEN' operator.
operatorstringRequired within parentThe operator used to compare the property value against the specified value(s). Valid operators include 'EQ', 'NEQ', 'LT', 'LTE', 'GT', 'GTE', 'BETWEEN', 'IN', 'NOT_IN', 'HAS_PROPERTY', 'NOT_HAS_PROPERTY', 'CONTAINS_TOKEN', and 'NOT_CONTAINS_TOKEN'.
One of: BETWEEN, CONTAINS_TOKEN, EQ, GT, GTE, HAS_PROPERTY, IN, LT, LTE, NEQ, NOT_CONTAINS_TOKEN, NOT_HAS_PROPERTY, NOT_IN
propertyNamestringRequired within parentThe name of the property to filter by. This is a string value.
valuestringOptionalA string representing the value to compare the property against when using certain operators.
valuesarrayOptionalAn array of string values used with operators like 'IN' and 'NOT_IN' to specify multiple comparison values.
values[]stringEach item
Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX public Crm Search Request filter Groups item
FieldTypePresenceDescription and constraints
$objectRootRepresents a group of filters used to query data within HubSpot. This component is used to define criteria for filtering records in various API endpoints.
filtersarrayRequired within parentAn array of filter objects that define the criteria for the filter group. Each filter specifies a property, an operator, and a value to be used in the filtering process.
filters[]ModelEach itemExpand Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX public Crm Search Request filters item

Referenced models: Start an export — request body — body / exportType: VIEW, format: CSV, XLS, XLSX public Crm Search Request filters item

SDK function policy ID: hubspot.exports_create_export. Catalog operation: exports_create_export. Rules can name either ID; function rules distinguish managed calls and conservatively cover raw calls sharing the route. Existing grant permissions and policy rules apply. wait() returns an immediate result or waits for a required approval; it never approves the request itself. Persist the approval ID to resume after a restart.

Provider errors retain their response; JSON decoding raises ProviderAPIError for provider failures. ManagedOperationError identifies contract/input/retention errors. See error handling and provider-specific behavior. Sensitive input may be refused before approval storage. A decoding error never resubmits a write.

Required provider scopes: ["crm.export"]

Official provider source

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.