Skip to main content
GET
/
api
/
upload-history
Get Upload History
curl --request GET \
  --url https://api.example.com/api/upload-history
{
  "success": true,
  "history": [
    {
      "transaction_filename": "<string>",
      "gains_filename": "<string>",
      "timestamp": "<string>",
      "transaction_file_size": 123,
      "gains_file_size": 123,
      "status": "<string>",
      "user_email": "<string>",
      "account_id": 123,
      "brokerage_account": "<string>",
      "transactions_processed": 123,
      "months_updated": 123
    }
  ]
}

Endpoint

GET /api/upload-history

Authentication

Requires OAuth 2.0 authentication via session cookies.

Parameters

None

Response

success
boolean
required
Indicates if the request was successful
history
array
required
List of upload history objects

Example

curl -X GET https://performance.miningwood.com/api/upload-history \
  -H "Cookie: session=your_session_cookie"

Response Example

{
  "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": "[email protected]",
      "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