APIs & Integrations

Shivamsinha
Member

Issue with engagements/get-recent-engagements , since parameter not working

SOLVE

Hi all,

we had been using engagements/get-recent-engagements enpoint with since parameter for last 1 month.

However since midnight yesterday since parameter is not taken into account and all the records from last 30 days are returned.

Has anyone else noticed similar behaviour ??

0 Upvotes
1 Accepted solution
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Issue with engagements/get-recent-engagements , since parameter not working

SOLVE

Hi, @prabhapatrick.

 

You're describing expected behavior which has not changed in the last few days.

 

Per the Get recent engagements endpoint documenation:

 

This endpoint will only return records created in the last 30 days, or the 10k most recently created records.

 

That endpoint will only return up to 10,000 engagements. To get all of them, please use the Get all engagements endpoint.

Isaac Takushi

Associate Certification Manager

View solution in original post

0 Upvotes
8 Replies 8
IsaacTakushi
HubSpot Employee
HubSpot Employee

Issue with engagements/get-recent-engagements , since parameter not working

SOLVE

Hi, @Shivamsinha.

 

To confirm, is your Hub ID 2184782?

 

If so, could you share the full request URL you are using for this endpoint?, including the since parameter and value.

 

The since parameter only accepts millisecond timestamps rather than a rolling date range, so I want to see exactly what you mean by "since parameter for last 1 month".

Isaac Takushi

Associate Certification Manager
0 Upvotes
prabhapatrick
Member

Issue with engagements/get-recent-engagements , since parameter not working

SOLVE

I also noticed a change in the https://developers.hubspot.com/docs/methods/engagements/get-recent-engagements endpoint since Fenraury 1

 

I use it with offset and hasMore. It was working fine for a long time

 

Since Feb1 I get an error after 10,000 records for the last fetch

 

{"status":"error","message":"Cannot fetch more than 10000 total records for this endpoint","correlationId":"a7ce6da4-fb80-49e7-ade4-4693aebefa10","requestId":"06ba7cb053b09bbb145440cfb1f38311"}

 

 

 

But I have fixed it by breaking when the offset is 10,000

0 Upvotes
IsaacTakushi
Solution
HubSpot Employee
HubSpot Employee

Issue with engagements/get-recent-engagements , since parameter not working

SOLVE

Hi, @prabhapatrick.

 

You're describing expected behavior which has not changed in the last few days.

 

Per the Get recent engagements endpoint documenation:

 

This endpoint will only return records created in the last 30 days, or the 10k most recently created records.

 

That endpoint will only return up to 10,000 engagements. To get all of them, please use the Get all engagements endpoint.

Isaac Takushi

Associate Certification Manager
0 Upvotes
prabhapatrick
Member

Issue with engagements/get-recent-engagements , since parameter not working

SOLVE

I think only now the recent engagements count in the last 30 days got over 10,000 may be

 

0 Upvotes
IsaacTakushi
HubSpot Employee
HubSpot Employee

Issue with engagements/get-recent-engagements , since parameter not working

SOLVE

Yes, that's what I think happened as well, @prabhapatrick!

Isaac Takushi

Associate Certification Manager
0 Upvotes
prabhapatrick
Member

Issue with engagements/get-recent-engagements , since parameter not working

SOLVE

Hi,

 

Was there any change made witht the Hubspot recent engagements endpoint?

 

From July 17 to August 14 we were getting Cannot fetch more than 10000 total records for this endpoint for this endpoint and we are no longer getting the error. We are curious to know how the issue got resolved automatically

0 Upvotes
IsaacTakushi
HubSpot Employee
HubSpot Employee

Issue with engagements/get-recent-engagements , since parameter not working

SOLVE

Hi, @prabhapatrick.

 

I am not aware of changes to the Get recent engagements endpoint.

 

Are you saying you can now get more than 10,000 engagements?

Isaac Takushi

Associate Certification Manager
0 Upvotes
reddishgreen
Member

Issue with engagements/get-recent-engagements , since parameter not working

SOLVE

The documentation incorrectly has a capital S for since (lowercase is requierd), which if used is ignored by the endpoint - ideally the endpoint should reject incorrect parameters and the documentation should be fixed. Not sure if this is the issue you were having.

reddishgreen_0-1678787575760.png

 

0 Upvotes