DEAL API(basic List) property parameters

I am trying to fetch the provided parameter values through API(curl) , thuogh the value exists(I can find in front end) , the API does not return the value, I am just wondering if the passed parameters syntactically correct , the below page is refered for property parameters.

for e.g I am passing (Deal owner or Deal_owner) as parameter, neither gives me output

HubSpot’s default deal properties

https://knowledge.hubspot.com/deals/hubspots-default-deal-properties?_ga=2.23392890.1578220888.1656258418-1061162956.1655403127&_gac=1.258201976.1655458443.Cj0KCQjwzLCVBhD3ARIsAPKYTcSx9RqIDFWwJfd7mdrJb1dKFFp5VuH9OvDyLLDOBMp0W6elXWVP2MMaAk7aEALw_wcB

---------------------------------- curl

curl --request GET \
--url ‘https://api.hubapi.com/crm/v3/objects/deals?limit=10&properties=Deal_owner&archived=false&hapikey=YOUR_HUBSPOT_API_KEY

Hey, @RBiswal :waving_hand: Can you try making this request using the internal value for the property? For example, in Deal properties, Deal Owner is the label and hubspot_owner_id is the internal value.

I ran a quick test:

  • Endpoint GET/crm/v3/objects/deals/{dealId}

  • My request

    curl --request GET \
     --url 'https://api.hubapi.com/crm/v3/objects/deals/9344774699?properties=hubspot_owner_id&archived=false' \
     --header 'authorization: Bearer NOPE'​
    
  • The Response

    HTTP 200
    
    {
     "id": "9344774699",
     "properties": {
     "createdate": "2022-06-29T18:05:02.843Z",
     "hs_lastmodifieddate": "2022-06-29T18:05:04.529Z",
     "hs_object_id": "9344774699",
     "hubspot_owner_id": "198670650"
     },
     "createdAt": "2022-06-29T18:05:02.843Z",
     "updatedAt": "2022-06-29T18:05:04.529Z",
     "archived": false
    }​
    

I hope that helps get you moving forward!

Best,

Jaycee

Thanks Jaycee Lewis,

This works , I got to know about the lebel and the internal_value, that helps !!

hubspot>>settings>>property settings