Zoom Team Chat API retention settings clarification

I need to understand which Zoom Team Chat retention setting determines how far back archived chat data can be retrieved through the API.

Under Account Management → Account Settings → Zoom Chat, I can see the following retention settings:

Under Visibility, the Archiving History Retention Period is configured. The Storage Retention Period is also configured.

We are retrieving Zoom Team Chat messages using the following API endpoint: GET /v2/report/chat/sessions/

Could you please clarify which of these settings determines the availability of messages through this API?

Specifically:

Is API data availability based on the Archiving History Retention Period?

Is it based on the Storage Retention Period? Or is there another retention/configuration setting that controls how far back the API can retrieve messages?

Additionally, if the Archiving History Retention Period and Storage Retention Period are configured differently, how does this affect API retrieval?

For example, if a message is no longer available based on the Storage Retention Period but is still within the Archiving History Retention Period, will the API still be able to retrieve that message?