Zum Hauptinhalt springen
GET
/
marketing
/
v3
/
marketing-events
/
{objectId}
Obtenir un événement marketing par ID d'objet
curl --request GET \
  --url https://api.hubapi.com/marketing/v3/marketing-events/{objectId} \
  --header 'Authorization: Bearer <token>'
{
  "registrants": 123,
  "eventOrganizer": "<string>",
  "eventUrl": "<string>",
  "attendees": 123,
  "appInfo": {
    "name": "<string>",
    "id": "<string>"
  },
  "eventType": "<string>",
  "eventCompleted": true,
  "endDateTime": "2023-11-07T05:31:56Z",
  "noShows": 123,
  "cancellations": 123,
  "createdAt": "2023-11-07T05:31:56Z",
  "startDateTime": "2023-11-07T05:31:56Z",
  "customProperties": [
    {
      "name": "<string>",
      "value": "<string>"
    }
  ],
  "eventCancelled": true,
  "externalEventId": "<string>",
  "eventStatus": "<string>",
  "eventDescription": "<string>",
  "eventName": "<string>",
  "objectId": "<string>",
  "updatedAt": "2023-11-07T05:31:56Z"
}
Produits pris en charge
Exige l'un des produits suivants ou un produit supérieur.
Marketing HubMarketing HubGratuit
Sales HubSales HubGratuit
Service HubService HubGratuit
Content HubContent HubStarter

Portées requises

Cette API requiert l’une des portées suivantes :
  • crm.objects.marketing_events.read

Authorizations

Authorization
string
header
required

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

Path Parameters

objectId
string
required

L'ID interne de l'événement marketing dans HubSpot

Response

successful operation

createdAt
string<date-time>
required
customProperties
object[]
required
eventName
string
required
objectId
string
required
updatedAt
string<date-time>
required
registrants
integer
eventOrganizer
string
eventUrl
string
attendees
integer
appInfo
object
eventType
string
eventCompleted
boolean
endDateTime
string<date-time>
noShows
integer
cancellations
integer
startDateTime
string<date-time>
eventCancelled
boolean
externalEventId
string
eventStatus
string
eventDescription
string
I