Documentation & 5-Minute Quickstart
Architectural guides, integration playbooks, and complete HTTP wire specifications for ingesting telemetry, querying hardware-downsampled metrics, and embedding interactive charts into customer portals.
Ingest Stripe, GitHub, Shopify, and Clerk webhooks with native HMAC verification and automatic deduplication.
1-line HTML and SVG chart embeds with scoped read-only tokens and fair-use $0 egress.
Protect PostgreSQL from connection pool exhaustion and eliminate intermediate Redis caches.
Complete endpoint specification, RFC 7807 error catalog, and interactive request simulator.
5-Minute Quickstart: Ingest, Query, and Embed
Follow these 4 steps to push your first metric, run hardware-accelerated downsampled queries, and embed a live customer-facing chart widget into your frontend—without managing schemas, binary drivers, or connection poolers.
Obtain Your Database Credentials & Verify Node
Every TimesinkDB database operates with its own dedicated storage engine, isolated NVMe storage partition, and isolated parallel query workers. To interact with the API, you need three values:
fra)
curl -i https://fra1.timesinkdb.com/ping
# HTTP/2 200
# pong
Push Your First Metric Point
Send any JSON object via POST /databases/{databaseId}/series/{seriesKey}. Numeric properties automatically flatten into 16-byte columnar series (api.checkout.requests, api.checkout.error_rate, api.checkout.latency_ms), or pass a scalar number (-d '1420') to write directly to the base key. Append ?mode=blob (or ?mode=both) to preserve raw JSON events:
curl -X POST https://fra1.timesinkdb.com/databases/42/series/api.checkout \
-H "Authorization: Bearer sec_live_..." \
-H "Content-Type: application/json" \
-d '{"requests": 1420, "error_rate": 0.02, "latency_ms": 48.5}'
?requireCommit=true on Pro+ for synchronous 200 OK disk commit.
Query Downsampled Metrics on the Fly
Query aggregated statistics across any time range with zero pre-computed rollups. Hardware-accelerated SIMD downsampling computes averages, maximums, counts, and percentiles (p50, p95, p99) across raw points in single-digit milliseconds:
curl -X POST https://fra1.timesinkdb.com/databases/42/query \
-H "Authorization: Bearer sec_live_..." \
-H "Content-Type: application/json" \
-d '{
"range": { "from": "-24h", "to": "now" },
"interval": "15m",
"queries": [
{ "id": "p99_perf", "seriesKey": "api.checkout.latency_ms", "fn": "p99" }
]
}'
{"interval":"15m","timestamps":[1788623100000,1788624000000,1788624900000],"results":{"p99_perf":{"values":[44.2,46.8,48.5]}}}
Embed an Interactive Customer Chart
Create a database-scoped read-only token (tok_ro_...) in the web console, then embed a server-rendered interactive chart into your frontend portal using standard HTML. Zero frontend charting libraries required and $0 in egress fees:
<iframe
src="https://fra1.timesinkdb.com/databases/42/series/api.checkout.requests.html?from=-24h&interval=15m&theme=dark&token=tok_ro_..."
title="Checkout Requests"
loading="lazy"
class="w-full h-48 rounded-xl border border-neutral-800">
</iframe>
Where to Go Next
Capture Stripe MRR, GitHub CI, and Shopify orders directly.
Visual Customer Embeds →Learn how to whitelabel charts and drop iframe widgets into React and Retool.
Serverless Offloading →Protect PostgreSQL and MySQL from serverless connection pool exhaustion.
REST API Reference →Read canonical endpoint schemas, regional base URLs, and RFC 7807 error codes.
Interactive API Simulator →Simulate HTTP ingest and downsampling queries directly in your browser.
Pricing & Spend Caps →Explore Free Sandbox, Starter, Pro, Scale, and Custom capacity tiers.
Ready to build on TimesinkDB? Reserve your 1 GB Free Sandbox.
Includes 1,000 active series, $0.00 write API fees, and unlimited fair-use chart embeds with no credit card required.