There's a new version of the HubSpot API

As of November 30, 2022, HubSpot API keys are no longer a supported authentication method for accessing HubSpot APIs. Instead, you should use a private app access token or OAuth to authenticate API calls. Learn more about this change and how to migrate an API key integration to use a private app instead.

Get Recently Created Deals

Last updated May 15, 2023

GET /deals/v1/deal/recent/created

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 all deals in a account sorted by their created date, with the most recently created deals first. Use the offset parameter returned in a response to get the next set of deals.

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

Required Parameters How to use Description
OAuth access token or private app access token Authorization: Bearer {token} header 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 max count per paginated response is 100.
Offset &offset=x Pages back through recent deals.
Since &since=x Only return deals created after timestamp x
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.