APIs & Integrations

BCaruso
Member

Get list api not working

Hello, i saw on the v3 docs that lists API is under development, that's why i decided to go v1 API and when i make a GET request to https://api.hubapi.com/contacts/v1/lists?count=2&offset=0 that is the response:

 

{
"offset": 0,
"lists": [],
"has-more": false
}

 

but I have 2 lists created...

BCaruso_0-1640275496570.png

Also when calling the list id directly (obtained from HubSpot URL)

Screen Shot 2021-12-23 at 13.05.29.png

Making a GET request to: https://api.hubapi.com/contacts/v1/lists/13

The response is:

 

{
	"status": "error",
	"message": "Couldn't find a List with the given id '13'.",
	"correlationId": "7bd618c2-2816-42de-b1e8-dfce2dc33b8f",
	"errors": [
		{
			"message": "This list 13 does not exist."
		}
	],
	"category": "OBJECT_NOT_FOUND"
}

 

 

Any way or alternative to fix it? I need to use Lists API

0 Upvotes
1 Reply 1
Teun
Recognized Expert | Diamond Partner
Recognized Expert | Diamond Partner

Get list api not working

Hi @BCaruso ,

 

I've done some testing, but the API seems to work just fine.
Are you using the correct API key for the portal where the lists exist? 



Learn more about HubSpot by following me on LinkedIn or YouTube

Did my answer solve your issue? Help the community by marking it as the solution.


0 Upvotes