# retrieve pipeline info

**URL:** <https://community.hubspot.com/t/retrieve-pipeline-info/53332>\
**Category:** APIs & Integrations\
**Tags:** object\
**Created:** [March 16, 2022, 9:47pm UTC](https://community.hubspot.com/t/retrieve-pipeline-info/53332 "2022-03-16T21:47:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MSpot](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@MSpot](https://community.hubspot.com/u/MSpot)\
**Post date:** [March 16, 2022, 9:47pm UTC](https://community.hubspot.com/t/retrieve-pipeline-info/53332/1 "2022-03-16T21:47:38Z")

</div>

based on documentation:

> **[Accounts Dashboard | HubSpot](https://app.hubspot.com/myaccounts?next=developerdocs&redirect=%2Fapi-reference%2Fcrm-pipelines-v3%2Fguide)**

there is:

…These endpoints provide access to read and modify pipelines in HubSpot. Pipelines support deals and tickets object types.

But when I try to fetch data from `deals`, it’s returning 404 to me.

 ![MSpot_0-1647467143874.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/77cc21aee061010edfbfb6d7b2f185c6038bc22e.png)

---

<div class="post-metadata">

**Author:** ![mangelet](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mangelet/32/83031_2.png) [@mangelet](https://community.hubspot.com/u/mangelet)\
**Post date:** [March 17, 2022, 9:39am UTC](https://community.hubspot.com/t/retrieve-pipeline-info/53332/2 "2022-03-17T09:39:53Z")

</div>

@MSpot

Consider using the **Deals API** to list deals.

curl --request GET \  
--url ‘[https://api.hubapi.com/crm/v3/objects/deals?limit=10&archived=false&hapikey=YOUR\_HUBSPOT\_API\_KEY](https://api.hubapi.com/crm/v3/objects/deals?limit=10&archived=false&hapikey=YOUR_HUBSPOT_API_KEY)’

You would only use the **Pipelines API** to read and modify pipelines.

---

<div class="post-metadata">

**Author:** ![MSpot](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@MSpot](https://community.hubspot.com/u/MSpot)\
**Post date:** [March 17, 2022, 12:00pm UTC](https://community.hubspot.com/t/retrieve-pipeline-info/53332/3 "2022-03-17T12:00:40Z")

</div>

@mangelet thank you for your response!

actually my question was not very clear, sorry.

what I ment was to get pipeline stage label.

I could get the dealstage from Deals API. But this is only the id and I want the label of it.

by this endpoint, I could get the dealstage and pipeline:

`{{baseUrl}}/crm/v3/objects/deals/:dealId?hapikey={{hapikey}}&properties=dealstage&properties=pipeline`

but then, I could not get the name of this `dealstage`, only the id value of it.

the name is what I can see in the hubspot portal: (i.e. 01. NDA, 02. TRIAGEM INICIAL, etc.)

 ![MSpot_0-1647518240682.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/b/6bf655462d03e25d57bdccb5bc8e1f4e186e29f7.png)

or in the settings

 ![MSpot_1-1647518311076.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/1/5/1504983c379659d2cf6145b687bd4998805918b8.png)

am I doing something wrong to the pipeline API?

---

<div class="post-metadata">

**Author:** ![MSpot](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@MSpot](https://community.hubspot.com/u/MSpot)\
**Post date:** [March 17, 2022, 2:42pm UTC](https://community.hubspot.com/t/retrieve-pipeline-info/53332/4 "2022-03-17T14:42:37Z")

</div>

I tried to figure out a little further and solved my problem.

the tests I’m doing came from postman file available from the Hubspot documentation.

there is a misalignment between variable ‘baseUrl’ and the endpoint.

the baseUrl has the value: ‘[https://api.hubapi.com/](https://api.hubapi.com/)’

and the url is: {{baseUrl}}/crm/v3/pipelines/:objectType?hapikey={{hapikey}}&archived=false

hence, the decoded url will result in: ’

[https://api.hubapi.com//crm/v3/pipelines/deals?hapikey=XXX&archived=false](https://api.hubapi.com//crm/v3/pipelines/deals?hapikey=XXX&archived=false)’  
with double slash ‘//’ between ‘…com’ and ‘crm/v3…’  
I just changed the baseUrl in postman to get the right endpoint by removing the final slash.

‘[https://api.hubapi.com](https://api.hubapi.com)’

 ![fix_hubspot_pipeline_postman.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/5/2/52943e89990f4b0ccc8526864a295a0aacc00b1e.png)
