hubspot.marketing.events
Module hubspot.marketing.events
API
Definitions
ballerinax/hubspot.marketing.events Ballerina library
Overview
HubSpot is an AI-powered customer relationship management (CRM) platform.
The HubSpot Marketing Events connector offers APIs to connect and interact with the HubSpot Marketing Events API endpoints.
Key Features
- Connect and interact with HubSpot Marketing Events API endpoints
- Support for HubSpot REST API
- Manage and update participants seamlessly
- Automate event management and tracking
Setup guide
To use the HubSpot Marketing Events connector, you must have access to the HubSpot API through a HubSpot developer account and a HubSpot App under it. Therefore, you need to register for a developer account at HubSpot if you don't have one already.
Step 1: Create/Login to a HubSpot Developer Account
If you have an account already, go to the HubSpot developer portal
If you don't have a HubSpot Developer Account, you can sign up for a free account here
Step 2 (Optional): Create a Developer Test Account under your account
Within app developer accounts, you can create a developer test account to test apps and integrations without affecting any real HubSpot data.
Note: These accounts are only for development and testing purposes. Developer Test Accounts must not be used in production environments.
-
Go to the Test Account section from the left sidebar.

-
Click Create developer test account.

-
In the dialog box, give a name to your test account and click create.

Step 3: Create a HubSpot App under your account
-
In your developer account, navigate to the "Apps" section. Click on "Create App"

-
Provide the necessary details, including the app name and description.
Step 4: Configure the Authentication Flow
-
Move to the Auth Tab.

-
In the Scopes section, add the following scopes for your app using the "Add new scope" button.
crm.objects.marketing_events.readcrm.objects.marketing_events.write

-
Add your Redirect URI in the relevant section. You can also use localhost addresses for local development purposes. Click "Create App".

Step 5: Get your Client ID and Client Secret
-
Navigate to the "Auth" section of your app. Make sure to save the provided Client ID and Client Secret.

Step 6: Setup Authentication Flow
Before proceeding with the Quickstart, ensure you have obtained the Access Token using the following steps:
-
Create an authorization URL using the following format
https://app.hubspot.com/oauth/authorize?client_id=<YOUR_CLIENT_ID>&scope=<YOUR_SCOPES>&redirect_uri=<YOUR_REDIRECT_URI>Replace the
<YOUR_CLIENT_ID>,<YOUR_REDIRECT_URI>and<YOUR_SCOPES>with your specific value. -
Paste it in the browser and select your developer test account to install the app when prompted.

-
A code will be displayed in the browser. Copy the code.
-
Run the following curl command. Replace the
<YOUR_CLIENT_ID>,<YOUR_REDIRECT_URI> and<YOUR_CLIENT_SECRET>with your specific value. Use the code you received in the above step 3 as the<CODE>.-
Linux/macOS
curl --request POST \ --url https://api.hubapi.com/oauth/v1/token \ --header 'content-type: application/x-www-form-urlencoded' \ --data 'grant_type=authorization_code&code=<CODE>&redirect_uri=<YOUR_REDIRECT_URI>&client_id=<YOUR_CLIENT_ID>&client_secret=<YOUR_CLIENT_SECRET>' -
Windows
curl --request POST ^ --url https://api.hubapi.com/oauth/v1/token ^ --header 'content-type: application/x-www-form-urlencoded' ^ --data 'grant_type=authorization_code&code=<CODE>&redirect_uri=<YOUR_REDIRECT_URI>&client_id=<YOUR_CLIENT_ID>&client_secret=<YOUR_CLIENT_SECRET>'
This command will return the access token necessary for API calls.
{ "token_type": "bearer", "refresh_token": "<Refresh Token>", "access_token": "<Access Token>", "expires_in": 1800 } -
-
Store the access token securely for use in your application.
Step 7 (Optional): Generate a Developer API Key to retrieve and change Application Settings
Note: This step is optional and only required if you want to retrieve and change application settings via the client.
-
Go to the Developer API Key section in the HubSpot Developer Portal.

-
Click on "Create Key".

-
Copy the API Key.

-
Store the API Key securely for use in your application.
Quickstart
To use the HubSpot Marketing Events connector in your Ballerina application, update the .bal file as follows:
Step 1: Import the module
Import the hubspot.marketing.events module and oauth2 module.
import ballerina/oauth2; import ballerinax/hubspot.marketing.events as hsmevents;
Step 2: Instantiate a new connector
-
Create a
Config.tomlfile in the root directory of the Ballerina project and configure the obtained credentials in the above steps as follows:clientId = "<Client Id>" clientSecret = "<Client Secret>" refreshToken = "<Refresh Token>"Note (Optional): If you want to use Set and Get Application Settings operations, you need to provide the Developer API Key in the
Config.tomlfile as well.clientId = "<Client Id>" clientSecret = "<Client Secret>" refreshToken = "<Refresh Token>" apiKey = "<API Key>" -
Instantiate a
hsmevents:ConnectionConfigwith the obtained credentials and initialize the connector with it.configurable string clientId = ?; configurable string clientSecret = ?; configurable string refreshToken = ?; final hsmevents:ConnectionConfig config = { auth : { clientId, clientSecret, refreshToken, credentialBearer: oauth2:POST_BODY_BEARER } }; final hsmevents:Client hsmevents = check new (config);Note (Optional): To use the Set and Get Application Settings operations, you need to instantiate a separate client object with the API Key as the auth token. This client can be used only for these operations.
configurable string clientId = ?; configurable string clientSecret = ?; configurable string refreshToken = ?; configurable string apiKey = ?; final hsmevents:ConnectionConfig config = { auth : { clientId, clientSecret, refreshToken, credentialBearer: oauth2:POST_BODY_BEARER }, }; final hsmevents:Client hsmevents = check new (config); // Create a separate client object for Set and Get Application Settings operations final hsmevents:ConnectionConfig configWithApiKey = { auth : { hapikey: apiKey, private\-app\-legacy: "" } }; final hsmevents:Client hsmevents2 = check new (configWithApiKey);
Step 3: Invoke the connector operation
Now, utilize the available connector operations. A sample use case is shown below.
Create a Marketing Event
MarketingEventCreateRequestParams payload = { externalAccountId: 11111, externalEventId: 10000, eventName: "Winter webinar", eventOrganizer: "Snowman Fellowship", eventCancelled: false, eventUrl: "https://example.com/holiday-jam", eventDescription: "Let's plan for the holidays", eventCompleted: false, startDateTime: "2024-08-07T12:36:59.286Z", endDateTime: "2024-08-07T12:36:59.286Z", customProperties: [] }; public function main() returns error? { hsmevents:MarketingEventDefaultResponse createEvent = check hsmevents->postEvents_create(payload); }
(Optional) Get Application Settings
int:Signed32 appId = 12345; // Your App ID EventDetailSettings response = check hsmevents2->getAppidSettings_getall(appId); // Need to use the Client with API Key Authentication
Examples
The HubSpot Marketing Events connector provides practical examples illustrating usage in various scenarios. Explore these examples, covering the following use cases:
- Event Participation Management - Use Marketing Event API to Manage and Update Participants seamlessly.
- Marketing Event Management - Create, update and manage multiple Marketing Events and automate event management.
Clients
hubspot.marketing.events: Client
Constructor
Gets invoked to initialize the connector
init (ConnectionConfig config, string serviceUrl)- config ConnectionConfig - The configurations to be used when initializing the
connector
- serviceUrl string "https://api.hubapi.com/marketing/v3/marketing-events" - URL of the target service
postAttendanceExternalEventIdSubscriberStateCreateRecordByContactIds
function postAttendanceExternalEventIdSubscriberStateCreateRecordByContactIds(string externalEventId, string subscriberState, BatchInputMarketingEventSubscriber payload, map<string|string[]> headers, *PostAttendanceExternalEventIdSubscriberStateCreateRecordByContactIdsQueries queries) returns BatchResponseSubscriberVidResponse|errorRecord participants by contact IDs
Parameters
- externalEventId string - The id of the marketing event in the external event application
- subscriberState string - The new subscriber state for the HubSpot contacts and the specified marketing event. For example: 'register', 'attend' or 'cancel'
- payload BatchInputMarketingEventSubscriber - A batch input marketing event subscriber
- queries *PostAttendanceExternalEventIdSubscriberStateCreateRecordByContactIdsQueries - Queries to be sent with the request
Return Type
- BatchResponseSubscriberVidResponse|error - successful operation
getParticipationsMarketingEventIdBreakdownGetParticipationsBreakdownByMarketingEventId
function getParticipationsMarketingEventIdBreakdownGetParticipationsBreakdownByMarketingEventId(int marketingEventId, map<string|string[]> headers, *GetParticipationsMarketingEventIdBreakdownGetParticipationsBreakdownByMarketingEventIdQueries queries) returns CollectionResponseWithTotalParticipationBreakdownForwardPaging|errorGet participations breakdown by event
Parameters
- marketingEventId int - The internal id of the marketing event in HubSpot
- queries *GetParticipationsMarketingEventIdBreakdownGetParticipationsBreakdownByMarketingEventIdQueries - Queries to be sent with the request
Return Type
- CollectionResponseWithTotalParticipationBreakdownForwardPaging|error - successful operation
postEventsExternalEventIdSubscriberStateUpsertUpsertByContactId
function postEventsExternalEventIdSubscriberStateUpsertUpsertByContactId(string externalEventId, string subscriberState, BatchInputMarketingEventSubscriber payload, map<string|string[]> headers, *PostEventsExternalEventIdSubscriberStateUpsertUpsertByContactIdQueries queries) returns Response|errorRecord subscriber state by contact
Parameters
- externalEventId string - The id of the marketing event in the external event application
- subscriberState string - The new subscriber state for the HubSpot contacts and the specified marketing event. For example: 'register', 'attend' or 'cancel'
- payload BatchInputMarketingEventSubscriber - A batch input marketing event subscriber
- queries *PostEventsExternalEventIdSubscriberStateUpsertUpsertByContactIdQueries - Queries to be sent with the request
getEventsExternalEventIdGetDetails
function getEventsExternalEventIdGetDetails(string externalEventId, map<string|string[]> headers, *GetEventsExternalEventIdGetDetailsQueries queries) returns MarketingEventPublicReadResponse|errorGet Marketing Event by External IDs
Parameters
- externalEventId string - The id of the marketing event in the external event application
- queries *GetEventsExternalEventIdGetDetailsQueries - Queries to be sent with the request
Return Type
- MarketingEventPublicReadResponse|error - successful operation
putEventsExternalEventIdUpsert
function putEventsExternalEventIdUpsert(string externalEventId, MarketingEventCreateRequestParams payload, map<string|string[]> headers) returns MarketingEventPublicDefaultResponse|errorCreate or update a marketing event
Parameters
- externalEventId string - The id of the marketing event in the external event application
- payload MarketingEventCreateRequestParams - A marketing event create request params
Return Type
- MarketingEventPublicDefaultResponse|error - successful operation
deleteEventsExternalEventIdArchive
function deleteEventsExternalEventIdArchive(string externalEventId, map<string|string[]> headers, *DeleteEventsExternalEventIdArchiveQueries queries) returns error?Delete event by external IDs
Parameters
- externalEventId string - The id of the marketing event in the external event application
- queries *DeleteEventsExternalEventIdArchiveQueries - Queries to be sent with the request
Return Type
- error? - No content
patchEventsExternalEventIdUpdate
function patchEventsExternalEventIdUpdate(string externalEventId, MarketingEventUpdateRequestParams payload, map<string|string[]> headers, *PatchEventsExternalEventIdUpdateQueries queries) returns MarketingEventPublicDefaultResponse|errorUpdate event by external IDs
Parameters
- externalEventId string - The id of the marketing event in the external event application
- payload MarketingEventUpdateRequestParams - A marketing event update request params
- queries *PatchEventsExternalEventIdUpdateQueries - Queries to be sent with the request
Return Type
- MarketingEventPublicDefaultResponse|error - successful operation
postEventsUpsertBatchUpsert
function postEventsUpsertBatchUpsert(BatchInputMarketingEventCreateRequestParams payload, map<string|string[]> headers) returns BatchResponseMarketingEventPublicDefaultResponse|errorUpsert multiple marketing events
Parameters
- payload BatchInputMarketingEventCreateRequestParams - A batch input marketing event create request params
Return Type
- BatchResponseMarketingEventPublicDefaultResponse|error - successful operation
postAttendanceExternalEventIdSubscriberStateEmailCreateRecordByContactEmails
function postAttendanceExternalEventIdSubscriberStateEmailCreateRecordByContactEmails(string externalEventId, string subscriberState, BatchInputMarketingEventEmailSubscriber payload, map<string|string[]> headers, *PostAttendanceExternalEventIdSubscriberStateEmailCreateRecordByContactEmailsQueries queries) returns BatchResponseSubscriberEmailResponse|errorRecord participants by email
Parameters
- externalEventId string - The id of the marketing event in the external event application
- subscriberState string - The new subscriber state for the HubSpot contacts and the specified marketing event. For example: 'register', 'attend' or 'cancel'
- payload BatchInputMarketingEventEmailSubscriber - A batch input marketing event email subscriber
- queries *PostAttendanceExternalEventIdSubscriberStateEmailCreateRecordByContactEmailsQueries - Queries to be sent with the request
Return Type
- BatchResponseSubscriberEmailResponse|error - successful operation
getParticipationsExternalAccountIdExternalEventIdBreakdownGetParticipationsBreakdownByExternalEventId
function getParticipationsExternalAccountIdExternalEventIdBreakdownGetParticipationsBreakdownByExternalEventId(string externalAccountId, string externalEventId, map<string|string[]> headers, *GetParticipationsExternalAccountIdExternalEventIdBreakdownGetParticipationsBreakdownByExternalEventIdQueries queries) returns CollectionResponseWithTotalParticipationBreakdownForwardPaging|errorGet participation breakdown
Parameters
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
- externalEventId string - The id of the marketing event in the external event application
- queries *GetParticipationsExternalAccountIdExternalEventIdBreakdownGetParticipationsBreakdownByExternalEventIdQueries - Queries to be sent with the request
Return Type
- CollectionResponseWithTotalParticipationBreakdownForwardPaging|error - successful operation
getObjectId
function getObjectId(string objectId, map<string|string[]> headers) returns MarketingEventPublicReadResponseV2|errorGet Marketing Event by objectId
Parameters
- objectId string - The internal ID of the marketing event in HubSpot
Return Type
- MarketingEventPublicReadResponseV2|error - successful operation
deleteObjectId
Delete Marketing Event by objectId
Parameters
- objectId string - The internal ID of the marketing event in HubSpot
Return Type
- error? - No content
patchObjectId
function patchObjectId(string objectId, MarketingEventPublicUpdateRequestV2 payload, map<string|string[]> headers) returns MarketingEventPublicDefaultResponseV2|errorUpdate Marketing Event by objectId
Parameters
- objectId string - The internal ID of the marketing event in HubSpot
- payload MarketingEventPublicUpdateRequestV2 - A marketing event public update request v2
Return Type
- MarketingEventPublicDefaultResponseV2|error - successful operation
getAssociationsExternalAccountIdExternalEventIdListsGetAllByExternalAccountAndEventIds
function getAssociationsExternalAccountIdExternalEventIdListsGetAllByExternalAccountAndEventIds(string externalAccountId, string externalEventId, map<string|string[]> headers) returns CollectionResponseWithTotalPublicListNoPaging|errorGet event-associated lists
Parameters
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
- externalEventId string - The id of the marketing event in the external event application
Return Type
- CollectionResponseWithTotalPublicListNoPaging|error - successful operation
getAssociationsMarketingEventIdListsGetAllByMarketingEventId
function getAssociationsMarketingEventIdListsGetAllByMarketingEventId(string marketingEventId, map<string|string[]> headers) returns CollectionResponseWithTotalPublicListNoPaging|errorGet event-associated lists
Parameters
- marketingEventId string - The internal id of the marketing event in HubSpot
Return Type
- CollectionResponseWithTotalPublicListNoPaging|error - successful operation
postObjectIdAttendanceSubscriberStateEmailCreate
function postObjectIdAttendanceSubscriberStateEmailCreate(string objectId, string subscriberState, BatchInputMarketingEventEmailSubscriber payload, map<string|string[]> headers) returns BatchResponseSubscriberEmailResponse|errorRecord participants by email
Parameters
- objectId string - The internal ID of the marketing event in HubSpot
- subscriberState string - The attendance state value. It may be 'register', 'attend' or 'cancel'
- payload BatchInputMarketingEventEmailSubscriber - A batch input marketing event email subscriber
Return Type
- BatchResponseSubscriberEmailResponse|error - successful operation
get
function get(map<string|string[]> headers, *GetQueries queries) returns CollectionResponseMarketingEventPublicReadResponseV2ForwardPaging|errorGet all marketing event
Parameters
- queries *GetQueries - Queries to be sent with the request
Return Type
- CollectionResponseMarketingEventPublicReadResponseV2ForwardPaging|error - successful operation
postBatchUpdate
function postBatchUpdate(BatchInputMarketingEventPublicUpdateRequestFullV2 payload, map<string|string[]> headers) returns BatchResponseMarketingEventPublicDefaultResponseV2|BatchResponseMarketingEventPublicDefaultResponseV2WithErrors|errorBatch update events by ObjectId
Parameters
- payload BatchInputMarketingEventPublicUpdateRequestFullV2 - A batch input marketing event public update request full v2
Return Type
postObjectIdAttendanceSubscriberStateCreate
function postObjectIdAttendanceSubscriberStateCreate(string objectId, string subscriberState, BatchInputMarketingEventSubscriber payload, map<string|string[]> headers) returns BatchResponseSubscriberVidResponse|errorRecord participants by contact ID
Parameters
- objectId string - The internal id of the marketing event in HubSpot
- subscriberState string - The attendance state value. It may be 'register', 'attend' or 'cancel'
- payload BatchInputMarketingEventSubscriber - A batch input marketing event subscriber
Return Type
- BatchResponseSubscriberVidResponse|error - successful operation
postBatchArchive
function postBatchArchive(BatchInputMarketingEventPublicObjectIdDeleteRequest payload, map<string|string[]> headers) returns error?Batch delete events by ObjectId
Parameters
- payload BatchInputMarketingEventPublicObjectIdDeleteRequest - A batch input marketing event public object id delete request
Return Type
- error? - No content
getParticipationsExternalAccountIdExternalEventIdGetParticipationsCountersByEventExternalId
function getParticipationsExternalAccountIdExternalEventIdGetParticipationsCountersByEventExternalId(string externalAccountId, string externalEventId, map<string|string[]> headers) returns AttendanceCounters|errorGet participation counters
Parameters
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
- externalEventId string - The id of the marketing event in the external event application
Return Type
- AttendanceCounters|error - successful operation
getExternalEventIdIdentifiers
function getExternalEventIdIdentifiers(string externalEventId, map<string|string[]> headers) returns CollectionResponseWithTotalMarketingEventIdentifiersResponseNoPaging|errorFind events by externalEventId
Parameters
- externalEventId string - The id of the marketing event in the external event application
Return Type
- CollectionResponseWithTotalMarketingEventIdentifiersResponseNoPaging|error - successful operation
getParticipationsMarketingEventIdGetParticipationsCountersByMarketingEventId
function getParticipationsMarketingEventIdGetParticipationsCountersByMarketingEventId(int marketingEventId, map<string|string[]> headers) returns AttendanceCounters|errorGet participation counters
Parameters
- marketingEventId int - The internal id of the marketing event in HubSpot
Return Type
- AttendanceCounters|error - successful operation
postEventsDeleteBatchArchive
function postEventsDeleteBatchArchive(BatchInputMarketingEventExternalUniqueIdentifier payload, map<string|string[]> headers) returns Response|errorBatch delete by external IDs
Parameters
- payload BatchInputMarketingEventExternalUniqueIdentifier - A batch input marketing event external unique identifier
postEventsExternalEventIdCancelCancel
function postEventsExternalEventIdCancelCancel(string externalEventId, map<string|string[]> headers, *PostEventsExternalEventIdCancelCancelQueries queries) returns MarketingEventDefaultResponse|errorMark a marketing event as cancelled
Parameters
- externalEventId string - The id of the marketing event in the external event application
- queries *PostEventsExternalEventIdCancelCancelQueries - Queries to be sent with the request
Return Type
- MarketingEventDefaultResponse|error - successful operation
putAssociationsMarketingEventIdListsListIdAssociateByMarketingEventId
function putAssociationsMarketingEventIdListsListIdAssociateByMarketingEventId(string marketingEventId, string listId, map<string|string[]> headers) returns error?Associate list with event
Parameters
- marketingEventId string - The internal id of the marketing event in HubSpot
- listId string - The ILS ID of the list
Return Type
- error? - No content
deleteAssociationsMarketingEventIdListsListIdDisassociateByMarketingEventId
function deleteAssociationsMarketingEventIdListsListIdDisassociateByMarketingEventId(string marketingEventId, string listId, map<string|string[]> headers) returns error?Disassociate list from event
Parameters
- marketingEventId string - The internal id of the marketing event in HubSpot
- listId string - The ILS ID of the list
Return Type
- error? - No content
postEventsExternalEventIdSubscriberStateEmailUpsertUpsertByContactEmail
function postEventsExternalEventIdSubscriberStateEmailUpsertUpsertByContactEmail(string externalEventId, string subscriberState, BatchInputMarketingEventEmailSubscriber payload, map<string|string[]> headers, *PostEventsExternalEventIdSubscriberStateEmailUpsertUpsertByContactEmailQueries queries) returns Response|errorRecord subscriber state by email
Parameters
- externalEventId string - The id of the marketing event in the external event application
- subscriberState string - The new subscriber state for the HubSpot contacts and the specified marketing event. For example: 'register', 'attend' or 'cancel'
- payload BatchInputMarketingEventEmailSubscriber - A batch input marketing event email subscriber
- queries *PostEventsExternalEventIdSubscriberStateEmailUpsertUpsertByContactEmailQueries - Queries to be sent with the request
putAssociationsExternalAccountIdExternalEventIdListsListIdAssociateByExternalAccountAndEventIds
function putAssociationsExternalAccountIdExternalEventIdListsListIdAssociateByExternalAccountAndEventIds(string externalAccountId, string externalEventId, string listId, map<string|string[]> headers) returns error?Associate list with event
Parameters
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
- externalEventId string - The id of the marketing event in the external event application
- listId string - The ILS ID of the list
Return Type
- error? - No content
deleteAssociationsExternalAccountIdExternalEventIdListsListIdDisassociateByExternalAccountAndEventIds
function deleteAssociationsExternalAccountIdExternalEventIdListsListIdDisassociateByExternalAccountAndEventIds(string externalAccountId, string externalEventId, string listId, map<string|string[]> headers) returns error?Disassociate a list from event
Parameters
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
- externalEventId string - The id of the marketing event in the external event application
- listId string - The ILS ID of the list
Return Type
- error? - No content
postEventsExternalEventIdCompleteComplete
function postEventsExternalEventIdCompleteComplete(string externalEventId, MarketingEventCompleteRequestParams payload, map<string|string[]> headers, *PostEventsExternalEventIdCompleteCompleteQueries queries) returns MarketingEventDefaultResponse|errorMark a marketing event as completed
Parameters
- externalEventId string - The id of the marketing event in the external event application
- payload MarketingEventCompleteRequestParams - A marketing event complete request params
- queries *PostEventsExternalEventIdCompleteCompleteQueries - Queries to be sent with the request
Return Type
- MarketingEventDefaultResponse|error - successful operation
postEventsCreate
function postEventsCreate(MarketingEventCreateRequestParams payload, map<string|string[]> headers) returns MarketingEventDefaultResponse|errorCreate a marketing event
Parameters
- payload MarketingEventCreateRequestParams - A marketing event create request params
Return Type
- MarketingEventDefaultResponse|error - successful operation
getParticipationsContactsContactIdentifierBreakdownGetParticipationsBreakdownByContactId
function getParticipationsContactsContactIdentifierBreakdownGetParticipationsBreakdownByContactId(string contactIdentifier, map<string|string[]> headers, *GetParticipationsContactsContactIdentifierBreakdownGetParticipationsBreakdownByContactIdQueries queries) returns CollectionResponseWithTotalParticipationBreakdownForwardPaging|errorGet participation breakdown
Parameters
- contactIdentifier string - The identifier of the Contact. It may be email or internal id
- queries *GetParticipationsContactsContactIdentifierBreakdownGetParticipationsBreakdownByContactIdQueries - Queries to be sent with the request
Return Type
- CollectionResponseWithTotalParticipationBreakdownForwardPaging|error - successful operation
getAppIdSettingsGetAll
function getAppIdSettingsGetAll(Signed32 appId, map<string|string[]> headers) returns EventDetailSettings|errorRetrieve the application settings
Parameters
- appId Signed32 - The id of the application to retrieve the settings for
Return Type
- EventDetailSettings|error - successful operation
postAppIdSettingsUpdate
function postAppIdSettingsUpdate(Signed32 appId, EventDetailSettingsUrl payload, map<string|string[]> headers) returns EventDetailSettings|errorUpdate the application settings
Parameters
- appId Signed32 - The id of the application to update the settings for
- payload EventDetailSettingsUrl - A event detail settings url
Return Type
- EventDetailSettings|error - successful operation
getEventsSearchDoSearch
function getEventsSearchDoSearch(map<string|string[]> headers, *GetEventsSearchDoSearchQueries queries) returns CollectionResponseSearchPublicResponseWrapperNoPaging|errorFind events by external ID
Parameters
- queries *GetEventsSearchDoSearchQueries - Queries to be sent with the request
Return Type
- CollectionResponseSearchPublicResponseWrapperNoPaging|error - successful operation
Records
hubspot.marketing.events: ApiKeysConfig
Provides API key configurations needed when communicating with a remote HTTP endpoint
Fields
- hapikey string -
- privateAppLegacy string -
hubspot.marketing.events: AppInfo
Object containing identifying information about the application associated with a marketing event
Fields
- name string - The name of the application
- id string - The unique identifier of the application
hubspot.marketing.events: AttendanceCounters
An object containing attendance count totals for a marketing event, including registered, attended, cancelled, and no-show figures
Fields
- attended Signed32 - Number of contacts who attended the event
- registered Signed32 - Number of contacts registered for the event
- cancelled Signed32 - Number of contacts who cancelled their registration
- noShows Signed32 - Number of registered contacts who did not attend
hubspot.marketing.events: BatchInputMarketingEventCreateRequestParams
A batch input object containing an array of marketing event creation request parameters
Fields
- inputs MarketingEventCreateRequestParams[] - An array of marketing event creation request parameter objects
hubspot.marketing.events: BatchInputMarketingEventEmailSubscriber
Batch request payload containing a list of marketing event email subscriber records to create or update
Fields
- inputs MarketingEventEmailSubscriber[] - List of marketing event details to create or update
hubspot.marketing.events: BatchInputMarketingEventExternalUniqueIdentifier
Batch input object containing a list of external unique identifiers for marketing events
Fields
- inputs MarketingEventExternalUniqueIdentifier[] - A list of external unique identifiers for the marketing events
hubspot.marketing.events: BatchInputMarketingEventPublicObjectIdDeleteRequest
A batch input object containing an array of marketing event object ID delete requests
Fields
- inputs MarketingEventPublicObjectIdDeleteRequest[] - An array of marketing event object ID delete request objects
hubspot.marketing.events: BatchInputMarketingEventPublicUpdateRequestFullV2
Batch request payload containing a list of marketing events to update in bulk
Fields
- inputs MarketingEventPublicUpdateRequestFullV2[] - List of marketing event update requests to process in the batch
hubspot.marketing.events: BatchInputMarketingEventSubscriber
Batch input schema containing a list of HubSpot contacts to subscribe to a marketing event
Fields
- inputs MarketingEventSubscriber[] - List of HubSpot contacts to subscribe to the marketing event
hubspot.marketing.events: BatchResponseMarketingEventPublicDefaultResponse
Batch response containing marketing event results, status, and error details
Fields
- completedAt string - Timestamp when the batch request completed
- numErrors? Signed32 - Total number of errors encountered in the batch request
- requestedAt? string - Timestamp when the batch request was received
- startedAt string - Timestamp when the batch request began processing
- links? record { string... } - Map of relevant navigation links for the batch response
- results MarketingEventPublicDefaultResponse[] - List of marketing event results returned by the batch operation
- errors? StandardError[] - List of errors encountered during batch processing
- status "PENDING"|"PROCESSING"|"CANCELED"|"COMPLETE" - Current processing status of the batch request
hubspot.marketing.events: BatchResponseMarketingEventPublicDefaultResponseV2
Batch response containing marketing event results, processing status, and timing metadata
Fields
- completedAt string - Timestamp when the batch request completed
- requestedAt? string - Timestamp when the batch request was received
- startedAt string - Timestamp when the batch request began processing
- links? record { string... } - Map of relevant navigation links for the batch response
- results MarketingEventPublicDefaultResponseV2[] - List of marketing event results returned by the batch operation
- status "PENDING"|"PROCESSING"|"CANCELED"|"COMPLETE" - Current processing status of the batch request
hubspot.marketing.events: BatchResponseMarketingEventPublicDefaultResponseV2WithErrors
A batch response object containing results, status, timing metadata, and any errors encountered during processing of marketing events
Fields
- completedAt string - The datetime the batch operation completed
- numErrors? Signed32 - The total number of errors encountered during the batch operation
- requestedAt? string - The datetime the batch operation was requested
- startedAt string - The datetime the batch operation started processing
- links? record { string... } - A map of relevant link names to associated URIs
- results MarketingEventPublicDefaultResponseV2[] - An array of successfully processed marketing event response objects
- errors? StandardError[] - An array of standard error objects for any failed items in the batch
- status "PENDING"|"PROCESSING"|"CANCELED"|"COMPLETE" - The current status of the batch operation
hubspot.marketing.events: BatchResponseSubscriberEmailResponse
Batch response containing subscriber email operation results, status, timing metadata, and any errors encountered
Fields
- completedAt string - Timestamp when the batch operation completed
- numErrors? Signed32 - Total number of errors encountered during the batch operation
- requestedAt? string - Timestamp when the batch operation was requested
- startedAt string - Timestamp when the batch operation began processing
- links? record { string... } - Map of relevant navigational links related to the batch response
- results SubscriberEmailResponse[] - List of subscriber email responses returned by the batch operation
- errors? StandardError[] - List of errors encountered during the batch operation
- status "PENDING"|"PROCESSING"|"CANCELED"|"COMPLETE" - Current processing status of the batch operation
hubspot.marketing.events: BatchResponseSubscriberVidResponse
Batch response containing subscriber VID results, processing status, error counts, and timestamps
Fields
- completedAt string - The datetime when the batch operation completed
- numErrors? Signed32 - The total number of errors encountered during the batch operation
- requestedAt? string - The datetime when the batch operation was requested
- startedAt string - The datetime when the batch operation started processing
- links? record { string... } - Map of related resource links for the batch response
- results SubscriberVidResponse[] - List of subscriber VID responses returned in the batch
- errors? StandardError[] - List of errors encountered during batch processing
- status "PENDING"|"PROCESSING"|"CANCELED"|"COMPLETE" - Current processing status of the batch operation
hubspot.marketing.events: CollectionResponseMarketingEventPublicReadResponseV2ForwardPaging
A paginated collection response containing a list of marketing event read responses with optional forward paging details
Fields
- paging? ForwardPaging - Pagination metadata for forward-only traversal, containing a reference to the next page of results
- results MarketingEventPublicReadResponseV2[] - List of marketing event public read response objects (V2)
hubspot.marketing.events: CollectionResponseSearchPublicResponseWrapperNoPaging
A collection response containing an array of search result wrapper objects with no paging information
Fields
- results SearchPublicResponseWrapper[] - An array of search result wrapper objects returned by the query
hubspot.marketing.events: CollectionResponseWithTotalMarketingEventIdentifiersResponseNoPaging
A collection response containing marketing event identifiers along with the total count of results
Fields
- total Signed32 - Total number of marketing event identifier results returned
- results MarketingEventIdentifiersResponse[] - List of marketing event identifier response objects
hubspot.marketing.events: CollectionResponseWithTotalParticipationBreakdownForwardPaging
Paginated collection of participation breakdown records with a total count
Fields
- total Signed32 - Total number of participation breakdown records available
- paging? ForwardPaging - Pagination metadata for forward-only traversal, containing a reference to the next page of results
- results ParticipationBreakdown[] - List of participation breakdown records for the current page
hubspot.marketing.events: CollectionResponseWithTotalPublicListNoPaging
A collection response containing a total count and an array of public lists, returned without paging metadata
Fields
- total Signed32 - The total number of results in the collection
- results PublicList[] - The array of public list objects returned in the response
hubspot.marketing.events: ConnectionConfig
Provides a set of configurations for controlling the behaviours when communicating with a remote HTTP endpoint
Fields
- auth BearerTokenConfig|OAuth2RefreshTokenGrantConfig|ApiKeysConfig - Provides Auth configurations needed when communicating with a remote HTTP endpoint
- httpVersion HttpVersion(default http:HTTP_2_0) - The HTTP version understood by the client
- http1Settings ClientHttp1Settings(default {}) - Configurations related to HTTP/1.x protocol
- http2Settings ClientHttp2Settings(default {}) - Configurations related to HTTP/2 protocol
- timeout decimal(default 30) - The maximum time to wait (in seconds) for a response before closing the connection
- forwarded string(default "disable") - The choice of setting
forwarded/x-forwardedheader
- followRedirects? FollowRedirects - Configurations associated with Redirection
- poolConfig? PoolConfiguration - Configurations associated with request pooling
- cache CacheConfig(default {}) - HTTP caching related configurations
- compression Compression(default http:COMPRESSION_AUTO) - Specifies the way of handling compression (
accept-encoding) header
- circuitBreaker? CircuitBreakerConfig - Configurations associated with the behaviour of the Circuit Breaker
- retryConfig? RetryConfig - Configurations associated with retrying
- cookieConfig? CookieConfig - Configurations associated with cookies
- responseLimits ResponseLimitConfigs(default {}) - Configurations associated with inbound response size limits
- secureSocket? ClientSecureSocket - SSL/TLS-related options
- proxy? ProxyConfig - Proxy server related options
- socketConfig ClientSocketConfig(default {}) - Provides settings related to client socket configuration
- validation boolean(default true) - Enables the inbound payload validation functionality which provided by the constraint package. Enabled by default
- laxDataBinding boolean(default true) - Enables relaxed data binding on the client side. When enabled,
nilvalues are treated as optional, and absent fields are handled asnilabletypes. Enabled by default
hubspot.marketing.events: ContactAssociation
Represents a contact association for a marketing event, linking a contact by ID and email along with optional name details
Fields
- firstname? string - The contact's first name
- contactId string - The unique identifier of the associated contact
- email string - The email address of the associated contact
- lastname? string - The contact's last name
hubspot.marketing.events: CrmPropertyWrapper
A name-value pair representing a custom CRM property on a marketing event
Fields
- name string - The internal name of the CRM property
- value string - The value assigned to the CRM property
hubspot.marketing.events: DeleteEventsExternalEventIdArchiveQueries
Represents the Queries record for the operation: deleteEventsExternalEventIdArchive
Fields
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
hubspot.marketing.events: ErrorDetail
Detailed information about a specific error, including its message, status code, affected field, category, and contextual data
Fields
- subCategory? string - A specific category that contains more specific detail about the error
- code? string - The status code associated with the error detail
- 'in? string - The name of the field or parameter in which the error was found
- context? record { string[]... } - Context about the error condition
- message string - A human readable message describing the error along with remediation steps where appropriate
hubspot.marketing.events: EventDetailSettings
Configuration settings for an application's marketing event detail URL, keyed by app ID
Fields
- appId Signed32 - The id of the application the settings are for
- eventDetailsUrl string - The url that will be used to fetch marketing event details by id
hubspot.marketing.events: EventDetailSettingsUrl
Defines the URL template used to fetch marketing event details by ID, requiring a %s placeholder for the event ID
Fields
- eventDetailsUrl string - The url that will be used to fetch marketing event details by id. Must contain a
%scharacter sequence that will be substituted with the event id. For example:https://my.event.app/events/%s
hubspot.marketing.events: ForwardPaging
Pagination metadata for forward-only traversal, containing a reference to the next page of results
Fields
- next? NextPage - Pagination cursor object used to retrieve the next page of results
hubspot.marketing.events: GetEventsExternalEventIdGetDetailsQueries
Represents the Queries record for the operation: getEventsExternalEventIdGetDetails
Fields
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
hubspot.marketing.events: GetEventsSearchDoSearchQueries
Represents the Queries record for the operation: getEventsSearchDoSearch
Fields
- q string - The id of the marketing event in the external event application (externalEventId)
hubspot.marketing.events: GetParticipationsContactsContactIdentifierBreakdownGetParticipationsBreakdownByContactIdQueries
Represents the Queries record for the operation: getParticipationsContactsContactIdentifierBreakdownGetParticipationsBreakdownByContactId
Fields
- 'limit Signed32(default 10) - The limit for response size. The default value is 10, the max number is 100
- state? string - The participation state value. It may be REGISTERED, CANCELLED, ATTENDED, NO_SHOW
- after? string - The cursor indicating the position of the last retrieved item
hubspot.marketing.events: GetParticipationsExternalAccountIdExternalEventIdBreakdownGetParticipationsBreakdownByExternalEventIdQueries
Represents the Queries record for the operation: getParticipationsExternalAccountIdExternalEventIdBreakdownGetParticipationsBreakdownByExternalEventId
Fields
- contactIdentifier? string - The identifier of the Contact. It may be email or internal id
- 'limit Signed32(default 10) - The limit for response size. The default value is 10, the max number is 100
- state? string - The participation state value. It may be REGISTERED, CANCELLED, ATTENDED, NO_SHOW
- after? string - The cursor indicating the position of the last retrieved item
hubspot.marketing.events: GetParticipationsMarketingEventIdBreakdownGetParticipationsBreakdownByMarketingEventIdQueries
Represents the Queries record for the operation: getParticipationsMarketingEventIdBreakdownGetParticipationsBreakdownByMarketingEventId
Fields
- contactIdentifier? string - The identifier of the Contact. It may be email or internal id
- 'limit Signed32(default 10) - The limit for response size. The default value is 10, the max number is 100
- state? string - The participation state value. It may be REGISTERED, CANCELLED, ATTENDED, NO_SHOW
- after? string - The cursor indicating the position of the last retrieved item
hubspot.marketing.events: GetQueries
Represents the Queries record for the operation: get
Fields
- 'limit Signed32(default 10) - The limit for response size. The default value is 10, the max number is 100
- after? string - The cursor indicating the position of the last retrieved item
hubspot.marketing.events: MarketingEventAssociation
Represents an association between a HubSpot record and a marketing event
Fields
- externalAccountId? string - The account ID in the external event application
- marketingEventId string - The unique identifier of the associated marketing event
- externalEventId? string - The external identifier of the associated marketing event
- name string - The name of the associated marketing event
hubspot.marketing.events: MarketingEventCompleteRequestParams
Parameters required to mark a marketing event as complete, including its start and end times
Fields
- startDateTime string - The start date and time of the marketing event
- endDateTime string - The end date and time of the marketing event
hubspot.marketing.events: MarketingEventCreateRequestParams
Request parameters for creating a new marketing event, including required identifiers, organizer details, scheduling, and optional custom properties
Fields
- startDateTime? string - The start date and time of the marketing event
- customProperties? CrmPropertyWrapper[] - A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
- eventCancelled? boolean - Indicates if the marketing event has been cancelled. Defaults to
false
- eventOrganizer string - The name of the organizer of the marketing event
- eventUrl? string - A URL in the external event application where the marketing event can be managed
- externalEventId string - The id of the marketing event in the external event application
- eventDescription? string - The description of the marketing event
- eventName string - The name of the marketing event
- eventType? string - Describes what type of event this is. For example:
WEBINAR,CONFERENCE,WORKSHOP
- eventCompleted? boolean - Indicates whether the marketing event has been completed
- endDateTime? string - The end date and time of the marketing event
hubspot.marketing.events: MarketingEventDefaultResponse
Default response schema representing a marketing event, including its name, organizer, dates, type, description, URL, and optional custom properties
Fields
- startDateTime? string - The start date and time of the marketing event
- customProperties? CrmPropertyWrapper[] - A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts
- eventCancelled? boolean - Indicates if the marketing event has been cancelled
- eventOrganizer string - The name of the organizer of the marketing event
- eventUrl? string - The URL in the external event application where the marketing event can be managed
- eventDescription? string - The description of the marketing event
- eventName string - The name of the marketing event
- eventType? string - The type of the marketing event
- eventCompleted? boolean - Indicates whether the marketing event has been completed
- endDateTime? string - The end date and time of the marketing event
- objectId? string - The HubSpot object ID of the marketing event
hubspot.marketing.events: MarketingEventEmailSubscriber
Represents an email-identified contact to associate with a marketing event, including their email address, subscription timestamp, and optional properties
Fields
- contactProperties? record { string... } - Key-value map of HubSpot contact properties to set on the contact
- properties? record { string... } - Key-value map of additional properties associated with the subscriber
- email string - The email address of the contact in HubSpot to associate with the event
- interactionDateTime int - Timestamp in milliseconds at which the contact subscribed to the event
hubspot.marketing.events: MarketingEventExternalUniqueIdentifier
Uniquely identifies a marketing event across the external application, HubSpot app, and account
Fields
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
- externalEventId string - The id of the marketing event in the external event application
- appId Signed32 - The id of the application that created the marketing event in HubSpot
hubspot.marketing.events: MarketingEventIdentifiersResponse
Response object containing identifiers that uniquely reference a marketing event, including its external ID, HubSpot object ID, and associated app info
Fields
- externalAccountId? string - The external account ID associated with the marketing event
- externalEventId string - The unique identifier of the event in the external application
- appInfo? AppInfo - Object containing identifying information about the application associated with a marketing event
- objectId string - The HubSpot object ID of the marketing event
- marketingEventName string - The name of the marketing event
hubspot.marketing.events: MarketingEventPublicDefaultResponse
Default response object representing a marketing event, including its details, status, and custom properties
Fields
- eventOrganizer string - The name of the organizer of the marketing event
- eventUrl? string - A URL in the external event application where the marketing event can be managed
- eventType? string - The type of the marketing event
- eventCompleted? boolean - Indicates whether the marketing event has been completed
- endDateTime? string - The end date and time of the marketing event
- createdAt string - The datetime when the marketing event record was created
- startDateTime? string - The start date and time of the marketing event
- customProperties? CrmPropertyWrapper[] - A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts
- eventCancelled? boolean - Indicates if the marketing event has been cancelled
- eventDescription? string - The description of the marketing event
- eventName string - The name of the marketing event
- id string - The unique identifier of the marketing event
- objectId? string - The HubSpot object ID associated with the marketing event
- updatedAt string - The datetime when the marketing event record was last updated
hubspot.marketing.events: MarketingEventPublicDefaultResponseV2
Default response object for a marketing event (V2), including event details, scheduling, status flags, and custom properties
Fields
- eventOrganizer? string - The name of the organizer of the marketing event
- eventUrl? string - URL to the event in the external event application
- appInfo? AppInfo - Object containing identifying information about the application associated with a marketing event
- eventType? string - The type or category of the marketing event
- eventCompleted? boolean - Indicates whether the marketing event has completed
- endDateTime? string - The date and time when the marketing event ends
- createdAt string - The date and time when the marketing event was created
- startDateTime? string - The date and time when the marketing event starts
- customProperties CrmPropertyWrapper[] - A list of custom CRM properties associated with the marketing event
- eventCancelled? boolean - Indicates whether the marketing event has been cancelled
- eventDescription? string - A text description providing details about the marketing event
- eventName string - The name or title of the marketing event
- objectId string - The unique identifier of the marketing event object
- updatedAt string - The date and time when the marketing event was last updated
hubspot.marketing.events: MarketingEventPublicObjectIdDeleteRequest
Request body for deleting a marketing event identified by its object ID
Fields
- objectId string - The unique identifier of the marketing event to delete
hubspot.marketing.events: MarketingEventPublicReadResponse
Full details of a marketing event, including organizer info, scheduling, attendance counts, and custom properties
Fields
- registrants Signed32 - The number of HubSpot contacts that registered for this marketing event
- eventOrganizer string - The name of the organizer of the marketing event
- eventUrl? string - A URL in the external event application where the marketing event can be managed
- attendees Signed32 - The number of HubSpot contacts that attended this marketing event
- eventType? string - The type of the marketing event
- eventCompleted? boolean - Indicates whether the marketing event has been completed
- endDateTime? string - The end date and time of the marketing event
- noShows Signed32 - The number of HubSpot contacts that registered for this marketing event, but did not attend. This field only had a value when the event is over
- cancellations Signed32 - The number of HubSpot contacts that registered for this marketing event, but later cancelled their registration
- createdAt string - Timestamp when the marketing event record was created
- startDateTime? string - The start date and time of the marketing event
- customProperties? CrmPropertyWrapper[] - A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts
- eventCancelled? boolean - Indicates if the marketing event has been cancelled
- externalEventId string - The id of the marketing event in the external event application
- eventDescription? string - The description of the marketing event
- eventName string - The name of the marketing event
- id string - The unique HubSpot identifier for the marketing event
- objectId? string - The HubSpot object ID associated with the marketing event
- updatedAt string - Timestamp when the marketing event record was last updated
hubspot.marketing.events: MarketingEventPublicReadResponseV2
Represents the full read response for a marketing event, including metadata, scheduling, attendance statistics, and custom properties
Fields
- registrants? Signed32 - The total number of contacts registered for the event
- eventOrganizer? string - The name of the person or organization hosting the event
- eventUrl? string - The URL where the marketing event can be accessed or viewed
- attendees? Signed32 - The total number of contacts who attended the event
- appInfo? AppInfo - Object containing identifying information about the application associated with a marketing event
- eventType? string - The category or format type of the marketing event
- eventCompleted? boolean - Indicates whether the marketing event has been completed
- endDateTime? string - The date and time when the marketing event ends
- noShows? Signed32 - The number of registered contacts who did not attend the event
- cancellations? Signed32 - The total number of registrations cancelled for the event
- createdAt string - The date and time when the marketing event record was created
- startDateTime? string - The date and time when the marketing event begins
- customProperties CrmPropertyWrapper[] - A list of custom CRM properties associated with the marketing event
- eventCancelled? boolean - Indicates whether the marketing event has been cancelled
- externalEventId? string - The unique identifier of the event in the external source system
- eventStatus? string - The current status of the marketing event
- eventDescription? string - A text description providing details about the marketing event
- eventName string - The name of the marketing event
- objectId string - The unique identifier of the marketing event object
- updatedAt string - The datetime the marketing event was last updated
hubspot.marketing.events: MarketingEventPublicUpdateRequestFullV2
Request body schema for performing a full update of an existing marketing event, including all updatable fields and custom properties
Fields
- startDateTime? string - The date and time when the marketing event starts
- customProperties CrmPropertyWrapper[] - A list of custom CRM properties to associate with the marketing event
- eventCancelled? boolean - Set to true to mark the marketing event as cancelled
- eventOrganizer? string - The name or identifier of the event organizer
- eventUrl? string - The URL linking to the marketing event's page or registration
- eventDescription? string - A text description providing details about the marketing event
- eventName? string - The name or title of the marketing event
- eventType? string - The type or category of the marketing event
- endDateTime? string - The scheduled end date and time of the marketing event
- objectId string - The unique identifier of the marketing event object
hubspot.marketing.events: MarketingEventPublicUpdateRequestV2
Request payload for partially updating an existing marketing event's details and custom properties
Fields
- startDateTime? string - The scheduled start date and time of the marketing event
- customProperties CrmPropertyWrapper[] - A list of custom CRM properties to associate with the marketing event
- eventCancelled? boolean - Indicates whether the marketing event has been cancelled
- eventOrganizer? string - The name of the organizer responsible for the event
- eventUrl? string - The URL of the marketing event's landing or registration page
- eventDescription? string - A text description providing details about the marketing event
- eventName? string - The name of the marketing event
- eventType? string - The type of event (e.g., WEBINAR, CONFERENCE, WORKSHOP)
- endDateTime? string - The end date and time of the marketing event
hubspot.marketing.events: MarketingEventSubscriber
Represents a contact subscriber for a marketing event, including their ID, interaction timestamp, and additional properties
Fields
- vid int - The HubSpot contact ID (vid) of the event subscriber
- properties? record { string... } - Additional key-value properties associated with the subscriber
- interactionDateTime int - Timestamp in milliseconds at which the contact subscribed to the event
hubspot.marketing.events: MarketingEventUpdateRequestParams
Request parameters for updating an existing marketing event, including scheduling, organizer details, custom properties, and status flags
Fields
- startDateTime? string - The start date and time of the marketing event
- customProperties? CrmPropertyWrapper[] - A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts
- eventCancelled? boolean - Indicates if the marketing event has been cancelled. Defaults to
false
- eventOrganizer? string - The name of the organizer of the marketing event
- eventUrl? string - A URL in the external event application where the marketing event can be managed
- eventDescription? string - The description of the marketing event
- eventName? string - The name of the marketing event
- eventType? string - Describes what type of event this is. For example:
WEBINAR,CONFERENCE,WORKSHOP
- eventCompleted? boolean - Indicates whether the marketing event has been completed
- endDateTime? string - The end date and time of the marketing event
hubspot.marketing.events: NextPage
Pagination cursor object used to retrieve the next page of results
Fields
- link? string - URL link to the next page of results
- after string - Cursor token identifying the start of the next results page
hubspot.marketing.events: OAuth2RefreshTokenGrantConfig
OAuth2 Refresh Token Grant Configs
Fields
- Fields Included from *OAuth2RefreshTokenGrantConfig
- refreshUrl string(default "https://api.hubapi.com/oauth/v1/token") - Refresh URL
hubspot.marketing.events: ParticipationAssociations
Defines the associations between a contact and a marketing event for participation tracking
Fields
- marketingEvent MarketingEventAssociation - Represents an association between a HubSpot record and a marketing event
- contact ContactAssociation - Represents a contact association for a marketing event, linking a contact by ID and email along with optional name details
hubspot.marketing.events: ParticipationBreakdown
Detailed breakdown of a contact's participation in a marketing event, including associations, timestamps, and properties
Fields
- associations ParticipationAssociations - Defines the associations between a contact and a marketing event for participation tracking
- createdAt string - The datetime when the participation record was created
- id string - The unique identifier of the participation record
- properties ParticipationProperties - Properties describing a contact's participation state and engagement in a marketing event
hubspot.marketing.events: ParticipationProperties
Properties describing a contact's participation state and engagement in a marketing event
Fields
- occurredAt int - Unix timestamp (ms) when the participation event occurred
- attendancePercentage? string - Percentage of the event the contact attended
- attendanceState "REGISTERED"|"ATTENDED"|"CANCELLED"|"EMPTY"|"NO_SHOW" - Contact's attendance status: REGISTERED, ATTENDED, CANCELLED, EMPTY, or NO_SHOW
- attendanceDurationSeconds? Signed32 - Total duration in seconds the contact attended the event
hubspot.marketing.events: PatchEventsExternalEventIdUpdateQueries
Represents the Queries record for the operation: patchEventsExternalEventIdUpdate
Fields
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
hubspot.marketing.events: PostAttendanceExternalEventIdSubscriberStateCreateRecordByContactIdsQueries
Represents the Queries record for the operation: postAttendanceExternalEventIdSubscriberStateCreateRecordByContactIds
Fields
- externalAccountId? string - The accountId that is associated with this marketing event in the external event application
hubspot.marketing.events: PostAttendanceExternalEventIdSubscriberStateEmailCreateRecordByContactEmailsQueries
Represents the Queries record for the operation: postAttendanceExternalEventIdSubscriberStateEmailCreateRecordByContactEmails
Fields
- externalAccountId? string - The accountId that is associated with this marketing event in the external event application
hubspot.marketing.events: PostEventsExternalEventIdCancelCancelQueries
Represents the Queries record for the operation: postEventsExternalEventIdCancelCancel
Fields
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
hubspot.marketing.events: PostEventsExternalEventIdCompleteCompleteQueries
Represents the Queries record for the operation: postEventsExternalEventIdCompleteComplete
Fields
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
hubspot.marketing.events: PostEventsExternalEventIdSubscriberStateEmailUpsertUpsertByContactEmailQueries
Represents the Queries record for the operation: postEventsExternalEventIdSubscriberStateEmailUpsertUpsertByContactEmail
Fields
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
hubspot.marketing.events: PostEventsExternalEventIdSubscriberStateUpsertUpsertByContactIdQueries
Represents the Queries record for the operation: postEventsExternalEventIdSubscriberStateUpsertUpsertByContactId
Fields
- externalAccountId string - The accountId that is associated with this marketing event in the external event application
hubspot.marketing.events: PublicList
Represents a HubSpot list, including its identifier, name, object type, processing configuration, membership size, and audit timestamps
Fields
- processingType string - The processing method used to evaluate list membership
- objectTypeId string - The type identifier of objects contained in the list
- updatedById? string - The ID of the user who last updated the list
- filtersUpdatedAt? string - Timestamp when the list's filter criteria were last updated
- listId string - The unique identifier of the list
- createdAt? string - Timestamp when the list was created
- processingStatus string - The current processing status of the list
- deletedAt? string - Timestamp when the list was deleted, if applicable
- listVersion Signed32 - The version number of the list
- size? int - The total number of members in the list
- name string - The display name of the list
- createdById? string - The ID of the user who created the list
- updatedAt? string - Timestamp of the most recent update to the list
hubspot.marketing.events: SearchPublicResponseWrapper
Represents a search result identifying a marketing event by its external and HubSpot object identifiers
Fields
- externalAccountId string - The account ID from the external event application
- externalEventId string - The event ID from the external event application
- appId Signed32 - The ID of the app that created the marketing event
- objectId string - The HubSpot object ID of the marketing event
hubspot.marketing.events: StandardError
Standard error response schema containing status, category, message, context, and error details
Fields
- subCategory? record {} - Optional sub-category providing additional error classification
- context record { string[]... } - Key-value map of contextual details related to the error
- links record { string... } - Map of relevant links associated with the error
- id? string - Unique identifier for the error instance
- category string - High-level category classifying the type of error
- message string - Human-readable message describing the error
- errors ErrorDetail[] - List of detailed error entries associated with this error
- status string - HTTP status or error state associated with this error
hubspot.marketing.events: SubscriberEmailResponse
Response object containing a HubSpot contact's ID and email address
Fields
- vid int - The HubSpot contact ID (VID) of the subscriber
- email string - The email address of the subscriber
hubspot.marketing.events: SubscriberVidResponse
Contains the HubSpot contact visitor ID returned after a subscriber operation
Fields
- vid int -
Import
import ballerinax/hubspot.marketing.events;Metadata
Released date: 19 days ago
Version: 1.0.2
License: Apache-2.0
Compatibility
Platform: any
Ballerina version: 2201.12.2
GraalVM compatible: Yes
Pull count
Total: 48
Current verison: 17
Weekly downloads
Keywords
Marketing/Event Management
Cost/Freemium
Vendor/HubSpot
Area/Marketing & Social Media
Type/Connector
Contributors