API Endpoints
Base URL: https://sable-data.jettaintelligence.com
Health & Status
GET /health
Basic liveness check.
curl https://sable-data.jettaintelligence.com/health
Response:
{"status": "healthy"}
GET /health?detailed=true
Detailed health including queue info.
GET /status
Worker and scheduler status.
Returns
GET /api/returns/comparison
Compare BTIG vs Sable returns.
Parameters:
| Param | Type | Description |
|---|---|---|
account_code | string | Filter by account |
status | string | Filter by status (match/review/investigate) |
limit | int | Max results (default 50) |
Example:
curl "https://sable-data.jettaintelligence.com/api/returns/comparison?account_code=AV7K&limit=10" \
-H "x-api-key: $API_KEY"
GET /api/returns/dietz-daily
Daily Modified Dietz returns.
Parameters:
| Param | Type | Description |
|---|---|---|
entity_name | string | Entity name |
start_date | date | Start of range |
end_date | date | End of range |
GET /api/returns/cash-transactions
Cash flow transactions.
Parameters:
| Param | Type | Description |
|---|---|---|
entity_name | string | Entity name |
limit | int | Max results |
Storage
POST /api/storage/upload
Upload a file.
Headers:
Content-Type: multipart/form-data
x-api-key: sk_...
Form Fields:
| Field | Required | Description |
|---|---|---|
file | Yes | The file to upload |
org_id | Yes | Organization UUID |
file_type | No | pnl or performance |
Example:
curl -X POST "https://sable-data.jettaintelligence.com/api/storage/upload" \
-H "x-api-key: $API_KEY" \
-F "file=@data.csv" \
-F "org_id=00000000-0000-0000-0000-000000000001"
GET /api/storage/files
List uploaded files.
Parameters:
| Param | Type | Description |
|---|---|---|
org_id | uuid | Organization ID |
status | string | Filter by status |
Benchmark
GET /api/benchmark
Test query performance.
Response includes:
- Query execution time
- Performance rating (fast/good/slow/critical)
Test Scheduler
GET /test-scheduler
Scheduler status and countdown to next run.
GET /test-scheduler/history
Recent test run history.
POST /test-scheduler/trigger
Manually trigger test suite.