Jan 31, 2023 8:36 AM - edited Jan 31, 2023 8:37 AM
I have a problem, with the usage of properties API https://developers.hubspot.com/docs/api/crm/properties
When I use it to get some specific properties, like: hs_call_disposition of object calls, the API returns me the property WITHOUT the options.
Solved! Go to Solution.
Jan 31, 2023 4:02 PM
Hey, @jomasjoao 👋 I found this to be confusing as well. To get the values for the call disposition property, you have two options:
Here's a quick example using Postman and hs_call_disposition:
GET https://api.hubapi.com/calling/v1/dispositions
[
{
"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
},
{
"id": "d6ec8b1c-88c9-49c6-b299-bd6ec1594eaf",
"label": "Refused to work with cats",
"deleted": false
}
]
To be honest, there isn't a document that explains why we have to use a separate endpoint. I do not have any additional details. And I wanted you to know what is available and where to find the info you are after.
Have fun building!
— Jaycee
Feb 1, 2023 10:55 AM
Can I use the PHP SDK, to access this legacies endpoints? I didn't find anything about it.
Jan 31, 2023 4:02 PM
Hey, @jomasjoao 👋 I found this to be confusing as well. To get the values for the call disposition property, you have two options:
Here's a quick example using Postman and hs_call_disposition:
GET https://api.hubapi.com/calling/v1/dispositions
[
{
"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
},
{
"id": "d6ec8b1c-88c9-49c6-b299-bd6ec1594eaf",
"label": "Refused to work with cats",
"deleted": false
}
]
To be honest, there isn't a document that explains why we have to use a separate endpoint. I do not have any additional details. And I wanted you to know what is available and where to find the info you are after.
Have fun building!
— Jaycee
Jan 31, 2023 4:19 PM - edited Jan 31, 2023 4:19 PM
Very strange indeed, but i also need another property from DEALS. How do I get that?
Jan 31, 2023 4:46 PM
Hey, @jomasjoao 👋 There's a separate endpoint for that too 😊 Get all pipelines for a specified object type
Request
GET https://api.hubapi.com/crm-pipelines/v1/pipelines/deals
Best,
Jaycee
Feb 9, 2023 2:01 PM
Hey, i also need to find the options for dealstage for Deal, the v3 api has the same problem, it doesn't return the options. :(. Can you help with that?