# Metadata for recording call duration via API

**URL:** <https://community.hubspot.com/t/metadata-for-recording-call-duration-via-api/11547>\
**Category:** APIs & Integrations\
**Tags:** contacts\
**Created:** [December 12, 2018, 9:57am UTC](https://community.hubspot.com/t/metadata-for-recording-call-duration-via-api/11547 "2018-12-12T09:57:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lisa\_nikolau](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lisa_nikolau/32/89259_2.png) [@lisa\_nikolau](https://community.hubspot.com/u/lisa_nikolau)\
**Post date:** [December 12, 2018, 9:57am UTC](https://community.hubspot.com/t/metadata-for-recording-call-duration-via-api/11547/1 "2018-12-12T09:57:27Z")

</div>

Submitting on behalf of a customer whose goal it is to monitor call duration on the dashboard.

I was able to find the following in the API documetation:

```auto
"durationMilliseconds" : 38000,
 // Integer; the length of the call in milliseconds

```

Is this the right metadata for this type of data pass, on a dashboard report?

Thank you!

---

<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:** [December 12, 2018, 9:46pm UTC](https://community.hubspot.com/t/metadata-for-recording-call-duration-via-api/11547/2 "2018-12-12T21:46:47Z")

</div>

Hi [@Lisa\_Nikolau](https://community.hubspot.com/u/lisa_nikolau), yes, that’s exactly right! If your customer would like to add a call duration to a CALL engagement via the API, they can add the `durationMilliseconds` property within the metadata object like in the example here: [https://developers.hubspot.com/docs/methods/engagements/create\_engagement](https://developers.hubspot.com/docs/methods/engagements/create_engagement)

```auto
"metadata" : {
 "durationMilliseconds" : 38000
}

```

This should create a property on the call that sets how long the call went on for in milliseconds. These engagements can then be used within reports.

---

<div class="post-metadata">

**Author:** ![lisa\_nikolau](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lisa_nikolau/32/89259_2.png) [@lisa\_nikolau](https://community.hubspot.com/u/lisa_nikolau)\
**Post date:** [December 13, 2018, 3:10pm UTC](https://community.hubspot.com/t/metadata-for-recording-call-duration-via-api/11547/3 "2018-12-13T15:10:56Z")

</div>

[@Connor\_Barley](https://community.hubspot.com/u/connor_barley) thank you for the confirmation!
