# Adding call engagement via API - invalid from

**URL:** <https://community.hubspot.com/t/adding-call-engagement-via-api-invalid-from/11496>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [October 10, 2018, 10:06am UTC](https://community.hubspot.com/t/adding-call-engagement-via-api-invalid-from/11496 "2018-10-10T10:06:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 10, 2018, 10:06am UTC](https://community.hubspot.com/t/adding-call-engagement-via-api-invalid-from/11496/1 "2018-10-10T10:06:23Z")

</div>

I’m adding call engagements to contacts via API. I’m providing two phone numbers: from, and to, as specified in the documentation:  
 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/4/0/40ca2892652898a5b76a4bae4084e2be14175525.png) [developers.hubspot.com](https://developers.hubspot.com/docs/methods/engagements/engagements-overview)

### [Engagements overview](https://developers.hubspot.com/docs/methods/engagements/engagements-overview)

An overview of engagements and the Engagements API

![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/e/b/eb5e09863f5edf56e35fa90393f636bb7b231bf2.png)

But in the call details it is not reflected properly - I sometimes see somebody’s else as the person who made the call. I.e. a call made by different person that I see as my own

How can I set those fields properly?

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 10, 2018, 10:07am UTC](https://community.hubspot.com/t/adding-call-engagement-via-api-invalid-from/11496/2 "2018-10-10T10:07:04Z")

</div>

Another screenshot: improper from and to fields:

 ![](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/0/7056ae0283fda4c6fbdbec1f4a6179ce826b7ff0.png)

---

<div class="post-metadata">

**Author:** ![cbarley](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cbarley/32/82559_2.png) [@cbarley](https://community.hubspot.com/u/cbarley)\
**Post date:** [October 10, 2018, 7:29pm UTC](https://community.hubspot.com/t/adding-call-engagement-via-api-invalid-from/11496/3 "2018-10-10T19:29:41Z")

</div>

Hi [@gacek](https://community.hubspot.com/u/gacek), those `toNumber` and `fromNumber` fields are internal fields only that can only be pulled from the API. They do not have any implication who’s names appear when logging a call. When submitting a call engagement via the API, the part that controls _who_ logs the call (e.g. where it it says in your screenshot “_ **You** _ logged a call”) is the `ownerId` property within the “engagement” object. If you wanted to change who logs the call, you should insert a different ownerId in the property below by finding their internal ID here: [https://app.hubspot.com/property-settings/3430672/contact/hubspot\_owner\_id](https://app.hubspot.com/property-settings/3430672/contact/hubspot_owner_id)

```auto
"engagement": {
 "active": true,
 "ownerId": 1, <===== this property is the one that controls who logs the call
 "type": "NOTE",
 "timestamp": 1409172644778
 },

```

The call engagement will always appear on the associated contact specified in the associations sections:

```auto
 "associations": {
 "contactIds": [1], <==== contact vid goes here, this is the contact who's timeline the call will always log onto.
 "companyIds": [],
 "dealIds": [],
 "ownerIds": []
 }

```

Let me know if I can clarify anything.

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 11, 2018, 8:32am UTC](https://community.hubspot.com/t/adding-call-engagement-via-api-invalid-from/11496/4 "2018-10-11T08:32:37Z")

</div>

OK, thanks. I think it is a bit clearer for me right now
