There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API Keys are being deprecated and are no longer supported. Continued use of HubSpot API Keys is a security risk to your account and data. Your API Keys could be deactivated at any time after Nov. 30th, and we recommend that you migrate to Private Apps as soon as possible so you do not lose business-critical functionality.

Get Recently Modified Deals

Last updated September 15, 2020

GET /deals/v1/deal/recent/modified

Method Details

HTTP Methods:

GET

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Products:

CRM

Required Scope:

crm.objects.deals.read

Get recently modified deals in an account sorted by their last modified date, starting with the most recently modified deals. Use the offset parameter described below to page backwards through the deals.

Note: This endpoint will only return records modified in the last 30 days, or the 10k most recently modified records.  If you need to get all of your deals, please use this endpoint.

Required Parameters How to use Description
OAuth Access Token or API Key Authorization: Bearer {token} header
or hapikey={key} query parameter.
Used to authenticate the request. Please see this page for more details about authentication.

Optional Parameters How to use Description
Count &count=x This parameter lets you specify the amount of deals to return in your API call.  The default for this parameter (if it isn't specified) is 20 deals. The maximum amount of deals you can have returned to you via this parameter is 100.
Offset &offset=x Used to page backwards through recent deals. Use the value of the offset field returned in the previous response to get the next set of deal records.
Since &since=x Only return deals modified after and including timestamp x. x must be a UNIX formatted timestamp in milliseconds.
Include property versions &includePropertyVersions=true By default, you will only get data for the most recent version of a property in the "versions" data.  If you include this parameter, you will get data for all previous versions.