Create meetings with hubspot API

Hello everyone,

I’m trying to create a meeting by the hubspot API with this endpoint:

/crm/v3/objects/meetings

and i’m using the following json body:

{

“associations”: [

{

“types”: [

{

“associationCategory”: “HUBSPOT_DEFINED”,

“associationTypeId”: 212

}

],

“to”: {

“id”: “123456789”

}

}

],

“objectWriteTraceId”: “string”,

“properties”: {

“hs_timestamp”: 1732114800000,

“hs_meeting_end_time”: 1732125600000,

“hs_meeting_title”: “Teste de agendamento”,

“hubspot_owner_id”: 123456,

“hs_meeting_external_url”: “https://outlook.office365.com/owa/calendar/exemple/calendar.html”

}
}

the parameters are just exemples, and i’m referring to this documentation: Accounts Dashboard | HubSpot

The meeting is created successfully in the hubspot object, but it is not being registred on the microsoft user’s calendar. Can anyone help me with this?

Good day! @denilsonluizm

Why is it happening?

This is happening because the HubSpot’s API is designed to simply add a meeting record to the CRM. Even if you add an ‘hs_meeting_external_url’ property to the meeting record you created, it will simply get logged as its external url, but the link must first be created and existing in Google Calendar or Outlook.

Now, this is different if you are using HubSpot UI, because HubSpot is providing a Calendar Sync functionality you can find in your ‘Account Settings’. HubSpot is handling the creation of the calendar event automatically whenever a new meeting record is created in the CRM.

Possible solution: Use the Google Calendar API to create a calendar event and retrieve its event link. Then, create the CRM record using the Meetings API and update the ‘hs_meeting_external_url’ field with the retrieved event link.

Reference: Connect your Calendar to HubSpot

Under “Sync your calendar and tasks” header, it is stated that Calendar Sync does not sync meetings created by integrations.

Was I able to help answer your question? Help the community by marking it as a solution.

Hi, how can I create a meeting from the API and see the new meeting in the list of meetings?

Currently, when I create a meeting, I can only see it when I visit the contact and see the activities

.

Hi @juniorovdev,
Thank you for posting to the Community!
Can you please clarify where you are wanting to see the meeting when you says ‘the listing of meetings’? Are you wanting to create a meeting scheduling page via Hubspot API? Feel free to attach screenshots!
With that being said, I’d also like to invite some of our subject matter experts to this discussion.
Hi @ChristinaKay @HubSpot_Corey and @Gonzalo I hope you all are having a fantastic Tuesday! Do you have any suggestions for @juniorovdev on the above?
Thank you!
Cassie, Community Manager