Skip to main content

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:

ParamTypeDescription
account_codestringFilter by account
statusstringFilter by status (match/review/investigate)
limitintMax 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:

ParamTypeDescription
entity_namestringEntity name
start_datedateStart of range
end_datedateEnd of range

GET /api/returns/cash-transactions

Cash flow transactions.

Parameters:

ParamTypeDescription
entity_namestringEntity name
limitintMax results

Storage

POST /api/storage/upload

Upload a file.

Headers:

Content-Type: multipart/form-data
x-api-key: sk_...

Form Fields:

FieldRequiredDescription
fileYesThe file to upload
org_idYesOrganization UUID
file_typeNopnl 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:

ParamTypeDescription
org_iduuidOrganization ID
statusstringFilter 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.