APIs & Integrations

jpaull
Membre

Engagement Query Returns No Records

Résolue

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 Votes
1 Solution acceptée
WendyGoh
Solution
HubSpot Employee
HubSpot Employee

Engagement Query Returns No Records

Résolue

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!

Voir la solution dans l'envoi d'origine

2 Réponses
IsaacTakushi
HubSpot Employee
HubSpot Employee

Engagement Query Returns No Records

Résolue

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

Résolue

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!