Get Call Status

when calling API , I get call status always as Completed , despite it might be BUSY or any other status , Does anyone knows a solution for this?

Hi @Ade ,

The status you are talking about Completed, Busye or other are actually Call Outcomes in crm and in API’s they are considered as dispositions . To get them you can use “hs_call_disposition” property.

Curl for that is :

curl --request GET \
 --url 'https://api.hubapi.com/crm/v3/objects/calls/64722592571?properties=hs_call_disposition&archived=false' \
 --header 'authorization: Bearer YOUR_ACCESS_TOKEN'

and response will be :

{
 "id": "64722592571",
 "properties": {
 "hs_call_disposition": "f240bbac-87c9-4f6e-bf70-924b57d47db7",
 "hs_createdate": "2024-11-16T12:51:03.592Z",
 "hs_lastmodifieddate": "2024-11-16T12:51:09.917Z",
 "hs_object_id": "64722592571"
 },
 "createdAt": "2024-11-16T12:51:03.592Z",
 "updatedAt": "2024-11-16T12:51:09.917Z",
 "archived": false
}

you can get dispositions label using this api :
https://api.hubapi.com/calling/v1/dispositions
response will be :

[
 {
 "id": "9d9162e7-6cf3-4944-bf63-4dff82258764",
 "label": "Busy",
 "deleted": false
 },
 {
 "id": "f240bbac-87c9-4f6e-bf70-924b57d47db7",
 "label": "Connected",
 "deleted": false
 },
 {
 "id": "a4c4c377-d246-4b32-a13b-75a56a4cd0ff",
 "label": "Left live message",
 "deleted": false
 },
 {
 "id": "b2cf5968-551e-4856-9783-52b3da59a7d0",
 "label": "Left voicemail",
 "deleted": false
 },
 {
 "id": "73a0d17f-1163-4015-bdd5-ec830791da20",
 "label": "No answer",
 "deleted": false
 },
 {
 "id": "17b47fee-58de-441e-a44c-c6300d46f273",
 "label": "Wrong number",
 "deleted": false
 }
]

Hope that answers your question .If yes mark this answer as solution to help others.
Thanks

thanks a lot you saved my day