# New object associations not accessible via API

**URL:** <https://community.hubspot.com/t/new-object-associations-not-accessible-via-api/121607>\
**Category:** APIs & Integrations\
**Tags:** professional\
**Created:** [November 28, 2024, 6:54pm UTC](https://community.hubspot.com/t/new-object-associations-not-accessible-via-api/121607 "2024-11-28T18:54:19Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![JVermunt](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@JVermunt](https://community.hubspot.com/u/JVermunt)\
**Post date:** [November 28, 2024, 6:54pm UTC](https://community.hubspot.com/t/new-object-associations-not-accessible-via-api/121607/1 "2024-11-28T18:54:19Z")

</div>

Hi there,  
I created a set of association from contacts to appointments, and want to update these via the api.  
The appointments object is accessible as object 0-421, but I cannot seem to access the created associations.  
If I fetch all schema’s the created associations do not show up at all:

```lia-code-sample
curl --request GET \
 --url https://api.hubapi.com/crm/v4/associations/definitions/configurations/all \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN'

```

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [November 29, 2024, 11:37am UTC](https://community.hubspot.com/t/new-object-associations-not-accessible-via-api/121607/2 "2024-11-29T11:37:50Z")

</div>

Hi @JVermunt, I hope that you are well!  
Thanks for asking the Community!  
I understand that you are trying to view all the associations with the appointment object. Please let me know if that’s not the case.  
I’d like to share this article “[View a model of your CRM object and activity relationships](https://knowledge.hubspot.com/data-management/view-a-model-of-your-crm-object-and-activity-relationships)” for information on the new appointment object.  
Since this is a new CRM object, it may be that it is not yet accessible via API. I will double check on this internally for you.  
In the meantime, I’d love to put you in touch with some of our Top Experts and Community Members:  
Hi @rw1982, @HubDoPete, [@Jonas\_De\_Mets](https://community.hubspot.com/t5/user/viewprofilepage/user-id/654259) and [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811) have you tried API calls with the new appointment object? If yes, do you have suggestions to help @JVermunt, please?  
Thanks so much and have a lovely day!  
Best,  
Bérangère

---

<div class="post-metadata">

**Author:** ![JVermunt](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@JVermunt](https://community.hubspot.com/u/JVermunt)\
**Post date:** [December 2, 2024, 8:27am UTC](https://community.hubspot.com/t/new-object-associations-not-accessible-via-api/121607/3 "2024-12-02T08:27:22Z")

</div>

Hi [@BérangèreL](https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185), I’m doing great!  
Thanks for the information and references. I would like to add that the records itself from appointsments are accessible via the API, including the existing associations that are made.  
The problem that I face is that I cannot find the associations schema and add associations to objects.  
For more context, I want to use the appointments objects to track our events, where I connect contacts to the appointments with a no-show, show, registered or canceled label.  
For example, our operational manager will upload the show list of the event to HubSpot, where a custom coded action will update all the associations labels of the contacts to the event.

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [November 30, 2024, 5:05am UTC](https://community.hubspot.com/t/new-object-associations-not-accessible-via-api/121607/4 "2024-11-30T05:05:59Z")

</div>

Hi @JVermunt 👋

As per [HubSpot’s API docs](https://developers.hubspot.com/beta-docs/guides/api/crm/associations/associations-v4#retrieve-association-limits) (see _“Retrieve association limits”_ section), the GET _/crm/v4/associations/definitions/configurations/all_ API endpoint is intended for you to _“read all defined association **limits** ”_. It returns _“custom association limits defined across all objects”_.

It sounds like you might be more interested in using the _“Create and manage association types”_ section within the [relevant HubSpot API documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/associations/associations-v4#create-and-manage-association-types)?

I hope that proves helpful. Please let me know if you have any follow-up questions.

---

<div class="post-metadata">

**Author:** ![JVermunt](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@JVermunt](https://community.hubspot.com/u/JVermunt)\
**Post date:** [December 2, 2024, 8:19am UTC](https://community.hubspot.com/t/new-object-associations-not-accessible-via-api/121607/5 "2024-12-02T08:19:18Z")

</div>

Hi [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811) 👋  
The _“Create and manage association types”_ API returns no association from contacts to appointments, which is why I used the _read all defined association **limits**"_ to check on all associations.

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [December 3, 2024, 5:42am UTC](https://community.hubspot.com/t/new-object-associations-not-accessible-via-api/121607/6 "2024-12-03T05:42:55Z")

</div>

Hi @JVermunt 👋

Yes, that’s right. The Associations API has clear definitions between endpoints that manage the definition of association types (e.g. making it possible to associate individual records) and those that manage associations between individual records.

To retrieve associations between individual records, you’ll want to use the “Retrieve associated records” endpoint (see “Retrieve associated records” section in [this documentation](https://developers.hubspot.com/beta-docs/guides/api/crm/associations/associations-v4#retrieve-associated-records)).

I hope that proves helpful. Please let me know if you have any follow-up questions.

---

<div class="post-metadata">

**Author:** ![JVermunt](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@JVermunt](https://community.hubspot.com/u/JVermunt)\
**Post date:** [December 5, 2024, 1:22pm UTC](https://community.hubspot.com/t/new-object-associations-not-accessible-via-api/121607/7 "2024-12-05T13:22:29Z")

</div>

Based on this thread I conclude that it is not yet possible to access the association label for the new objects via the API.  
Do you know if this is on the roadmap in the near future?

---

<div class="post-metadata">

**Author:** ![zach\_threadint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zach_threadint/32/46318_2.png) [@zach\_threadint](https://community.hubspot.com/u/zach_threadint)\
**Post date:** [December 6, 2024, 12:21am UTC](https://community.hubspot.com/t/new-object-associations-not-accessible-via-api/121607/8 "2024-12-06T00:21:31Z")

</div>

Hi @JVermunt 👋

It is currently possible to retrieve both **[1]** association label definitions via [HubSpot’s CRM \> Associations API](https://developers.hubspot.com/beta-docs/guides/api/crm/associations/associations-v4) and **[2]** the application of association labels between CRM records via [HubSpot’s CRM \> Objects APIs](https://developers.hubspot.com/beta-docs/guides/api/crm/understanding-the-crm). For example:

1. **GET** [https://api.hubapi.com/crm/v4/associations/\*\*:FROM\_OBJECT\_TYPE\*\*/\*\*:TO\_OBJECT\_TYPE\*\*/labels](https://api.hubapi.com/crm/v4/associations/ **:FROM%5C_OBJECT%5C_TYPE** / **:TO%5C_OBJECT%5C_TYPE** /labels)
2. GET [https://api.hubapi.com/crm/v4/objects/\*\*:FROM\_OBJECT\_TYPE\*\*/:\*\*FROM\_OBJECT\_ID\*\*/associations/\*\*:TO\_OBJECT\_TYPE](https://api.hubapi.com/crm/v4/objects/ **:FROM%5C_OBJECT%5C_TYPE** /: **FROM%5C_OBJECT%5C_ID** /associations/**:TO%5C_OBJECT%5C_TYPE)\*\*

I hope that proves helpful. Please let me know if you have any follow-up questions.

---

<div class="post-metadata">

**Author:** ![JVermunt](https://avatars.discourse-cdn.com/v4/letter/j/7bcc69/32.png) [@JVermunt](https://community.hubspot.com/u/JVermunt)\
**Post date:** [December 6, 2024, 2:17pm UTC](https://community.hubspot.com/t/new-object-associations-not-accessible-via-api/121607/9 "2024-12-06T14:17:22Z")

</div>

Hi [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811),  
Thank you for your clarification and persistence, your answers helped me in finding the problem I had.  
I used the api’s you suggested using the pyton requests package:

```lia-code-sample
url = f"https://api.hubapi.com/crm/v4/associations/{ObjectType.APPOINTMENT.value}/{ObjectType.CONTACT.value}/labels"

response = requests.get(
 url, headers={"Authorization": f"Bearer {client.access_token}"}
 )

pprint(response.json())

```

This worked as intented and returned the USER\_DEFINED associations.  
Previously, I was using the hubspot python client which did not give me the results:

```lia-code-sample
def explore_associations(client, from_object_type, to_object_type):
 api_response = client.crm.associations.v4.schema.definition_configurations_api.get_all_between_two_object_types(
 from_object_type=from_object_type, to_object_type=to_object_type
 )

```

So in conclusion, the association labels of the new objects do definitely work with the api, but I couldn’t get it to work using the current version of the HubSpot python api and switched to using the regular requests package.
