You can pull archived cost through the API with the following dimension archive_month=yyyy-mm.
For example, the below call would pull the January archived data set:
https://chapi.cloudhealthtech.com/olap_reports/cost/history?api_key=1234&archive_month=2023-01
This is equivalent to pulling the below in cost history: