### Add and Run a TypeScript Example Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/CONTRIBUTING.md Create a new TypeScript file in the examples directory and make it executable. Then, run the example against your API. ```ts // add an example to examples/.ts #!/usr/bin/env -S npm run tsn -T … ``` ```sh $ chmod +x examples/.ts # run the example against your api $ yarn tsn -T examples/.ts ``` -------------------------------- ### Install Dependencies and Build Project Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/CONTRIBUTING.md Run these commands to set up the repository by installing dependencies and building the project output files. ```sh $ yarn $ yarn build ``` -------------------------------- ### Install HubSpot TypeScript SDK Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/README.md Install the HubSpot SDK using npm. This is the first step to using the library in your project. ```sh npm install @hubspot/sdk ``` -------------------------------- ### Install SDK via Git Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/CONTRIBUTING.md Use this command to install the HubSpot SDK TypeScript directly from its GitHub repository using SSH. ```sh $ npm install git+ssh://git@github.com:HubSpot/hubspot-sdk-typescript.git ``` -------------------------------- ### Get Lead Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Retrieves a specific lead by its ID. Requires client initialization. ```typescript client.crm.objects.leads.get(leadsID, { ...params }) -> SimplePublicObjectWithAssociations ``` -------------------------------- ### Get Specific Blog Settings Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Retrieves the settings for a specific blog identified by its blog ID. ```typescript client.cms.blogs.settings.get(blogID) ``` -------------------------------- ### Get Campaign Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves details of a specific marketing campaign, including its assets, identified by its GUID. ```APIDOC ## GET /marketing/campaigns/2026-03/{campaignGuid} ### Description Retrieves details of a specific marketing campaign, including its assets. ### Method GET ### Endpoint /marketing/campaigns/2026-03/{campaignGuid} ### Parameters #### Path Parameters - **campaignGuid** (string) - Required - The unique identifier of the campaign. #### Query Parameters - **params** (object) - Optional - Parameters for retrieving campaign details. ### Response #### Success Response (200) - **PublicCampaignWithAssets** (object) - The campaign details with its associated assets. ``` -------------------------------- ### Get Campaign Attribution Metrics Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves attribution metrics for a marketing campaign. Requires the campaign GUID. ```typescript client.marketing.campaigns.metrics.getAttributionMetrics(campaignGuid, { ...params }) -> MetricsCounters ``` -------------------------------- ### Get Campaign Revenue Attribution Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves revenue attribution data for a marketing campaign. Requires the campaign GUID. ```typescript client.marketing.campaigns.metrics.getRevenueAttribution(campaignGuid, { ...params }) -> RevenueAttributionAggregate ``` -------------------------------- ### Configure Proxy with Deno Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/README.md For Deno environments, create a Deno.HttpClient and pass it via fetchOptions. This leverages Deno's native HTTP client capabilities for proxy configuration. ```typescript import HubSpot from 'npm:@hubspot/sdk'; const httpClient = Deno.createHttpClient({ proxy: { url: 'http://localhost:8888' } }); const client = new HubSpot({ fetchOptions: { client: httpClient, }, }); ``` -------------------------------- ### Get Campaign Budget Totals Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves the total budget information for a marketing campaign. Requires the campaign GUID. ```typescript client.marketing.campaigns.budget.getTotals(campaignGuid) -> PublicBudgetTotals ``` -------------------------------- ### Get a Product Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Use this method to retrieve a specific product by its ID. Supports including associations. ```typescript client.crm.objects.products.get(productID, { ...params }) -> SimplePublicObjectWithAssociations ``` -------------------------------- ### Get Campaign Spend Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves a specific spend item for a marketing campaign. Requires the spend ID and campaign GUID. ```typescript client.marketing.campaigns.spend.get(spendID, { ...params }) -> PublicSpendItem ``` -------------------------------- ### create Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/conversations/api.md Creates a new custom channel integration. This allows for the setup of new channels that can be integrated with the conversations system. ```APIDOC ## POST /conversations/custom-channels/2026-03 ### Description Creates a new custom channel integration. ### Method POST ### Endpoint /conversations/custom-channels/2026-03 ### Parameters #### Request Body - **params** (object) - Required - Parameters for creating the custom channel. ``` -------------------------------- ### Create Lead Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Creates a new lead. Requires client initialization. ```typescript client.crm.objects.leads.create({ ...params }) -> SimplePublicObject ``` -------------------------------- ### Get Campaign Budget Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves a specific budget item for a marketing campaign. Requires the budget ID and campaign GUID. ```typescript client.marketing.campaigns.budget.get(budgetID, { ...params }) -> PublicBudgetItem ``` -------------------------------- ### Configure Proxy with Bun Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/README.md Configure proxy settings directly within fetchOptions for Bun runtime. This simplifies proxy setup for Bun applications. ```typescript import HubSpot from '@hubspot/sdk'; const client = new HubSpot({ fetchOptions: { proxy: 'http://localhost:8888', }, }); ``` -------------------------------- ### Get Local Journal Batch from Offset Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/webhooks/api.md Fetches a batch of local journal entries starting from a specified offset. Requires count and optional parameters. ```typescript client.webhooks.getLocalJournalBatchFromOffset(count, { ...params }) ``` -------------------------------- ### Get Marketing Event Settings Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves the settings for a marketing event using the application ID. ```typescript client.marketing.marketingEvents.settings.get(appID) ``` -------------------------------- ### Get Next Journal Entries From Offset Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/webhooks-journal/api.md Retrieves the next set of journal entries starting from a specified offset. This is useful for paginating through journal data. ```APIDOC ## GET /webhooks-journal/journal/2026-03/offset/{offset}/next ### Description Retrieves the next set of journal entries starting from a specified offset. ### Method GET ### Endpoint /webhooks-journal/journal/2026-03/offset/{offset}/next ### Parameters #### Path Parameters - **offset** (string) - Required - The offset to start retrieving entries from. #### Query Parameters - **params** (object) - Optional - Additional parameters for the request. ### Response #### Success Response (200) - **Response** - The response contains the next batch of journal entries. ``` -------------------------------- ### Create Listing Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Creates a new listing. Requires listing details as parameters. ```typescript client.crm.objects.listings.create({ ...params }) -> SimplePublicObject ``` -------------------------------- ### get Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/automation/api.md Retrieves a specific automation action definition by its ID. Requires the application ID and definition ID. ```APIDOC ## GET /automation/actions/2026-03/{appId}/{definitionId} ### Description Retrieves a specific automation action definition. ### Method GET ### Endpoint /automation/actions/2026-03/{appId}/{definitionId} ### Parameters #### Path Parameters - **appId** (string) - Required - The ID of the application. - **definitionId** (string) - Required - The ID of the definition to retrieve. ``` -------------------------------- ### Batch Create Landing Page Folders Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Creates multiple landing page folders in a single request. Accepts an array of folder objects and returns a batch response with created folders. ```APIDOC ## POST /cms/pages/2026-03/landing-pages/folders/batch/create ### Description Creates multiple landing page folders in a single request. ### Method POST ### Endpoint /cms/pages/2026-03/landing-pages/folders/batch/create ### Request Body - **folders** (array) - Required - An array of folder objects to create. ### Response #### Success Response (200) - **results** (array) - An array of results for each created folder. - **errors** (array) - An array of errors encountered during the batch creation. ``` -------------------------------- ### Batch Get Journal Entries From Offset Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/webhooks-journal/api.md Retrieves a specified count of journal entries starting from a given offset in a batch. Facilitates paginated batch retrieval. ```APIDOC ## GET /webhooks-journal/journal/2026-03/batch/{offset}/next/{count} ### Description Retrieves a specified count of journal entries starting from a given offset in a batch. ### Method GET ### Endpoint /webhooks-journal/journal/2026-03/batch/{offset}/next/{count} ### Parameters #### Path Parameters - **offset** (string) - Required - The offset to start retrieving entries from. - **count** (number) - Required - The number of entries to retrieve. #### Query Parameters - **params** (object) - Optional - Additional parameters for the request. ### Response #### Success Response (200) - **BatchResponseJournalFetchResponse** - The response contains a batch of journal entries from the specified offset. ``` -------------------------------- ### Initialize HubSpot Client and Fetch Contact Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/README.md Initialize the HubSpot client with an access token and fetch a contact by its ID. Ensure you replace 'My Access Token' and 'contactId' with your actual credentials and the target contact's ID. ```js import HubSpot from '@hubspot/sdk'; const client = new HubSpot({ accessToken: 'My Access Token', }); const result = await client.crm.objects.contacts.get('contactId'); console.log(result.id); ``` -------------------------------- ### Get Next Local Journal Entries From Offset Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/webhooks-journal/api.md Retrieves the next set of local journal entries starting from a specified offset. This is useful for paginating through local journal data. ```APIDOC ## GET /webhooks-journal/journal-local/2026-03/offset/{offset}/next ### Description Retrieves the next set of local journal entries starting from a specified offset. ### Method GET ### Endpoint /webhooks-journal/journal-local/2026-03/offset/{offset}/next ### Parameters #### Path Parameters - **offset** (string) - Required - The offset to start retrieving entries from. #### Query Parameters - **params** (object) - Optional - Additional parameters for the request. ### Response #### Success Response (200) - **Response** - The response contains the next batch of local journal entries. ``` -------------------------------- ### getSettings Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/webhooks/api.md Retrieves the webhook settings for a given application ID. ```APIDOC ## GET /webhooks/2026-03/{appId}/settings ### Description Retrieves the webhook settings for a given application ID. ### Method GET ### Endpoint /webhooks/2026-03/{appId}/settings ### Parameters #### Path Parameters - **appId** (string) - Required - The ID of the application whose settings are to be retrieved. ``` -------------------------------- ### Batch Get Local Journal Entries From Offset Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/webhooks-journal/api.md Retrieves a specified count of local journal entries starting from a given offset in a batch. Facilitates paginated batch retrieval of local data. ```APIDOC ## GET /webhooks-journal/journal-local/2026-03/batch/{offset}/next/{count} ### Description Retrieves a specified count of local journal entries starting from a given offset in a batch. ### Method GET ### Endpoint /webhooks-journal/journal-local/2026-03/batch/{offset}/next/{count} ### Parameters #### Path Parameters - **offset** (string) - Required - The offset to start retrieving entries from. - **count** (number) - Required - The number of entries to retrieve. #### Query Parameters - **params** (object) - Optional - Additional parameters for the request. ### Response #### Success Response (200) - **BatchResponseJournalFetchResponse** - The response contains a batch of local journal entries from the specified offset. ``` -------------------------------- ### Create Course Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Create a new course object. Requires a set of parameters defining the course properties. ```typescript client.crm.objects.courses.create({ ...params }) -> SimplePublicObject ``` -------------------------------- ### createMediaPlayedEvent Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Logs a media played event, indicating that a piece of media has started playing. This is useful for tracking content consumption. ```APIDOC ## POST /media-bridge/2026-03/events/media-played ### Description Logs a media played event. ### Method POST ### Endpoint /media-bridge/2026-03/events/media-played ### Request Body - **params** (object) - Required - The parameters for the media played event. ``` -------------------------------- ### get Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/conversations/api.md Retrieves details for a specific custom channel account. This provides in-depth information about a particular channel account. ```APIDOC ## GET /conversations/custom-channels/2026-03/{channelId}/channel-accounts/{channelAccountId} ### Description Retrieves details for a specific custom channel account. ### Method GET ### Endpoint /conversations/custom-channels/2026-03/{channelId}/channel-accounts/{channelAccountId} ### Parameters #### Path Parameters - **channelId** (string) - Required - The ID of the channel. - **channelAccountId** (string) - Required - The ID of the channel account. #### Query Parameters - **params** (object) - Required - Parameters for retrieving the channel account. ``` -------------------------------- ### Get Journal Subscription Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/webhooks/api.md Retrieves a specific journal subscription by its ID. Use this to get details about a single subscription. ```typescript client.webhooks.getJournalSubscription(subscriptionID) ``` -------------------------------- ### createSettings Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Creates general settings for the calling extension for a given application. This sets up the basic configuration for calling features. ```APIDOC ## POST /crm/extensions/calling/2026-03/{appId}/settings ### Description Creates general settings for the calling extension for a given application. ### Method POST ### Endpoint /crm/extensions/calling/2026-03/{appId}/settings ### Parameters #### Path Parameters - **appId** (string) - Required - The ID of the application. #### Request Body - **params** (SettingsRequest) - Required - The general settings for the calling extension. ### Response #### Success Response (200) - **SettingsResponse** - The response contains the created general settings. ``` -------------------------------- ### Update Campaign Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Updates an existing marketing campaign identified by its GUID. Accepts the campaign GUID and updated parameters. ```APIDOC ## PATCH /marketing/campaigns/2026-03/{campaignGuid} ### Description Updates an existing marketing campaign. ### Method PATCH ### Endpoint /marketing/campaigns/2026-03/{campaignGuid} ### Parameters #### Path Parameters - **campaignGuid** (string) - Required - The unique identifier of the campaign to update. #### Request Body - **params** (object) - Required - Campaign update parameters. ### Response #### Success Response (200) - **PublicCampaign** (object) - The updated campaign object. ``` -------------------------------- ### getSettings Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Retrieves the general settings for the calling extension for a given application. This allows viewing the current configuration for calling features. ```APIDOC ## GET /crm/extensions/calling/2026-03/{appId}/settings ### Description Retrieves the general settings for the calling extension for a given application. ### Method GET ### Endpoint /crm/extensions/calling/2026-03/{appId}/settings ### Parameters #### Path Parameters - **appId** (string) - Required - The ID of the application. ### Response #### Success Response (200) - **SettingsResponse** - The response contains the current general settings. ``` -------------------------------- ### Link Local Repository with PNPM Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/CONTRIBUTING.md Clone the repository and use pnpm to link it globally to your project, enabling the use of the SDK from source. ```sh # Clone $ git clone https://www.github.com/HubSpot/hubspot-sdk-typescript $ cd hubspot-sdk-typescript # With pnpm $ pnpm link --global $ cd ../my-package $ pnpm link --global @hubspot/sdk ``` -------------------------------- ### create Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Creates a new HubDB table. Accepts parameters for table configuration. ```APIDOC ## POST /cms/hubdb/2026-03/tables ### Description Creates a new HubDB table. ### Method POST ### Endpoint /cms/hubdb/2026-03/tables ### Parameters #### Request Body - **params** (object) - Required - Parameters for table creation. ``` -------------------------------- ### Get Subscription Filter Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/webhooks/api.md Retrieves a specific subscription filter by its filter ID. Use this to get details about a filter associated with a subscription. ```typescript client.webhooks.getSubscriptionFilter(filterID) ``` -------------------------------- ### create Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Creates a new CRM list. Requires a list name and optional properties. ```APIDOC ## POST /crm/lists/2026-03 ### Description Creates a new CRM list. Requires a list name and optional properties. ### Method POST ### Endpoint /crm/lists/2026-03 ### Parameters #### Request Body - **params** (object) - Required - Parameters for creating the list, including name and properties. ### Response #### Success Response (200) - **ListCreateResponse** (object) - Details of the created list. ``` -------------------------------- ### Create Landing Page Folder Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Creates a new folder for organizing landing pages. Accepts folder properties and returns the created folder object. ```APIDOC ## POST /cms/pages/2026-03/landing-pages/folders ### Description Creates a new folder for organizing landing pages. ### Method POST ### Endpoint /cms/pages/2026-03/landing-pages/folders ### Request Body - **folder** (object) - Required - An object containing the properties of the folder to create. ``` -------------------------------- ### List Leads Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Retrieves a paginated list of leads. Requires client initialization. ```typescript client.crm.objects.leads.list({ ...params }) -> SimplePublicObjectWithAssociationsPage ``` -------------------------------- ### get Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Retrieves a specific row from a HubDB table by its ID. ```APIDOC ## GET /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId} ### Description Retrieves a specific row from a HubDB table by its ID. ### Method GET ### Endpoint /cms/hubdb/2026-03/tables/{tableIdOrName}/rows/{rowId} ### Parameters #### Path Parameters - **tableIdOrName** (string) - Required - The ID or name of the table. - **rowId** (string) - Required - The ID of the row to retrieve. #### Query Parameters - **params** (object) - Optional - An object containing query parameters. ### Response #### Success Response (200) - **HubDBTableRowV3** - The requested row object. ``` -------------------------------- ### Batch Create Blog Posts Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Creates multiple blog posts in a single request. ```APIDOC ## POST /cms/blogs/2026-03/posts/batch/create ### Description Creates multiple blog posts in a batch. ### Method POST ### Endpoint /cms/blogs/2026-03/posts/batch/create ### Parameters #### Request Body - **params** (object) - Required - An array of blog post objects to create. ### Request Example ```json { "example": "{ ...params }" } ``` ### Response #### Success Response (200) - **Response** (object) - Details of the created blog posts. ``` -------------------------------- ### Messages - Get Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/conversations/api.md Retrieves a specific message from a custom channel. ```APIDOC ## GET /conversations/custom-channels/{channelId}/messages/{messageId} ### Description Retrieves a specific message from a custom channel. ### Method GET ### Endpoint /conversations/custom-channels/{channelId}/messages/{messageId} ### Parameters #### Path Parameters - **channelId** (string) - Required - The ID of the channel. - **messageId** (string) - Required - The ID of the message. #### Query Parameters - **params** (object) - Optional - Parameters for retrieving the message. ### Response #### Success Response (200) - **PublicConversationsMessage** (object) - The public conversations message. ``` -------------------------------- ### client.crm.objects.deals.create Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Creates a new deal. Requires parameters for the deal. ```APIDOC ## POST /crm/objects/2026-03/0-3 ### Description Creates a new deal. ### Method POST ### Endpoint /crm/objects/2026-03/0-3 ### Parameters #### Request Body - **params** (object) - Required - The parameters for the new deal. ### Response #### Success Response (200) - **SimplePublicObject** (object) - The created deal. ``` -------------------------------- ### Delete Campaign Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Deletes a marketing campaign identified by its GUID. ```APIDOC ## DELETE /marketing/campaigns/2026-03/{campaignGuid} ### Description Deletes a marketing campaign. ### Method DELETE ### Endpoint /marketing/campaigns/2026-03/{campaignGuid} ### Parameters #### Path Parameters - **campaignGuid** (string) - Required - The unique identifier of the campaign to delete. ### Response #### Success Response (200) - **void** - Indicates successful deletion. ``` -------------------------------- ### Get Pipeline Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Retrieves details of a specific CRM pipeline by its ID. ```APIDOC ## GET /crm/pipelines/2026-03/{objectType}/{pipelineId} ### Description Retrieves details of a specific CRM pipeline by its ID. ### Method GET ### Endpoint /crm/pipelines/2026-03/{objectType}/{pipelineId} ### Parameters #### Path Parameters - **objectType** (string) - Required - The type of object the pipeline is for. - **pipelineId** (string) - Required - The ID of the pipeline to retrieve. #### Query Parameters - **params** (object) - Optional - Additional parameters for the get operation. ``` -------------------------------- ### Create Deal Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Use this method to create a new deal. Provide the deal properties as parameters. ```typescript client.crm.objects.deals.create({ ...params }) ``` -------------------------------- ### Get Partner Service Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Retrieves a specific partner service by its ID. ```APIDOC ## GET /crm/objects/2026-03/partner_services/{partnerServiceId} ### Description Retrieves a specific partner service. ### Method GET ### Endpoint /crm/objects/2026-03/partner_services/{partnerServiceId} ### Parameters #### Path Parameters - **partnerServiceId** (string) - Required - The ID of the partner service to retrieve. #### Query Parameters - **params** (object) - Optional - Additional query parameters. ### Response #### Success Response (200) - **SimplePublicObjectWithAssociations** - The partner service object with its associations. ``` -------------------------------- ### Batch Create Courses Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Create multiple courses in a single API request. Ensure all parameters for each course are correctly formatted. ```typescript client.crm.objects.courses.batch.create({ ...params }) -> BatchResponseSimplePublicObject ``` -------------------------------- ### Create Site Pages in Batch Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Use this method to create multiple site pages simultaneously. It accepts an array of page data. ```typescript client.cms.pages.sitePages.batch.createSitePages({ ...params }) ``` -------------------------------- ### Get Email Draft Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves the draft of a marketing email by its ID. ```APIDOC ## GET /marketing/emails/2026-03/{emailId}/draft ### Description Retrieves the draft of a marketing email. ### Method GET ### Endpoint /marketing/emails/2026-03/{emailId}/draft ### Parameters #### Path Parameters - **emailID** (string) - Required - The ID of the email. ``` -------------------------------- ### getJournalBatchFromOffset Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/webhooks/api.md Retrieves a batch of journal entries starting from a specified offset. ```APIDOC ## GET /webhooks-journal/journal/2026-03/batch/{offset}/next/{count} ### Description Retrieves a batch of journal entries starting from a specified offset. ### Method GET ### Endpoint /webhooks-journal/journal/2026-03/batch/{offset}/next/{count} ### Parameters #### Path Parameters - **offset** (integer) - Required - The offset from which to start retrieving entries. - **count** (integer) - Required - The number of entries to retrieve in the batch. #### Query Parameters - **params** (object) - Optional - Additional parameters for fetching the batch. ``` -------------------------------- ### client.cms.blogs.settings.list Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Retrieves a list of all blogs with pagination. ```APIDOC ## GET /cms/blog-settings/2026-03/settings ### Description Retrieves a list of all blogs with pagination. ### Method GET ### Endpoint /cms/blog-settings/2026-03/settings ### Parameters #### Query Parameters - **params** (object) - Optional - Parameters for pagination and filtering. ``` -------------------------------- ### Get Postal Mail Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Retrieves a specific postal mail record by its ID. ```APIDOC ## GET /crm/objects/2026-03/postal_mail/{postalMailId} ### Description Retrieves a specific postal mail record. ### Method GET ### Endpoint /crm/objects/2026-03/postal_mail/{postalMailId} ### Parameters #### Path Parameters - **postalMailId** (string) - Required - The ID of the postal mail to retrieve. #### Query Parameters - **params** (object) - Optional - Additional query parameters. ### Response #### Success Response (200) - **SimplePublicObjectWithAssociations** - The postal mail object with its associations. ``` -------------------------------- ### Link Local Repository with Yarn Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/CONTRIBUTING.md Clone the repository and use yarn to link it locally to your project, allowing you to use the SDK from source. ```sh # Clone $ git clone https://www.github.com/HubSpot/hubspot-sdk-typescript $ cd hubspot-sdk-typescript # With yarn $ yarn link $ cd ../my-package $ yarn link @hubspot/sdk ``` -------------------------------- ### client.cms.blogs.posts.revisions.getPreviousVersions Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Retrieves a list of previous versions for a blog post. ```APIDOC ## GET /cms/blogs/2026-03/posts/{objectId}/revisions ### Description Retrieves a list of previous versions for a blog post. ### Method GET ### Endpoint /cms/blogs/2026-03/posts/{objectId}/revisions ### Parameters #### Path Parameters - **objectId** (string) - Required - The ID of the blog post. #### Query Parameters - **params** (object) - Optional - Additional parameters for the request. ``` -------------------------------- ### Get Listing Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Retrieves a specific listing by its ID, including associated objects. ```typescript client.crm.objects.listings.get(listingID, { ...params }) -> SimplePublicObjectWithAssociations ``` -------------------------------- ### client.cms.pages.sitePages.create Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Creates a new site page. ```APIDOC ## POST /cms/pages/2026-03/site-pages ### Description Creates a new site page. ### Method POST ### Endpoint /cms/pages/2026-03/site-pages ### Parameters #### Request Body - **params** (object) - Required - The parameters for creating the site page. ### Response #### Success Response (200) - **PagesPage** (object) - The newly created site page. ``` -------------------------------- ### Create a Product Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Use this method to create a new product in the CRM. Requires product details as parameters. ```typescript client.crm.objects.products.create({ ...params }) -> SimplePublicObject ``` -------------------------------- ### Get Invoice Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Retrieves a specific invoice by its ID. Requires client initialization. ```typescript client.crm.objects.invoices.get(invoiceID, { ...params }) -> SimplePublicObjectWithAssociations ``` -------------------------------- ### Create Landing Page Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Use this method to create a new landing page. Pass the page creation parameters to this method. ```typescript client.cms.pages.landingPages.create({ ...params }) ``` -------------------------------- ### get Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Retrieves a specific CRM object schema definition by its object type. ```APIDOC ## GET /crm-object-schemas/2026-03/schemas/{objectType} ### Description Retrieves a specific CRM object schema definition by its object type. ### Method GET ### Endpoint /crm-object-schemas/2026-03/schemas/{objectType} ### Parameters #### Path Parameters - **objectType** (string) - Required - The object type of the schema to retrieve. ### Request Body - **params** (any) - Optional - Additional parameters for retrieval. ``` -------------------------------- ### client.cms.blogs.settings.multiLanguage.createLanguageVariation Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Creates a language variation for a blog's settings. ```APIDOC ## POST /cms/blog-settings/2026-03/settings/multi-language/create-language-variation ### Description Creates a language variation for a blog's settings. ### Method POST ### Endpoint /cms/blog-settings/2026-03/settings/multi-language/create-language-variation ### Parameters #### Request Body - **params** (object) - Required - Parameters for creating a language variation. ``` -------------------------------- ### Get Blog Post Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Retrieves a specific blog post by its object ID. ```APIDOC ## GET /cms/blogs/2026-03/posts/{objectId} ### Description Retrieves a specific blog post. ### Method GET ### Endpoint /cms/blogs/2026-03/posts/{objectId} ### Parameters #### Path Parameters - **objectId** (string) - Required - The ID of the blog post to retrieve. #### Query Parameters - **params** (object) - Optional - Parameters for retrieving the blog post. ### Response #### Success Response (200) - **Response** (object) - Details of the requested blog post. ``` -------------------------------- ### create Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/automation/api.md Creates a new automation action definition. Requires the application ID and a payload containing the definition details. ```APIDOC ## POST /automation/actions/2026-03/{appId} ### Description Creates a new automation action definition. ### Method POST ### Endpoint /automation/actions/2026-03/{appId} ### Parameters #### Path Parameters - **appId** (string) - Required - The ID of the application. #### Request Body - **params** (object) - Required - The parameters for creating the action definition. ``` -------------------------------- ### Get Campaign Attribution Metrics Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves attribution metrics for a marketing campaign. ```APIDOC ## GET /marketing/campaigns/2026-03/{campaignGuid}/reports/metrics ### Description Retrieves attribution metrics associated with a marketing campaign. ### Method GET ### Endpoint /marketing/campaigns/2026-03/{campaignGuid}/reports/metrics ### Parameters #### Path Parameters - **campaignGuid** (string) - Required - The unique identifier for the campaign. #### Query Parameters - **params** (object) - Optional - Parameters for filtering or customizing the metrics. ``` -------------------------------- ### Get Journal Subscription Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/webhooks-journal/api.md Retrieves details of a specific journal subscription by its ID. ```APIDOC ## GET /webhooks-journal/subscriptions/2026-03/{subscriptionId} ### Description Retrieves the details of a specific journal subscription. ### Method GET ### Endpoint /webhooks-journal/subscriptions/2026-03/{subscriptionId} ### Parameters #### Path Parameters - **subscriptionId** (string) - Required - The ID of the subscription to retrieve. ``` -------------------------------- ### Batch Create Discounts Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Create multiple discounts efficiently using a single batch request. Ideal for bulk data entry. ```typescript client.crm.objects.discounts.batch.create({ ...params }) -> BatchResponseSimplePublicObject ``` -------------------------------- ### getLocalJournalBatchFromOffset Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/webhooks/api.md Fetches a batch of local journal entries starting from a specific offset. ```APIDOC ## GET /webhooks-journal/journal-local/2026-03/batch/{offset}/next/{count} ### Description Fetches a batch of local journal entries starting from a specific offset. ### Method GET ### Endpoint /webhooks-journal/journal-local/2026-03/batch/{offset}/next/{count} ### Parameters #### Path Parameters - **offset** (number) - Required - The starting offset for fetching entries. - **count** (number) - Required - The number of entries to retrieve in the batch. #### Query Parameters - **params** (object) - Optional - Additional parameters for filtering or pagination. ``` -------------------------------- ### Create List Folder Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Creates a new folder for organizing lists. Provide folder details in the params. ```typescript client.crm.lists.createFolder({ ...params }) ``` -------------------------------- ### Get Pipeline Stage Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Retrieves details of a specific stage within a CRM pipeline. ```APIDOC ## GET /crm/pipelines/2026-03/{objectType}/{pipelineId}/stages/{stageId} ### Description Retrieves details of a specific stage within a CRM pipeline. ### Method GET ### Endpoint /crm/pipelines/2026-03/{objectType}/{pipelineId}/stages/{stageId} ### Parameters #### Path Parameters - **objectType** (string) - Required - The type of object the pipeline is for. - **pipelineId** (string) - Required - The ID of the pipeline the stage belongs to. - **stageId** (string) - Required - The ID of the stage to retrieve. #### Query Parameters - **params** (object) - Optional - Additional parameters for the get operation. ``` -------------------------------- ### get Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Retrieves a specific HubDB table by its ID or name. Accepts optional parameters. ```APIDOC ## GET /cms/hubdb/2026-03/tables/{tableIdOrName} ### Description Retrieves a specific HubDB table. ### Method GET ### Endpoint /cms/hubdb/2026-03/tables/{tableIdOrName} ### Parameters #### Path Parameters - **tableIdOrName** (string) - Required - The ID or name of the table to retrieve. #### Query Parameters - **params** (object) - Required - Optional parameters for retrieving the table. ``` -------------------------------- ### Create Blog Post Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Creates a new blog post. Requires a blog ID and post details. ```APIDOC ## POST /cms/blogs/2026-03/posts ### Description Creates a new blog post. ### Method POST ### Endpoint /cms/blogs/2026-03/posts ### Parameters #### Request Body - **params** (object) - Required - The parameters for creating a blog post, including blog ID and content. ### Request Example ```json { "example": "{ ...params }" } ``` ### Response #### Success Response (200) - **Response** (object) - Details of the created blog post. ``` -------------------------------- ### Get Marketing Event by Object ID Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves a marketing event by its object ID. ```APIDOC ## GET /marketing/marketing-events/2026-03/{objectId} ### Description Retrieves a marketing event by its object ID. ### Method GET ### Endpoint /marketing/marketing-events/2026-03/{objectId} ### Parameters #### Path Parameters - **objectId** (string) - Required - The ID of the marketing event to retrieve. ``` -------------------------------- ### Create Leads in Batch Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Use this method to create multiple leads simultaneously. It accepts an array of lead objects for batch processing. ```typescript client.crm.objects.leads.batch.create({ ...params }) -> BatchResponseSimplePublicObject ``` -------------------------------- ### Get Email Statistics Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves statistics for marketing emails. Accepts optional parameters. ```APIDOC ## GET /marketing/emails/2026-03/statistics/list ### Description Retrieves statistics for marketing emails. ### Method GET ### Endpoint /marketing/emails/2026-03/statistics/list ### Parameters #### Query Parameters - **params** (object) - Optional - Parameters for filtering statistics. ``` -------------------------------- ### Batch Create Landing Pages Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Creates multiple landing pages in a single request. Accepts an array of page objects and returns a batch response with created pages. ```APIDOC ## POST /cms/pages/2026-03/landing-pages/batch/create ### Description Creates multiple landing pages in a single request. ### Method POST ### Endpoint /cms/pages/2026-03/landing-pages/batch/create ### Request Body - **pages** (array) - Required - An array of landing page objects to create. ### Response #### Success Response (200) - **results** (array) - An array of results for each created page. - **errors** (array) - An array of errors encountered during the batch creation. ``` -------------------------------- ### Get Campaign Spend Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves details of a specific spend item for a marketing campaign. ```APIDOC ## GET /marketing/campaigns/2026-03/{campaignGuid}/spend/{spendId} ### Description Retrieves the details of a specific spend item for a marketing campaign. ### Method GET ### Endpoint /marketing/campaigns/2026-03/{campaignGuid}/spend/{spendId} ### Parameters #### Path Parameters - **campaignGuid** (string) - Required - The unique identifier for the campaign. - **spendId** (string) - Required - The unique identifier for the spend item. #### Query Parameters - **params** (object) - Optional - Parameters for the retrieval operation. ``` -------------------------------- ### Create a Project Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Use this method to create a new project in the CRM. Requires project details as parameters. ```typescript client.crm.objects.projects.create({ ...params }) -> SimplePublicObject ``` -------------------------------- ### Get Campaign Revenue Attribution Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves revenue attribution data for a marketing campaign. ```APIDOC ## GET /marketing/campaigns/2026-03/{campaignGuid}/reports/revenue ### Description Retrieves revenue attribution data for a marketing campaign. ### Method GET ### Endpoint /marketing/campaigns/2026-03/{campaignGuid}/reports/revenue ### Parameters #### Path Parameters - **campaignGuid** (string) - Required - The unique identifier for the campaign. #### Query Parameters - **params** (object) - Optional - Parameters for filtering or customizing the revenue data. ``` -------------------------------- ### Search Leads Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Searches for leads based on provided parameters. Requires client initialization. ```typescript client.crm.objects.leads.search({ ...params }) -> CollectionResponseWithTotalSimplePublicObject ``` -------------------------------- ### client.cms.urlMappings.list Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Retrieves a list of all configured URL mappings. ```APIDOC ## GET /url-mappings/2026-03/url-mappings ### Description Retrieves a list of all configured URL mappings. ### Method GET ### Endpoint /url-mappings/2026-03/url-mappings ### Response #### Success Response (200) - **Response** (object) - A response containing a list of URL mappings. ``` -------------------------------- ### Get Campaign Budget Totals Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves the total budget information for a marketing campaign. ```APIDOC ## GET /marketing/campaigns/2026-03/{campaignGuid}/budget/totals ### Description Retrieves the aggregated budget totals for a marketing campaign. ### Method GET ### Endpoint /marketing/campaigns/2026-03/{campaignGuid}/budget/totals ### Parameters #### Path Parameters - **campaignGuid** (string) - Required - The unique identifier for the campaign. ``` -------------------------------- ### Create Campaign Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Creates a new marketing campaign. Accepts campaign details as parameters and returns the created campaign object. ```APIDOC ## POST /marketing/campaigns/2026-03 ### Description Creates a new marketing campaign. ### Method POST ### Endpoint /marketing/campaigns/2026-03 ### Parameters #### Request Body - **params** (object) - Required - Campaign creation parameters. ### Response #### Success Response (200) - **PublicCampaign** (object) - The created campaign object. ``` -------------------------------- ### Get Campaign Budget Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves details of a specific budget item for a marketing campaign. ```APIDOC ## GET /marketing/campaigns/2026-03/{campaignGuid}/budget/{budgetId} ### Description Retrieves the details of a specific budget item for a marketing campaign. ### Method GET ### Endpoint /marketing/campaigns/2026-03/{campaignGuid}/budget/{budgetId} ### Parameters #### Path Parameters - **campaignGuid** (string) - Required - The unique identifier for the campaign. - **budgetId** (string) - Required - The unique identifier for the budget item. #### Query Parameters - **params** (object) - Optional - Parameters for the retrieval operation. ``` -------------------------------- ### client.cms.blogs.settings.listRevisions Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Retrieves a list of revisions for a blog's settings. ```APIDOC ## GET /cms/blog-settings/2026-03/settings/{blogId}/revisions ### Description Retrieves a list of revisions for a blog's settings. ### Method GET ### Endpoint /cms/blog-settings/2026-03/settings/{blogId}/revisions ### Parameters #### Path Parameters - **blogId** (string) - Required - The ID of the blog. #### Query Parameters - **params** (object) - Optional - Additional parameters for the request. ``` -------------------------------- ### Get a Project Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Use this method to retrieve a specific project by its ID. Supports including associations. ```typescript client.crm.objects.projects.get(projectID, { ...params }) -> SimplePublicObjectWithAssociations ``` -------------------------------- ### Batch Operations for Discounts Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Provides methods for batch creating, updating, archiving, reading, and upserting discounts. ```APIDOC ## POST /crm/objects/2026-03/discounts/batch/create ### Description Creates multiple discounts in a batch. ### Method POST ### Endpoint /crm/objects/2026-03/discounts/batch/create ### Parameters #### Request Body - **params** (object) - Required - Object containing discount data for batch creation. ### Response #### Success Response (200) - **BatchResponseSimplePublicObject** - Response object for batch operations. ## POST /crm/objects/2026-03/discounts/batch/update ### Description Updates multiple discounts in a batch. ### Method POST ### Endpoint /crm/objects/2026-03/discounts/batch/update ### Parameters #### Request Body - **params** (object) - Required - Object containing discount data for batch update. ### Response #### Success Response (200) - **BatchResponseSimplePublicObject** - Response object for batch operations. ## POST /crm/objects/2026-03/discounts/batch/archive ### Description Archives multiple discounts in a batch. ### Method POST ### Endpoint /crm/objects/2026-03/discounts/batch/archive ### Parameters #### Request Body - **params** (object) - Required - Object containing discount IDs for batch archiving. ### Response #### Success Response (200) - **void** - Indicates successful archiving. ## POST /crm/objects/2026-03/discounts/batch/read ### Description Reads multiple discounts in a batch. ### Method POST ### Endpoint /crm/objects/2026-03/discounts/batch/read ### Parameters #### Request Body - **params** (object) - Required - Object containing discount IDs for batch reading. ### Response #### Success Response (200) - **BatchResponseSimplePublicObject** - Response object for batch operations. ## POST /crm/objects/2026-03/discounts/batch/upsert ### Description Upserts multiple discounts in a batch. ### Method POST ### Endpoint /crm/objects/2026-03/discounts/batch/upsert ### Parameters #### Request Body - **params** (object) - Required - Object containing discount data for batch upsert. ### Response #### Success Response (200) - **BatchResponseSimplePublicUpsertObject** - Response object for batch upsert operations. ``` -------------------------------- ### Get Line Item Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Retrieves a specific line item by its ID, including associated objects. ```typescript client.crm.objects.lineItems.get(lineItemID, { ...params }) -> SimplePublicObjectWithAssociations ``` -------------------------------- ### Batch Create Services Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Creates multiple services in a single batch request. Use for efficiency when creating many services. ```typescript client.crm.objects.services.batch.create({ ...params }) -> BatchResponseSimplePublicObject ``` -------------------------------- ### Batch Create Products Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/crm/api.md Use this method for batch creation of multiple products in the CRM. Requires an array of product data. ```typescript client.crm.objects.products.batch.create({ ...params }) -> BatchResponseSimplePublicObject ``` -------------------------------- ### Get Blog Post Draft Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Retrieves the draft of a specific blog post by its object ID. ```APIDOC ## GET /cms/blogs/2026-03/posts/{objectId}/draft ### Description Retrieves the draft of a blog post. ### Method GET ### Endpoint /cms/blogs/2026-03/posts/{objectId}/draft ### Parameters #### Path Parameters - **objectId** (string) - Required - The ID of the blog post whose draft to retrieve. ### Response #### Success Response (200) - **Response** (object) - The draft content of the blog post. ``` -------------------------------- ### Get SMTP API Token by ID Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves a specific SMTP API token by its ID. ```APIDOC ## GET /marketing/transactional/2026-03/smtp-tokens/{tokenId} ### Description Retrieves a specific SMTP API token by its ID. ### Method GET ### Endpoint /marketing/transactional/2026-03/smtp-tokens/{tokenId} ### Parameters #### Path Parameters - **tokenId** (string) - Required - The ID of the SMTP token to retrieve. ### Response #### Success Response (200) - **SmtpAPITokenView** - The requested SMTP API token. ``` -------------------------------- ### List Landing Page Folders Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Retrieves a list of all landing page folders. Supports filtering and pagination through query parameters. ```APIDOC ## GET /cms/pages/2026-03/landing-pages/folders ### Description Retrieves a list of all landing page folders. ### Method GET ### Endpoint /cms/pages/2026-03/landing-pages/folders ### Parameters #### Query Parameters - **limit** (integer) - Optional - The maximum number of folders to return. - **after** (string) - Optional - The ID of the folder to start pagination after. - **properties** (array) - Optional - An array of folder properties to include in the response. ``` -------------------------------- ### Get Marketing Event Settings Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/marketing/api.md Retrieves the settings for a marketing event, identified by an application ID. ```APIDOC ## GET /marketing/marketing-events/2026-03/{appId}/settings ### Description Retrieves the settings for a marketing event, identified by an application ID. ### Method GET ### Endpoint /marketing/marketing-events/2026-03/{appId}/settings ### Parameters #### Path Parameters - **appId** (string) - Required - The ID of the application. ### Response #### Success Response (200) - **EventDetailSettings** - The event detail settings. ``` -------------------------------- ### Create Language Variation for Blog Settings Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Creates a new language variation for blog settings. This is essential for multi-language blogs. ```typescript client.cms.blogs.settings.multiLanguage.createLanguageVariation({ ...params }) ``` -------------------------------- ### List Landing Pages Source: https://github.com/hubspot/hubspot-sdk-typescript/blob/main/src/resources/cms/api.md Use this method to list all landing pages. You can pass parameters to filter or paginate the results. ```typescript client.cms.pages.landingPages.list({ ...params }) ```