Get Upload History
curl --request GET \
--url https://api.example.com/api/upload-historyimport requests
url = "https://api.example.com/api/upload-history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/upload-history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/upload-history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/upload-history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/upload-history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/upload-history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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
}
]
}Data Import
Get Upload History
Retrieves history of CSV file uploads with processing statistics
GET
/
api
/
upload-history
Get Upload History
curl --request GET \
--url https://api.example.com/api/upload-historyimport requests
url = "https://api.example.com/api/upload-history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/upload-history', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/api/upload-history",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/upload-history"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/upload-history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/upload-history")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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
NoneResponse
boolean
required
Indicates if the request was successful
array
required
List of upload history objects
Show Upload History Object
Show Upload History Object
string
Name of transaction history CSV file
string
Name of realized gains CSV file
string
Upload timestamp (ISO 8601 format)
number
Size of transaction file in bytes
number
Size of gains file in bytes
string
Upload status (e.g., “success”, “failed”)
string
Email of user who uploaded
number
Account ID
string
Brokerage account number
number
Number of transactions processed
number
Number of months updated
Example
curl -X GET https://performance.miningwood.com/api/upload-history \
-H "Cookie: session=your_session_cookie"
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`);
});
}
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
{
"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 CSV
Upload new transaction and gains files
CSV Upload Guide
Learn about CSV upload process
Was this page helpful?
⌘I