younifyd
Menu

Post /webhooks/v3/{app Id}/subscriptions Create

Create an event subscription

POST/webhooks/v3/{appId}/subscriptions

Use it in a workflow

  1. Add a step and choose the HubSpot connector.
  2. Pick the Post /webhooks/v3/{app Id}/subscriptions Create action (under Webhooks).
  3. Fill in the fields below, then reference the result from later steps as {{postWebhooksV3AppIdSubscriptionsCreate.response.data}}.

Request

Path parameters

appIdinteger (int32)required

The ID of the target app.

Request body

Enter the body as JSON in the step's Body field.

activeboolean

Determines if the subscription is active or paused. Defaults to false.

eventTypestringrequired

Type of event to listen for. Can be one of `create`, `delete`, `deletedForPrivacy`, or `propertyChange`.

One ofcompany.associationChangecompany.creationcompany.deletioncompany.mergecompany.propertyChangecompany.restorecontact.associationChangecontact.creationcontact.deletioncontact.mergecontact.privacyDeletioncontact.propertyChangecontact.restoreconversation.creationconversation.deletionconversation.newMessageconversation.privacyDeletionconversation.propertyChangedeal.associationChangedeal.creationdeal.deletiondeal.mergedeal.propertyChangedeal.restoreevent.completedline_item.associationChangeline_item.creationline_item.deletionline_item.mergeline_item.propertyChangeline_item.restoreobject.associationChangeobject.creationobject.deletionobject.mergeobject.propertyChangeobject.restoreproduct.creationproduct.deletionproduct.merge

eventTypeNamestring

The name of the event to listen for. This is used with custom objects to specify custom event types beyond the standard eventType enum values.

objectTypeIdstring

The ID of the object type for the subscription. This can be a standard CRM object (e.g., 'contact', 'company', 'deal') or a custom object ID for custom object subscriptions.

propertyNamestring

The internal name of the property to monitor for changes. Only applies when `eventType` is `propertyChange`.

json
{
  "eventType": "company.associationChange",
  "active": false,
  "eventTypeName": "string",
  "objectTypeId": "string",
  "propertyName": "string"
}

Response

Returns 201 with an object. Read it in later steps with {{postWebhooksV3AppIdSubscriptionsCreate.response.data.<field>}}.

activeboolean

Whether the subscription is active or paused. If true, the subscription will send webhook notifications. If false, the subscription is paused and will not send notifications.

createdAtstring (date-time)

The timestamp when the webhook subscription was created, in ISO 8601 format (e.g., 2020-02-29T12:30:00Z).

eventTypestring

The type of event to listen for. Accepted values include contact.creation, contact.deletion, contact.propertyChange, and similar event types for other CRM objects and custom objects.

One ofcompany.associationChangecompany.creationcompany.deletioncompany.mergecompany.propertyChangecompany.restorecontact.associationChangecontact.creationcontact.deletioncontact.mergecontact.privacyDeletioncontact.propertyChangecontact.restoreconversation.creationconversation.deletionconversation.newMessageconversation.privacyDeletionconversation.propertyChangedeal.associationChangedeal.creationdeal.deletiondeal.mergedeal.propertyChangedeal.restoreevent.completedline_item.associationChangeline_item.creationline_item.deletionline_item.mergeline_item.propertyChangeline_item.restoreobject.associationChangeobject.creationobject.deletionobject.mergeobject.propertyChangeobject.restoreproduct.creationproduct.deletionproduct.merge

eventTypeNamestring

The name of the event to listen for. This is used with custom objects to specify custom event types beyond the standard eventType enum values.

idstring

The unique ID of the webhook subscription.

objectTypeIdstring

The ID of the object type for the subscription. This can be a standard CRM object (e.g., 'contact', 'company', 'deal') or a custom object ID for custom object subscriptions.

propertyNamestring

The internal name of the property to monitor for changes. Only applies when eventType is propertyChange.

updatedAtstring (date-time)

The timestamp when the webhook subscription was last updated, in ISO 8601 format (e.g., 2020-02-29T12:30:00Z).

json
{
  "active": false,
  "createdAt": "2025-01-01T00:00:00Z",
  "eventType": "company.associationChange",
  "id": "string",
  "eventTypeName": "string",
  "objectTypeId": "string",
  "propertyName": "string",
  "updatedAt": "2025-01-01T00:00:00Z"
}

Need more? See the HubSpot guide for connection setup and behaviour shared by every action.