---
title: 'Get Upload History'
api: 'GET /api/upload-history'
description: 'Retrieves history of CSV file uploads with processing statistics'
---
## Endpoint
```
GET /api/upload-history
```
## Authentication
Requires OAuth 2.0 authentication via session cookies.
## Parameters
None
## Response
Indicates if the request was successful
List of upload history objects
Name of transaction history CSV file
Name of realized gains CSV file
Upload timestamp (ISO 8601 format)
Size of transaction file in bytes
Size of gains file in bytes
Upload status (e.g., "success", "failed")
Email of user who uploaded
Account ID
Brokerage account number
Number of transactions processed
Number of months updated
## Example
```bash cURL
curl -X GET https://performance.miningwood.com/api/upload-history \
-H "Cookie: session=your_session_cookie"
```
```javascript JavaScript
const response = await fetch('/api/upload-history');
const data = await response.json();
if (data.success) {
data.history.forEach(upload => {
console.log(`${upload.timestamp}: ${upload.transactions_processed} transactions`);
});
}
```
```python Python
import requests
response = requests.get('https://performance.miningwood.com/api/upload-history')
data = response.json()
if data['success']:
for upload in data['history']:
print(f"{upload['timestamp']}: {upload['status']}")
```
## Response Example
```json
{
"success": true,
"history": [
{
"transaction_filename": "transactions.csv",
"gains_filename": "realized_gains.csv",
"timestamp": "2024-08-15T14:30:00",
"transaction_file_size": 524288,
"gains_file_size": 262144,
"status": "success",
"user_email": "user@example.com",
"account_id": 1,
"brokerage_account": "12345678",
"transactions_processed": 279,
"months_updated": 3
}
]
}
```
## Use Cases
- Track upload activity and processing history
- Audit data imports
- Verify successful uploads
- Monitor file sizes and processing metrics
- Troubleshoot import issues
## Related Endpoints
Upload new transaction and gains files
Learn about CSV upload process