Skip to content

API Reference

Base URL: https://api.coda-tech.net
All routes live under /api/v1


Conventions

TopicDetail
MoneyInteger cents (USD) - price_minor: 178015 = $1,780.15
Content-TypeAll responses are application/json
AuthX-API-Key or Authorization: Bearer header required

Endpoints

MethodPathDescription
GET/api/v1/healthLiveness check (no auth)
GET/api/v1/developer/pricing/{product_key}TWAP oracle bundle by catalog key
GET/api/v1/developer/pricecharting/{pricecharting_id}TWAP oracle bundle by PriceCharting ID

Health check

http
GET /api/v1/health

No authentication required. Returns 200 when the service is up.

json
{ "status": "ok" }

Response shape

All pricing endpoints return an OracleCardPricingResponse:

FieldTypeDescription
idstring | nullPriceCharting ID (only on /pricecharting/ route)
product_keystringCoda catalog key
window_hoursintTWAP lookback window used
outlier_stddevsintOutlier filter threshold
ungradedobjectNM-equivalent slot
gradedobject"PSA" | "BGS" | "CGC" | "SGC" -> grade "7"..."10" -> slot
metadataobjectProduct name, set, image URL, era, etc.

Slot object

FieldDescription
price_minorTWAP in cents, or null if error
currencyAlways "USD"
condition_keye.g. "psa10", "ungraded"
methodologyAlgorithm key
window_start / window_endISO-8601 UTC timestamps
included_pointsObservations used
excluded_pointsOutliers removed
errornull when priced; "no_observations" when empty
metaDiagnostic object

Metadata object

FieldDescription
product_nameCard name
subtitleSet number, nickname
set_nameFull set name
image_urlProduct image URL
product_typee.g. "single_card"
era"modern" or "vintage"
release_dateISO date or null

Error codes

HTTPMeaning
400Unknown product_key, invalid parameter
401Missing or invalid API key
403Valid key, method not allowed
429Rate limit exceeded
500Oracle computation failure
502Upstream data source non-200
503Database unreachable
json
{ "detail": "Human-readable error message" }

Coda - price settlement infrastructure.