Module: hubspot/auth/scopes

Methods

(inner) throwErrorIfMissingScope(config, scopeName)

throw error if missing scopes

Parameters:
Name Type Description
config HUBSPOT_AUTH_CONFIG

hubspot authentication config

scopeName 'cms_pages' | 'crm_objects' | 'custom_objects' | 'design_manager' | 'developer_projects' | 'file_manager' | 'graphql_data_fetching' | 'hubdb' | 'serverless_functions'

scope name

Source:
Returns:

undefined

Type Definitions

SCOPES

scopes

Type:
  • Object
Properties:
Name Type Description
cms_pages SCOPE_DETAILS

View and download website data.

crm_objects SCOPE_DETAILS

Read data from HubSpot objects in the CRM.

custom_objects SCOPE_DETAILS

Create, delete, or make changes to custom objects in the CRM.

design_manager SCOPE_DETAILS

Upload and download templates, modules, and other files that developers need to write the code for websites and emails.

developer_projects SCOPE_DETAILS

Upload and download developer projects.

file_manager SCOPE_DETAILS

Upload and download files that can be used across HubSpot tools when creating content.

graphql_data_fetching SCOPE_DETAILS

Execute GraphQL queries and fetch GraphQL Schema.

hubdb SCOPE_DETAILS

Create, update, and delete HubDB tables.

serverless_functions SCOPE_DETAILS

View logs, manage secrets, and interact with other serverless functionality.

Source:

SCOPE_DETAILS

scope details

Type:
  • Object
Properties:
Name Type Description
selected boolean

is selected

title string

scope title

description string

scope description

Source:

Table of contents