On This Page — 5-Minute Quickstart

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.

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.

1

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:

Database ID 42 Unique numeric database identifier
API Secret Key sec_live_9a7f2... Bearer token with write/read scopes
Assigned Host Endpoint fra1.timesinkdb.com Assigned host node in your location (fra)
Verify Host Endpoint Liveness
curl -i https://fra1.timesinkdb.com/ping
# HTTP/2 200 
# pong
2

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}'
Response (202 Accepted): 48 bytes buffered in memory in <1ms and immediately queryable (background NVMe flush, ≤60s RPO). Pass ?requireCommit=true on Pro+ for synchronous 200 OK disk commit.
3

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" }
    ]
  }'
Response (200 OK • 1.4ms): {"interval":"15m","timestamps":[1788623100000,1788624000000,1788624900000],"results":{"p99_perf":{"values":[44.2,46.8,48.5]}}}
4

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

Launching October 29, 2026

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.