Issue with deleted deals post 90 days

When I delete a deal, I’m able to get the record in the GET API with archived=true (https://api.hubapi.com/crm/v3/objects/deals?archived=true). `archived` is set to true and `archived_at` has a timestamp value in the record in the response.

After 90 days, the deal gets permanently purged and will no longer be available in the above API. But I’m able to retrieve it using GET API with id (https://api.hubapi.com/crm/v3/objects/deals/<id>). `archived` is set to false and there is no `archived_at` for the record in the response.

Is this expected behavior? If yes, then how do I differentiate between a permanently deleted record and non deleted one, if `archived` value for both of them is the same?

Hi @sumantpatil I’m not sure if this will help, there was a change made to how deleted/archived is handled for consistency - here’s the developer documentation with more details.

Hi @sumantpatil

Check the archived_at Field: Normally, when a deal is archived, the archived_at field is present with a timestamp. If this field is missing and the deal is retrievable with archived=false, HubSpot is treating it as an active deal.
This behavior doesn’t align with HubSpot’s documentation or expected API functionality. The deal should be permanently deleted after 90 days, making it unretrievable. HubSpot Support can provide more insights into why this is happening and confirm if this is a bug or an intentional feature.

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!