Saltar al contenido principal
POST
/
webhooks-journal
/
subscriptions
/
2026-03
Crear suscripción
curl --request POST \
  --url https://api.hubapi.com/webhooks-journal/subscriptions/2026-03 \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "actions": [],
  "objectIds": [
    123
  ],
  "objectTypeId": "<string>",
  "portalId": 123,
  "properties": [
    "<string>"
  ],
  "subscriptionType": "OBJECT"
}
'
{
  "actions": [],
  "appId": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "id": 123,
  "objectTypeId": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z",
  "actionOverrides": {},
  "associatedObjectTypeIds": [
    "<string>"
  ],
  "createdBy": 123,
  "deletedAt": "2023-11-07T05:31:56Z",
  "listIds": [
    123
  ],
  "objectIds": [
    123
  ],
  "portalId": 123,
  "properties": [
    "<string>"
  ]
}

Documentation Index

Fetch the complete documentation index at: https://developers.hubspot.es/docs/llms.txt

Use this file to discover all available pages before exploring further.

Supported products

Autorizaciones

Authorization
string
header
requerido

The access token received from the authorization server in the OAuth 2.0 flow.

Cuerpo

application/json
actions
enum<string>[]
requerido
Opciones disponibles:
CREATE,
UPDATE,
DELETE,
MERGE,
RESTORE,
ASSOCIATION_ADDED,
ASSOCIATION_REMOVED,
SNAPSHOT,
APP_INSTALL,
APP_UNINSTALL,
ADDED_TO_LIST,
REMOVED_FROM_LIST,
GDPR_DELETE
objectIds
integer<int64>[]
requerido
objectTypeId
string
requerido
portalId
integer<int64>
requerido
properties
string[]
requerido
subscriptionType
enum<string>
predeterminado:OBJECT
requerido
Opciones disponibles:
OBJECT

Respuesta

successful operation

actions
enum<string>[]
requerido

Una lista de acciones que desencadenan la suscripción. Los valores posibles son "CREATE", "UPDATE", "DELETE", "MERGE", "RESTORE", "ASSOCIATION_ADDED", "ASSOCIATION_REMOVED", "SNAPSHOT", "APP_INSTALL", "APP_UNINSTALL", "ADDED_TO_LIST", "REMOVED_FROM_LIST" y "RGPD_DELETE".

Opciones disponibles:
CREATE,
UPDATE,
DELETE,
MERGE,
RESTORE,
ASSOCIATION_ADDED,
ASSOCIATION_REMOVED,
SNAPSHOT,
APP_INSTALL,
APP_UNINSTALL,
ADDED_TO_LIST,
REMOVED_FROM_LIST,
GDPR_DELETE
appId
integer<int64>
requerido

El identificador único de la aplicación asociada a la suscripción. Es un número entero con formato int64.

createdAt
string<date-time>
requerido

La fecha y hora en que se creó la suscripción, en formato ISO 8601.

id
integer<int64>
requerido

El identificador único de la suscripción. Es un número entero con formato int64.

objectTypeId
string
requerido

El identificador del tipo de objeto asociado a la suscripción. Es una cadena.

subscriptionType
enum<string>
requerido

El tipo de suscripción, que puede ser "OBJECT", "ASSOCIATION", "EVENT", "APP_LIFECYCLE_EVENT", "LIST_MEMBERSHIP" o "RGPD_PRIVACY_DELETION".

Opciones disponibles:
APP_LIFECYCLE_EVENT,
ASSOCIATION,
EVENT,
GDPR_PRIVACY_DELETION,
LIST_MEMBERSHIP,
OBJECT
updatedAt
string<date-time>
requerido

La fecha y hora en que la suscripción se actualizó por última vez, en formato ISO 8601.

actionOverrides
object

Un objeto que contiene anulaciones de acciones, donde cada clave es una acción y el valor es un objeto ActionOverrideRequest.

associatedObjectTypeIds
string[]

Una lista de ID de tipos de objeto asociados. Cada ID es una cadena.

createdBy
integer<int64>

El ID del usuario que creó la suscripción. Es un número entero con formato int64.

deletedAt
string<date-time>

La fecha y hora en que se eliminó la suscripción, en formato ISO 8601, si corresponde.

listIds
integer<int64>[]

Una lista de ID de listas asociadas a la suscripción. Cada ID es un número entero con formato int64.

objectIds
integer<int64>[]

Una lista de ID de objeto asociados a la suscripción. Cada ID es un número entero con formato int64.

portalId
integer<int64>

El identificador único del portal asociado a la suscripción. Es un número entero con formato int64.

properties
string[]

Una lista de nombres de propiedades asociados a la suscripción. Cada propiedad es una cadena.

Last modified on May 11, 2026