APIs & Integrations

jpaull
Member

Engagement Query Returns No Records

SOLVE

I'm newly trying to create a simple integration.  I have it where it successfully pulls records from the sample database for contacts.  However, when I do it for Engagements the resultset is 0 even though I have verified that there are indeed records.

 

The query looks as follows:

https://api.hubapi.com/engagements/v1/engagements/paged?hapikey=<apikey>&limit=2

 

but it returns:

{"results":[],"hasMore":false,"offset":0}

Any direction is appreciated.

0 Upvotes
1 Accepted solution
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Engagement Query Returns No Records

SOLVE

Hi @jpaull,

 

I hope all is well with you 😃

 

Are you trying to pull the records from your dev test portal 6286184?

 

If that's the case, when looking at the contacts in the portal, I'm only able to see two sample contacts. The sample contact doesn't get return when calling the Engagement APIs. I tried creating a sample contact "Wendy Testing" with a sample "Test" note and when I get all the engagements from the Get all engagements endpoint, I'm able to see the note engagement. 

 

Hope this helps to clarify!

View solution in original post

2 Replies 2
IsaacTakushi
HubSpot Employee
HubSpot Employee

Engagement Query Returns No Records

SOLVE

I've added a note to the Get all engagements endpoint documentation stating that sample contact engagements will not be returned.

Isaac Takushi

Associate Certification Manager
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Engagement Query Returns No Records

SOLVE

Hi @jpaull,

 

I hope all is well with you 😃

 

Are you trying to pull the records from your dev test portal 6286184?

 

If that's the case, when looking at the contacts in the portal, I'm only able to see two sample contacts. The sample contact doesn't get return when calling the Engagement APIs. I tried creating a sample contact "Wendy Testing" with a sample "Test" note and when I get all the engagements from the Get all engagements endpoint, I'm able to see the note engagement. 

 

Hope this helps to clarify!