# Call API: hs\_call\_callee\_object\_type\_id does not exists

**URL:** <https://community.hubspot.com/t/call-api-hs-call-callee-object-type-id-does-not-exists/109642>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [June 19, 2024, 8:54am UTC](https://community.hubspot.com/t/call-api-hs-call-callee-object-type-id-does-not-exists/109642 "2024-06-19T08:54:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoniolao](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/antoniolao/32/68963_2.png) [@antoniolao](https://community.hubspot.com/u/antoniolao)\
**Post date:** [June 19, 2024, 8:54am UTC](https://community.hubspot.com/t/call-api-hs-call-callee-object-type-id-does-not-exists/109642/1 "2024-06-19T08:54:03Z")

</div>

When I create a call through the API by adding the parameter hs\_call\_callee\_object\_type\_id=CONTACT in order to associate the call with a contact, I get an error and cannot create the call.

Example of API call:

curl --request POST --url [https://api.hubapi.com/crm/v3/objects/calls](https://api.hubapi.com/crm/v3/objects/calls) --header ‘authorization: Bearer MY\_TOKEN ’ --header ‘content-type: application/json’ --data ’ {“properties”: {“hs\_timestamp”: “1718755200000”, “hs\_call\_body”: “Incoming call”, “hs\_call\_callee\_object\_type\_id”:“CONTACT”, “hs\_call\_callee\_object\_id”:“317112”, “hs\_call\_direction”: “INBOUND”, “hs\_call\_disposition” : “f240bbac-87c9-4f6e-bf70-924b57d47db7”, “hs\_call\_duration”: “7000”, “hs\_call\_from\_number”: “751000342”, “hs\_call\_status”: “COMPLETED”, “hs\_call\_title”: “Incoming call”, “hs\_call\_source”: “INTEGRATIONS\_PLATFORM”, “hs\_call\_to\_number”: “851040942”, “hubspot\_owner\_id”: “47892150”}}’

Result:

{“status”:“error”,“message”:"Property values ​​were not valid: [{\“isValid\”:false,\“message\”:\“Property \\\“hs\_call\_callee\_object\_type\_id\\\” does not exists\”,\“error\”:\“PROPERTY\_DOESNT\_EXIST\”,\“name\”:\“hs\_call\_callee\_object\_type\_id\”,\“localizedErrorMessage\”:\"The property \\\“hs\_call\_callee\_object\_type\_id\\\” does not exist\ “,\“portalId\”:6109494}]”,“correlationId”:“2e3162f3-a8fc-46a5-a1c6-4346a8bb4fa5”,“category”:“VALIDATION\_ERROR”}

---

<div class="post-metadata">

**Author:** ![AliFawadHassan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alifawadhassan/32/51437_2.png) [@AliFawadHassan](https://community.hubspot.com/u/AliFawadHassan)\
**Post date:** [June 19, 2024, 9:55am UTC](https://community.hubspot.com/t/call-api-hs-call-callee-object-type-id-does-not-exists/109642/2 "2024-06-19T09:55:21Z")

</div>

Hi antoniolao,  
The curl request below works for me, make sure instead of using “hs\_call\_callee\_object\_type\_id” use this “hs\_call\_callee\_object\_type” and second thing to ensure the the contact id you are passing in the request must be exists.

curl --location ‘[https://api.hubapi.com/crm/v3/objects/calls](https://api.hubapi.com/crm/v3/objects/calls)’ \

--header ‘authorization: Bearer pat\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*9’ \

--header ‘content-type: application/json’ \

--data '{

```
"properties": {

    "hs\_timestamp": "1718755200000",

    "hs\_call\_body": "Incoming call",

     "hs\_call\_callee\_object\_type": "CONTACT",

    "hs\_call\_callee\_object\_id": 25431089318,

    "hs\_call\_direction": "INBOUND",

    "hs\_call\_disposition": "f240bbac-87c9-4f6e-bf70-924b57d47db7",

    "hs\_call\_duration": "7000",

    "hs\_call\_from\_number": "751000342",

    "hs\_call\_status": "COMPLETED",

    "hs\_call\_title": "Incoming call",

    "hs\_call\_source": "INTEGRATIONS\_PLATFORM",

    "hs\_call\_to\_number": "851040942"

}

```

}’

---

<div class="post-metadata">

**Author:** ![antoniolao](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/antoniolao/32/68963_2.png) [@antoniolao](https://community.hubspot.com/u/antoniolao)\
**Post date:** [June 19, 2024, 1:13pm UTC](https://community.hubspot.com/t/call-api-hs-call-callee-object-type-id-does-not-exists/109642/3 "2024-06-19T13:13:05Z")

</div>

Now it no longer returns an error, but the call is not assigned to the contact

---

<div class="post-metadata">

**Author:** ![AliFawadHassan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alifawadhassan/32/51437_2.png) [@AliFawadHassan](https://community.hubspot.com/u/AliFawadHassan)\
**Post date:** [June 19, 2024, 2:15pm UTC](https://community.hubspot.com/t/call-api-hs-call-callee-object-type-id-does-not-exists/109642/4 "2024-06-19T14:15:45Z")

</div>

set this parameter “hubspot\_owner\_id” with existing owner id, I hope it will work.

---

<div class="post-metadata">

**Author:** ![antoniolao](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/antoniolao/32/68963_2.png) [@antoniolao](https://community.hubspot.com/u/antoniolao)\
**Post date:** [June 19, 2024, 3:40pm UTC](https://community.hubspot.com/t/call-api-hs-call-callee-object-type-id-does-not-exists/109642/5 "2024-06-19T15:40:44Z")

</div>

That is not the solution, this is assigned to the owner but not to the contact.

In the end I solved it this way:

1º I create the call as indicated above

2º I assign the call to the contact as follows:

curl --request PUT --url [https://api.hubapi.com/crm/v3/objects/calls/{callId}/associations/contacts/{contactId}/call\_to\_contact](https://api.hubapi.com/crm/v3/objects/calls/%7BcallId%7D/associations/contacts/%7BcontactId%7D/call_to_contact) --header ‘authorization: Bearer MY\_TOKEN’ -- header ‘content-type: application/json’
