For Agents
Define and evolve custom behavioural event schemas in HubSpot — create event definitions, then add or remove typed properties without rebuilding the whole schema.
Use for: I need to create a new custom event definition called checkout_completed, Add a typed property named order_value to the signup_completed event, Update the label of an existing custom event definition, Remove a deprecated property from an event schema
Not supported: Does not send event occurrences, query event history, or manage CRM contact records — use for defining and evolving custom event schemas only.
The HubSpot Manage Event Definitions API lets you create, update, and delete the schemas for custom behavioural events tracked against contacts in a HubSpot account. Each event definition declares a unique event name and a set of typed properties, which then governs every occurrence sent through the Send Event Completions API. This API also supports adding, updating, and removing individual properties on an existing event definition without redefining the whole schema, which keeps custom events evolvable as the product or campaign tracking changes.
Install Jentic One Beta
Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the Events Manage Event Definitions, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.
Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.
Step 1: Jentic One Host machine
# On the machine that will host your Jentic One instance:
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | shStep 2: Agent machine
# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh
jentic register # connects your agent to your Jentic One instanceJentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.
What an agent can do with Events Manage Event Definitions API.
Create a new custom behavioural event definition with a typed property set
Update an existing event definition's metadata and label by event name
Delete a custom event definition that is no longer in use
Add a new typed property to an event definition without redefining the whole schema
Update or remove an individual property on an existing event definition
Read back the current schema for a custom event before sending occurrences
Patterns agents use Events Manage Event Definitions API for, with concrete tasks.
★ Provision a Custom Event Schema
Before tracking a new product behaviour in HubSpot you must register an event definition with the property types it will carry. This API lets an agent create a definition such as checkout_completed with typed properties (order_value as number, currency as string), so that subsequent event completions are validated and reportable in HubSpot. Provisioning the schema once unlocks reporting, segmentation, and workflow triggers across the platform.
Call POST /events/v3/event-definitions with eventName=pe12345_checkout_completed and a property array including order_value (number) and currency (string).
Evolve an Event Schema Without Rebuilding
Product tracking needs change — add a new property to an existing event definition without losing historical occurrences or redefining the full schema. POST to the property subresource of an event definition to register a new typed property, or DELETE to remove a deprecated one. Useful when adding a new attribute (for example coupon_code on checkout_completed) mid-campaign.
Call POST /events/v3/event-definitions/{eventName}/property with name=coupon_code and type=string to add the property.
Schema Cleanup and Deprecation
Deprecate event definitions that are no longer in use by deleting the definition or removing specific properties to keep the HubSpot reporting catalogue clean. Listing the current schema before deletion lets an agent confirm there are no active dashboards that depend on the property. Useful for end-of-campaign cleanup and for reducing portal clutter when a product feature is sunset.
Call DELETE /events/v3/event-definitions/{eventName}/property/{propertyName} to remove a deprecated property, then DELETE /events/v3/event-definitions/{eventName} once unused.
AI Agent Schema Bootstrap via Jentic
An AI agent provisioning a new analytics integration searches Jentic for HubSpot event-definition operations, loads the create-definition schema, and submits the event with its property list. Jentic stores the OAuth credentials so the agent never handles raw tokens, and the typed input schema means the agent gets validation feedback before the call hits HubSpot.
Search Jentic for "create hubspot event definition", load the input schema, and execute POST /events/v3/event-definitions with the new event name and property array.
8 endpoints — the hubspot manage event definitions api lets you create, update, and delete the schemas for custom behavioural events tracked against contacts in a hubspot account.
METHOD
PATH
DESCRIPTION
/events/v3/event-definitions
Create a new custom event definition
/events/v3/event-definitions/{eventName}
Update an existing event definition
/events/v3/event-definitions/{eventName}
Delete a custom event definition
/events/v3/event-definitions/{eventName}/property
Add a property to an event definition
/events/v3/event-definitions/{eventName}/property/{propertyName}
Update a property on an event definition
/events/v3/event-definitions/{eventName}/property/{propertyName}
Delete a property from an event definition
/events/v3/event-definitions
Create a new custom event definition
/events/v3/event-definitions/{eventName}
Update an existing event definition
/events/v3/event-definitions/{eventName}
Delete a custom event definition
/events/v3/event-definitions/{eventName}/property
Add a property to an event definition
/events/v3/event-definitions/{eventName}/property/{propertyName}
Update a property on an event definition
/events/v3/event-definitions/{eventName}/property/{propertyName}
Delete a property from an event definition
Three things that make agents converge on Jentic-routed access.
Credential isolation
HubSpot OAuth and private app tokens are stored encrypted in the Jentic MAXsystem vault. Agents receive scoped execution access — the raw bearer token never enters the agent's context window.
Intent-based discovery
Agents search Jentic with intents like 'create hubspot event definition' and Jentic returns the matching operation with its input schema, so the agent calls POST /events/v3/event-definitions with the right property types without browsing HubSpot docs.
Time to first call
Direct HubSpot integration: 1-3 days for OAuth setup, schema validation, and idempotency handling. Through Jentic: under 30 minutes — search, load schema, execute.
Alternatives and complements available in the Jentic catalogue.
Specific to using Events Manage Event Definitions API through Jentic.
What authentication does the Manage Event Definitions API use?
It accepts HubSpot OAuth 2.0 access tokens or private app tokens (legacy schemes oauth2_legacy and private_apps_legacy) sent as Bearer in the Authorization header. Through Jentic, the token is stored encrypted in MAXsystem and injected at execution time.
Can I add a property to an event without redefining the whole schema?
Yes. Call POST /events/v3/event-definitions/{eventName}/property with the property name and type. Existing occurrences are preserved and new sends can immediately include the property.
What property types are supported for event definitions?
HubSpot supports string, number, datetime, and enumeration property types on custom event definitions. Set the type field on each property when creating the definition or adding a property to an existing one.
What are the rate limits for this API?
HubSpot enforces account-level limits of 100 requests per 10 seconds for OAuth and private app tokens, with daily caps that depend on the subscription tier. Watch the X-HubSpot-RateLimit response headers to back off before hitting the cap.
How do I create a custom event definition through Jentic?
Run pip install jentic, search for "create hubspot event definition", load the schema for POST /events/v3/event-definitions, and execute with eventName and a property array. Sign up at https://app.jentic.com/sign-up.
What happens to existing occurrences when I delete an event definition?
Deleting a definition removes the schema and detaches the event from new reporting, but historical occurrences may remain in the events store for a retention window. Confirm with HubSpot's current docs before removing definitions in active use.
GET STARTED