On This Page — REST API Reference

TimesinkDB REST API Reference

The TimesinkDB REST API operates strictly over stateless HTTPS and accepts schemaless JSON payloads with optional native request decompression. All public data plane routes are database-scoped under /databases/{databaseId}/* with zero Data Definition Language (DDL), connection poolers, or binary drivers required.

// Sub-Millisecond In-Memory Ingest

Writes append to in-memory columnar pages in sub-millisecond time. NVMe flushes run every 30s (≤60s RPO, or synchronously on Pro+ with ?requireCommit=true).

// Dynamic Deduplication

Replayed webhooks and cellular retries resolve at query time using monotonic Last-Write-Wins. Zero duplicate rows or index bloat.

// Unmetered Visual Embeds

Self-contained HTML widgets and SVG vector charts render server-side for $0.00 egress under fair use. Ideal for customer SaaS portals.

// Supported Protocols & Transport Standards HTTPS Transport & Protocol Specification
Protocol Layer Supported Standards Edge & Host Architecture Behavior & Compliance Notes
Network Transport HTTPS (HTTP/3, HTTP/2, HTTP/1.1) Cloudflare Anycast Edge + TLS 1.3 Strict HTTPS enforced globally. Plaintext HTTP (Port 80) permanently redirects (308) or drops. HTTP/3 (QUIC over UDP) provides 0-RTT handshakes, head-of-line blocking elimination, and cellular connection migration for IoT gateways.
Encryption & TLS TLS 1.3 (Primary), TLS 1.2 Modern AEAD ciphers (ChaCha20, AES-GCM) Legacy TLS 1.0/1.1 and unencrypted streams are blocked. Machine-to-machine mTLS endpoints are routed via dedicated regional subdomains (*-cert.timesinkdb.com) so TLS 1.3 client certificate authentication operates cleanly without affecting browser-based API key or embed requests.
Request Decompression Content-Encoding: gzip, br, zstd, deflate Native Streaming Request Decompression Native high-throughput streaming decompression. Ingestion clients can compress batch JSON payloads by 70–85% using gzip, zstd, or br to reduce cellular bandwidth and upload latency with zero server configuration.
Response Compression Accept-Encoding: br, gzip Cloudflare Edge + Regional Origin Outbound analytical JSON and CSV query responses are dynamically Brotli- or Gzip-compressed on the wire, minimizing transit latency. Outbound bandwidth metering counts raw uncompressed JSON/CSV query response bytes against the database's configured monthly egress quota (priced at $0.08/GB in account plans).
HTTP Methods POST, GET, PUT Stateless REST Route Dispatch POST for metric, batch, and webhook writes, and analytical queries; GET for point reads, downsampled queries, catalog discovery, projections, and health probes; PUT for retention duration policies. The data plane is append-only by design: lifecycle management is automated declaratively via retention rules (TTL), while administrative database deletion and manual purge operations are managed via the web console.
// Architectural Design Principles: Wire Simplicity & Stateless Operations Stateless Design

TimesinkDB is engineered around pure REST/HTTPS and native JSON to deliver sub-millisecond execution without the operational friction of proprietary binary drivers or stateful connection pools:

Standard HTTPS & Native JSON

Stream metrics using standard fetch(), curl, or any HTTP client without vendor SDKs or compiled binary wire drivers.

Connectionless Serverless Execution

Stateless requests eliminate TCP socket exhaustion, pool starvation, and proxy layers (such as PgBouncer) in ephemeral serverless and edge runtimes.

Zero Schema & DDL Overhead

Telemetry and event series register dynamically on first write within your series quota. No migration scripts, no schema locks, and no DDL maintenance.

Constrained Hardware & IoT Native

Push lightweight readings directly from microcontrollers (ESP32) and IoT gateways over standard HTTPS without compiled protobuf bindings or gRPC stubs.

Read-Time Last-Write-Wins (LWW)

Monotonic LWW resolves network retries and duplicate webhook deliveries automatically on read, avoiding complex client-side deduplication logic.

Direct NVMe Columnar Layout

High-speed in-memory write buffer backed by direct I/O flushes, arranged in contiguous 16-byte columnar memory pages for AVX-512 SIMD vector downsampling.

1. Service Locations & Host Node Base URLs

TimesinkDB runs storage engines directly against local NVMe volumes in regional clusters (fra in Frankfurt, iad in N. Virginia, and nrt in Tokyo) for single-digit millisecond latency and strict data residency. When you create a database, the control plane assigns it to a numbered host node in your chosen region (e.g., fra1–fra4). Copy your database's assigned base URL from the management console once provisioned:

// Canonical Host Endpoint URL Anatomy
Standard HTTPS: https://{node}.timesinkdb.com/databases/{databaseId}/*
Hardware mTLS: https://{node}-cert.timesinkdb.com/databases/{databaseId}/*
Send requests directly to your database's assigned host node (e.g., fra1, iad1, or nrt1) for zero-hop ingestion and lowest query latency.
fra (Frankfurt)
Europe West
Location: Frankfurt, Germany (EU)
Host Nodes: fra1, fra2, fra3, fra4, ...
Example Base: https://fra1.timesinkdb.com
Example mTLS: https://fra1-cert.timesinkdb.com
iad (N. Virginia)
US East
Location: Northern Virginia, USA (US)
Host Nodes: iad1, iad2, iad3, iad4, ...
Example Base: https://iad1.timesinkdb.com
Example mTLS: https://iad1-cert.timesinkdb.com
nrt (Tokyo)
Asia Pacific
Location: Tokyo, Japan (APAC)
Host Nodes: nrt1, nrt2, nrt3, nrt4, ...
Example Base: https://nrt1.timesinkdb.com
Example mTLS: https://nrt1-cert.timesinkdb.com
// Dedicated Nodes & Custom Cloud Regions: Dedicated Node plans can be provisioned in additional global regions across North America, Europe, and Asia-Pacific with isolated host infrastructure, private VNet peering, and custom CNAME routing.

2. Authentication, Credentials & mTLS

TimesinkDB authenticates requests via Bearer tokens passed in the standard HTTP Authorization header (or query parameter for embeds), or via mutual TLS client certificates on dedicated mTLS hostnames:

// 1. Secret Ingestion Key (Database-Scoped or Account-Scoped)
Authorization: Bearer sec_live_09f4b7a7019842a... or Bearer sec_acc_81b3c...
Database-scoped keys (sec_live_...) authenticate against the target database in the URL. Account-scoped keys (sec_acc_...) permit access to any database owned by the customer account. Use exclusively in secure backend runtimes.
// 2. Database-Scoped Read-Only Token (Visual Embeds & Public Queries)
Authorization: Bearer tok_ro_81a4e2c079214b9... or ?token=tok_ro_81a4e2c...
Safe for browser iframe embeds and dashboards. Grants read-only access to queries, series catalogs, retention rules, and visual/data projections (.svg, .html, .json, .csv) on the target database while blocking all writes (403 Forbidden). See Scoped Read Tokens.
// 3. Zero-Secret Hardware mTLS (Dedicated Hostnames — Scale, Dedicated Node & Custom ≥$85/mo)
Endpoint: https://fra1-cert.timesinkdb.com/databases/{databaseId}/*
Hardware-bound client certificates registered with your database. Bypasses token rotation and bearer credential leaks for IoT gateways and microcontrollers.

3. Telemetry Metering & Capacity Pooling

TimesinkDB charges $0.00 in write API fees (no HTTP transaction fees, indexing surcharges, or request units). Subscriptions are billed strictly on your provisioned account plan (NVMe storage, monthly query egress, and parallel query workers), with deterministic byte accounting across storage and outbound queries:

// Storage & Egress Accounting Primitives
Consumed Storage Volume • Exact stored byte volume (16 bytes/point for numeric series; 16+N bytes for raw JSON events)
Outbound JSON Egress • Raw uncompressed response payload bytes counted against monthly database egress quota (0 bytes for SVG/HTML embeds)
Writing telemetry is 100% free ($0.00 API transaction fee). Real-time storage and egress consumption can be inspected at any time in the web management console.
// Deterministic Sizing Specifications: 16 Bytes per Point Predictable Metering

Deterministic 16-byte raw sizing allows you to calculate exact retention capacity upfront: 1 GB storage = 62,500,000 numeric points. Numeric telemetry is stored as fixed 16-byte records (8-byte timestamp + 8-byte IEEE 754 double) arranged in contiguous columnar pages with zero block-rounding padding. Raw JSON events (?mode=blob) store an 8-byte timestamp + 8-byte blob header + raw UTF-8 bytes (16 + N bytes).

Sample Cadence Points / Sensor / Day Points / Sensor / Month (30d) Storage / Sensor / Month 100 Sensors / Month
1 sample / 10 min 144 4,320 ~69 KB ~6.9 MB
1 sample / 1 min 1,440 43,200 ~691 KB ~69.1 MB
1 sample / 10 sec 8,640 259,200 ~4.15 MB ~415 MB
1 sample / 1 sec (1 Hz) 86,400 2,592,000 ~41.5 MB ~4.15 GB
10 samples / sec (10 Hz) 864,000 25,920,000 ~414.7 MB ~41.5 GB

4. Native HTTP Client Snippets

Zero Dependencies

TimesinkDB operates over standard HTTPS with pure UTF-8 JSON. Standard fetch() or any standard HTTP client is sufficient:

Production Runtime Quickstarts
interface QueryResponse {
  interval: string;
  timestamps: number[];
  results: Record<string, { values: (number | null)[] }>;
}

const TSDB_URL = "https://fra1.timesinkdb.com/databases/42";
const TSDB_TOKEN = process.env.TIMESINKDB_KEY;

// 1. Ingest numeric telemetry point (append ?mode=both to also store string fields as a raw JSON blob)
await fetch(`${TSDB_URL}/series/services.auth.login`, {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${TSDB_TOKEN}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ latency_ms: 14.8, status: 200 })
});

// 2. Query downsampled 1-hour average metrics
const res = await fetch(`${TSDB_URL}/query?seriesKey=services.auth.login.latency_ms&from=-24h&interval=1h&fn=avg`, {
  headers: { "Authorization": `Bearer ${TSDB_TOKEN}` }
});
const { timestamps, results } = (await res.json()) as QueryResponse;

5. Interactive API Request Simulator

Live Wire Preview

Test TimesinkDB HTTP requests directly in your browser. Inspect wire payloads, simulated response round-trips, and formatted JSON responses.

Request Configuration
POST https://fra1.timesinkdb.com/databases/42/ingest
Headers
Authorization: Bearer sec_live_09f4b7a7019842a...
Content-Type: application/json
JSON Payload Body
[
  {
    "seriesKey": "fleet.sensor-a.temp",
    "ts": 1788624900000,
    "value": 42.8
  },
  {
    "seriesKey": "fleet.sensor-b.speed",
    "ts": 1788624900000,
    "value": 88.5
  }
]
Simulated Wire Response
202 Accepted 0.4 ms
Response Headers
content-type: application/json; charset=utf-8
Response JSON Body
{
  "status": "accepted",
  "ingestedBytes": 32,
  "pointsIngested": 2
}

6. Public Data Plane Endpoints

REST Wire Catalog

Canonical REST/HTTPS endpoints for telemetry ingestion, historical range queries, downsampled analytics, and lifecycle retention rules. Protected via Bearer API secret keys or registered mTLS client certificates.

POST /databases/{databaseId}/series/{seriesKey}

High-performance scoped ingestion endpoint supporting versatile structured extraction and raw event storage modes:

  • extract (Default): Nested JSON numeric properties (and booleans stored as 1.0/0.0) are flattened up to 5 levels deep into dot-delimited columnar metric streams.
  • blob: Stores the entire raw UTF-8 JSON payload verbatim as an immutable event record under the series key.
  • blobArray: Treats the request body JSON array as multiple distinct blob events.
  • both: Dual persistence for JSON objects. Flattens numeric fields into dot-delimited child series ({seriesKey}.{prop}) while storing the raw JSON object as a blob series on the base {seriesKey} (or webhooks.{webhookKey}.blob on webhook endpoints).
  • bothArray: Applies dual persistence across a JSON array of objects, flattening numeric fields from each element into {seriesKey}.{prop} while storing each array element as a timestamped blob event on the base {seriesKey}.
Parameter In Type Description
databaseId Path integer Unique database identifier (e.g. 42).
seriesKey Path string Destination series key or namespace prefix up to 256 characters. Dots represent hierarchy.
mode Query string Ingestion mode: extract (default), blob, blobArray, both, or bothArray. See Webhook Playbooks for JSON event capture patterns.
ts Query string | int Optional explicit timestamp (Unix epoch seconds, milliseconds, microseconds, nanoseconds, or ISO-8601 / RFC 3339 UTC string), or a comma-separated list of ordered timestamps for blobArray / bothArray modes. Overrides payload timestamp fields; defaults to server UTC arrival time if omitted from both query and body.
tsProperty Query string Optional JSON property name or dot-separated path used to extract the record timestamp from the payload (default: ts; pass an empty value ?tsProperty= to disable payload timestamp inspection and use server UTC arrival time).
requireCommit Query boolean Optional (Pro+). When true, commits data synchronously to persistent NVMe via a coalesced group-commit window (<1.5s) before returning HTTP 200 OK. Default is 202 Accepted. See Serverless Playbook for durability patterns.
// Timestamp Auto-Detection & 100ns Storage Resolution

Incoming integer epoch timestamps are automatically normalized by magnitude: seconds (< 1010), milliseconds (< 1013), microseconds (< 1016), and nanoseconds (≥ 1016), alongside ISO-8601 / RFC 3339 UTC strings. Internally, the storage engine persists all timestamps as canonical 64-bit UTC ticks (100-nanosecond precision) and emits Unix epoch milliseconds in JSON query responses.

Request Payload
{
  "ts": "2026-09-05T16:15:00.000Z",
  "usage": 84.2,
  "core": {
    "temp": 68.4,
    "frequency": 3400
  }
}
Response (202 Accepted)
{
  "status": "accepted",
  "ingestedBytes": 48,
  "pointsIngested": 3
}
POST /databases/{databaseId}/ingest

High-throughput batch ingest endpoint for dispatchers, edge aggregators, and proxy workers. Accepts a top-level JSON array of envelope items without artificial object wrappers (up to 5,000 envelope items and 5,000 total decomposed points per request). Supports ?requireCommit=true (Pro+) for synchronous NVMe durability (200 OK, "status": "committed").

Envelope Field / Param In Type Description
seriesKey Body[] string Required target series key or namespace prefix (1..256 chars) for the batch item.
value Body[] number | bool | object | array Required telemetry payload for the item: scalar number/boolean, nested JSON object (flattened in extract/both modes), or JSON array (for blobArray/bothArray).
mode Body[] string Optional per-item ingestion mode: extract (default), blob, blobArray, both, or bothArray.
ts Body[] int | string | array Optional explicit timestamp (epoch ms/s or ISO-8601 UTC), or an array/comma-separated list of timestamps for array modes.
tsProperty Body[] string Optional custom JSON property/path inside value used to extract timestamps (default: ts).
requireCommit Query boolean Optional (Pro+). When true, flushes the entire batch to NVMe via a coalesced group-commit window (<1.5s) before returning HTTP 200 OK.
Compression Tip: High-volume batch streams can supply Content-Encoding: gzip, br, or zstd to compress request bodies by up to 85% on the wire with zero server configuration. Native Decompression
Batch Ingest Request Payload
[
  {
    "seriesKey": "fleet.sensor-a",
    "ts": 1788624900000,
    "value": { "temp": 21.8, "humidity": 45.2 }
  },
  {
    "seriesKey": "fleet.sensor-b",
    "ts": "2026-09-05T16:15:00Z",
    "value": { "temp": 23.1, "pressure": 101.3 }
  }
]
Standard Response (202 Accepted)
{
  "status": "accepted",
  "ingestedBytes": 64,
  "pointsIngested": 4
}
GUIDE

Series Keys, Escaping & Transport Safety

TimesinkDB dynamically accepts arbitrary JSON properties without pre-defining schemas, executing DDL migrations, or failing on unexpected keys. Upstream systems (IoT firmware, Kubernetes exporters, Stripe webhooks) never face rejection due to unconventional property naming.

Hierarchy Traversal vs. Literal Dot Escaping

In extract mode, unescaped dots (.) represent object depth hierarchy. Literal dots within property keys are escaped deterministically:

{"server": {"cpu": 80}} → server.cpu
{"network": {"eth0.1": 100}} → network.eth0\.1
Arbitrary Key Fidelity (Slashes, Spaces, Unicode)

Characters outside the standard metric set are preserved verbatim in the series catalog up to 256 characters:

{"disk/sda1": 45.2} → disk/sda1
{"sensors": {"room temp": 21.0}} → sensors.room temp
// Series Key Validation Rules

Resolved series keys must be 1..256 characters long, cannot start or end with whitespace or an unescaped dot (.), cannot contain consecutive unescaped dots (..) or ASCII control characters, and only permit \. and \\ as escape sequences. Avoid glob wildcard characters (* and ?) in series names, as /query and /series?pattern=... evaluate them as pattern wildcards. When a series key contains slashes (/) or reserved URL characters, read it via GET /databases/{databaseId}/series?key=....

POST /databases/{databaseId}/webhooks/{webhookKey}
View Webhook Playbooks →

Native webhook receiver that accepts raw HTTP webhook deliveries directly from third-party platforms (Stripe, GitHub, Shopify, Clerk) without intermediate verification functions or queues. TimesinkDB verifies HMAC signatures natively in the database API and handles duplicate deliveries at query time via monotonic Last-Write-Wins deduplication.

  • Named Webhook Configurations: The {webhookKey} path parameter matches a named webhook configuration registered on the database, encapsulating the provider preset, HMAC secret, authoritative tsProperty, storage mode, durability policy (requireCommit), and series namespace (webhooks.{webhookKey}.*).
  • Clean Ingestion URL: External webhook delivery services post directly to https://{node}.timesinkdb.com/databases/{id}/webhooks/{webhookKey} with no query parameters required. All parsing, mapping, and durability settings are enforced server-side.
  • Built-In Presets & Auto-Extraction: Presets natively verify platform signature headers (Stripe-Signature, X-Hub-Signature-256, X-Shopify-Hmac-Sha256, svix-signature). Once verified, payloads flow directly into the high-performance ingestion engine with automatic columnar series and/or blob extraction.
  • Configurable Durability (Synchronous NVMe Commit): When the named webhook configuration specifies "requireCommit": true (Pro+), the engine persists data synchronously to persistent NVMe before returning HTTP 200 OK. By default ("requireCommit": false), webhooks buffer in memory and return HTTP 202 Accepted with asynchronous NVMe persistence within 60s (30s background flush cycle, ≤60s RPO).
Parameter In Type Description
databaseId Path integer Unique database identifier (e.g. 42).
webhookKey Path string Unique named webhook configuration identifier registered on the database (e.g. stripe, github-deploy, shopify).
See the comprehensive Webhook Integration Guides for copy-paste integration recipes for Stripe MRR, GitHub CI runs and retry rates, Shopify GMV velocity, and custom HMAC signatures.
GET /databases/{databaseId}/series

Lists registered series keys and their assigned storage types for the database, or retrieves specific series data directly via the key query parameter.

Parameter In Type Description
pattern Query string Optional glob pattern filter (e.g. fleet.* or webhooks.stripe.*).
type Query string Optional series type filter: numeric or blob.
limit Query integer Maximum number of catalog entries to return (1..10000, default 1000).
key / seriesKey Query string Optional exact series key. When supplied, delegates directly to GET /databases/{databaseId}/series/{key} (and accepts from, to, limit, and direction; handy when keys contain reserved URL characters).
Response (200 OK)
{
  "count": 2,
  "maxSeries": 65000,
  "series": [
    { "seriesKey": "fleet.sensor-a.temp", "type": "numeric" },
    { "seriesKey": "fleet.audit.logs", "type": "blob" }
  ]
}
GET /databases/{databaseId}/series/{seriesKey}[.json|.svg|.html|.csv]

Canonical endpoint for raw stream retrieval and multi-representation projections. Direct reads bypass analytical SIMD downsampling pipelines, providing sub-millisecond access directly from active memory pointers:

  • O(1) Latest Tail Access (Default when from is omitted): Returns the most recent scalar point ("value") or JSON event ("value") in <1ms without disk scanning. Ideal for live dashboard cards, IoT status gauges, and health checks without an intermediate Redis cache.
  • Chronological Range Query (When from is specified): Sequentially streams raw historical records over [from, to] without mathematical downsampling ("points" array for numeric series; "events" array of {"ts", "value"} for blob series).
  • Multi-Representation Projections: Append .svg, .html, .csv, or .json to render server-side visualizations or CSV exports on the fly (for .svg and .html, from defaults to -1h, interval to auto, and fn to avg; also accepts fill, theme, chart / type [line, area, bar, step], color, width [100..3840], height [60..2160], title, and token).
Parameter In Type Description
from Query string | int Optional start boundary (relative e.g. -1h, -7d, ISO-8601 UTC, or Unix epoch ms/s). When omitted on .json, executes O(1) latest point lookup.
to Query string | int Optional end boundary (default: now).
limit Query integer Maximum records returned for historical range queries (1..10000, default 100).
direction Query string Sort order for historical range queries: desc (newest first, default) or asc (oldest first).
O(1) Latest Point (GET /databases/42/series/{key})
{
  "seriesKey": "fleet.sensor-a.temp",
  "type": "numeric",
  "ts": 1788624900000,
  "value": 21.8
}
Historical Range (GET /databases/42/series/{key}?from=-1h)
{
  "seriesKey": "fleet.sensor-a.temp",
  "count": 2,
  "points": [
    { "ts": 1788624900000, "value": 21.8 },
    { "ts": 1788621300000, "value": 21.2 }
  ]
}
POST | GET /databases/{databaseId}/query

Executes hardware-accelerated downsampling and multi-series aggregations across raw points (up to 16 sub-queries per request and 10,000 time buckets per query across up to 65,000 resolved series), with automatic deduplication over matching series chunks. Supports adaptive bucket sizing (interval=auto), configurable gap-filling (fill), wildcard glob patterns (fleet.*.temp), and 12 built-in read-time aggregation functions including arbitrary percentiles (p<N>)—see the parameter reference table below.

Query Body (POST)
{
  "range": { "from": "-1h", "to": "now" },
  "interval": "15m",
  "fill": "previous",
  "queries": [
    {
      "id": "q1",
      "seriesKey": "fleet.*.temp.celsius",
      "fn": "avg"
    }
  ]
}
Downsampled Response (200 OK)
{
  "interval": "15m",
  "timestamps": [
    1788620400000,
    1788621300000
  ],
  "results": {
    "q1": {
      "values": [23.4, 24.1]
    }
  }
}
Ergonomic GET Query Format
GET /databases/42/query?seriesKey=fleet.*.temp.celsius&from=-1h&to=now&interval=15m&fn=p99&fill=0
POST Field / GET Param Type & Default Description
range.from / from string | int64 (required) Inclusive window start: relative duration (-15m, -1h, -24h, -7d), ISO-8601 string, or Unix epoch milliseconds.
range.to / to string | int64 (now) Inclusive window end: now, ISO-8601 string, or Unix epoch milliseconds.
interval string (1m / auto) Downsampling bucket width (1s, 10s, 1m, 5m, 15m, 1h, 1d, or auto for ~120 visual buckets; max 10,000 buckets).
fill string | number (none) Empty bucket strategy: none (default, omits empty buckets), null (emits all buckets across [from, to] with null), previous (LOCF), or any numeric constant (e.g. 0).
queries[].id string (q1) Caller-defined identifier keying the corresponding result entry in results (up to 16 entries in queries[]).
queries[].seriesKey / seriesKey / q string (required) Exact series key, wildcard glob pattern (* and ?, e.g. fleet.*.temp.celsius), or comma-separated series list (up to 16 on GET /query[.json|.svg|.html|.csv]).
queries[].field string (optional) Optional sub-property suffix appended to seriesKey when querying decomposed JSON object trees.
queries[].fn / fn string (avg) avg, sum, min, max, count, first, last, delta, rate, integral, timeweightedavg, or p<N>.
POST | GET /databases/{databaseId}/query[.json|.svg|.html|.csv]
View Visual Embeds Guide →

Analytical queries (GET query parameters or POST multi-metric JSON request bodies) can be projected directly into server-rendered visualizations or tabular export streams for Notion, GitHub READMEs, internal admin dashboards, and spreadsheet workflows.

Extension Content-Type Description
.svg image/svg+xml Clean vector chart. Parameters: from, to, interval (auto), fn (p<N>), fill, theme, chart / type, color, width, height, title, token. $0 egress.
.html text/html Self-contained responsive HTML iframe widget with interactive hover tooltips and dynamic metric stats. $0 egress.
.csv text/csv RFC 4180 comma-separated values stream for spreadsheet import and BI tools.
.json application/json Standard structured downsampling result.
GET | PUT /databases/{databaseId}/retention/rules

Inspects (GET) or configures (PUT) granular retention lifetimes per series pattern at day granularity (1d to 65534d, or indefinite; e.g. 30d, 365d). Default infinite retention preserves telemetry indefinitely until overridden by explicit pattern rules or administrative purge. Configuring rules via PUT updates pattern definitions immediately (HTTP 200 OK), triggers an immediate background purge of already-expired data, and evaluates daily in the background.

Configure Rule Request (PUT) / Response (200 OK)
{
  "rules": [
    { "pattern": "fleet.ephemeral.*", "retention": "30d" },
    { "pattern": "fleet.audit.*", "retention": "365d" }
  ]
}
GET

Regional Health & Latency Probes

Unauthenticated

Unauthenticated regional endpoints for customer uptime monitors, edge health checks, and network latency measurement:

  • GET /healthz: Regional liveness probe returning 200 OK when the regional endpoint is active.
  • GET /ready: Readiness probe returning 200 OK when the regional node is accepting requests (or 503 during maintenance drain).
  • GET /ping: Zero-overhead latency probe returning plain text pong for round-trip time (RTT) checks.
CONTROL PLANE

7. Control Plane & Web Console

TimesinkDB strictly isolates the administrative control plane from data-plane ingestion and query execution. Database lifecycle, capacity allocation across environments, and credential management are handled at the account level.

// Web Management Console Overview Account Governance & Multi-DB

The TimesinkDB web console provides self-serve management for account capacity and multi-database configurations. Key console capabilities include:

Database Provisioning

Deploy isolated databases in chosen geographic regions (Frankfurt, Virginia, Tokyo) with single-click provisioning.

Capacity Slicing (Pro, Scale, Dedicated & Custom ≥$35)

Dynamically carve pooled account NVMe storage, egress, and query workers across production, staging, and preview databases.

Credentials, Webhooks & Lifecycle

Rotate API secret keys, issue scoped read-only embed tokens, register named webhook configurations (webhookKey HMAC secrets), bind hardware mTLS certificates, configure IP allowlists, and execute administrative data purges (GDPR Art. 17 erasure).

LIMITS

8. Service Quotas & Enforced Limits

Service quotas, payload boundaries, and enforced operational limits:

Boundary Limit Behavior When Exceeded
Max Single Write Payload 10 MB Rejects immediately with HTTP 413 Payload Too Large (PayloadTooLarge).
Batch Ingest Envelope Limit 5,000 items / points Capped at 5,000 array items and 5,000 total decomposed points per batch HTTP POST (/ingest).
Analytical Query Fan-Out 16 queries / 10,000 buckets POST /query supports up to 16 sub-queries per request and 10,000 buckets per query across up to 65,000 resolved series.
Series Catalog Quota 65,000 series / DB Points and events appended to each named series are unlimited up to provisioned storage capacity (1,000 series on Free Sandbox; scales across multi-database accounts).
JSON Decomposition Depth 5 levels In extract / both modes, flattens up to 5 nested object levels into metric streams; deeper nesting rejects with 400 Bad Request (InvalidPayload — use ?mode=blob for deeply nested JSON).
Query Execution Timeout 4,000 ms Analytical scans exceeding 4.0 seconds return HTTP 408 QueryTimeoutExceeded.
Storage Quota Cap (Spend Cap / Auto-Expand) 100% Provisioned
Strict Spend Cap (Default): Rejects writes with 422 StorageQuotaExceeded (alerts at 80% & 90%) while reads and visual embeds continue with 0% downtime.
Elastic Auto-Expand (Optional): First allocates remaining unallocated account storage ($0), then expands account storage in +20 GB increments.
Egress Quota Cap (Spend Cap / Auto-Expand) 100% Provisioned
Strict Spend Cap (Default): Pauses raw programmatic .json / .csv query responses with 422 EgressQuotaExceeded (alerts at 80% & 90%) while ingestion (POST) and $0 fair-use .svg / .html visual embeds continue uninterrupted.
Elastic Auto-Expand (Optional): First allocates remaining unallocated account egress ($0), then expands account egress in +25 GB/mo increments ($2.00/mo).
PLANS

9. Plan Architectural Tiers & Technical Capabilities

Technical comparison of concurrency gates, persistence modes, network isolation, and feature availability. For commercial pricing, refer to the Pricing Catalog.

Technical Dimension Free Sandbox Starter Pro Scale Dedicated Node
Database Topology 1 Sandbox DB (Shared) 1 Dedicated DB Multi-DB (Up to 6 DBs) Multi-DB (Up to 12 DBs) Multi-DB (Unlimited DBs)
Active Series Catalog Quota 1,000 series 65,000 series 65,000 / DB (up to 390k total) 65,000 / DB (up to 780k total) 65,000 / DB (Unlimited total)
Parallel Query Workers (Account Pool) 1 Query Worker 4 Query Workers 12 Query Workers 24 Query Workers Uncapped (Dedicated CPU • optional per-DB caps)
Ingestion Durability Modes Asynchronous Ingest (202 Accepted, 30s flush cycle / ≤60s RPO) Asynchronous Ingest (202 Accepted, 30s flush cycle / ≤60s RPO) Asynchronous Ingest (202 Accepted) + Synchronous Commit (200 OK via ?requireCommit=true) Asynchronous Ingest (202 Accepted) + Synchronous Commit (200 OK via ?requireCommit=true) Asynchronous Ingest (202 Accepted) + Synchronous Commit (200 OK via ?requireCommit=true)
Authentication Schemes Secret API Key, Read-Only Token Secret API Key, Read-Only Token API Key, Account Key, Read Token API/Account Keys + Hardware mTLS Certs API/Account Keys + Hardware mTLS Certs
Visual Embeds (.html, .svg) Attributed ("Powered by") + Themes/Colors Attributed ("Powered by") + Themes/Colors Whitelabel (No watermark) + Themes/Colors Whitelabel + Custom CNAME Full Whitelabel + Custom Hostname

Custom Plan Tier Mapping: Custom plans unlock capabilities based on monthly commitment ($10–$34.99/mo = Starter single-DB capabilities; ≥$35/mo = Pro Multi-DB pooling, synchronous ?requireCommit=true & watermark-free whitelabeling; ≥$85/mo = Scale hardware mTLS, IP allowlists & custom CNAME domains).

10. Error Codes & RFC 7807 Problem Details

All error responses follow the standard RFC 7807 problem details specification (application/problem+json) with machine-readable type, title, status, detail, and code fields.

Status Code Name Condition
400 Bad Request InvalidPayload Payload failed JSON parsing, exceeded 5-level object decomposition depth, or contained malformed series keys, webhook headers, data types, or query parameters.
401 Unauthorized InvalidToken / InvalidSignature / ExpiredSignature Bearer token or mTLS client certificate is missing/invalid (InvalidToken), or webhook signature header is missing, failed HMAC verification, or exceeded the 5-minute replay tolerance (InvalidSignature, ExpiredSignature).
402 Payment Required PaymentRequired Account billing subscription is past due or suspended.
403 Forbidden Forbidden / FeatureNotPermitted / IpNotAllowed / DatabaseSuspended Database-scoped key used against a different database (Forbidden), write attempted with a read-only token, webhook endpoint is inactive, or plan tier does not permit the requested feature such as ?requireCommit=true (FeatureNotPermitted), client IP is outside the database CIDR allowlist (IpNotAllowed), or the database is suspended (DatabaseSuspended).
404 Not Found NotFound The requested database, series key, webhook key, or administrative resource was not found.
408 Request Timeout QueryTimeoutExceeded Analytical query took longer than the hard limit of 4.0 seconds. Shorten the range or increase the interval.
413 Payload Too Large PayloadTooLarge Ingestion payload size exceeded the 10 MB limit.
422 Unprocessable SeriesQuotaExceeded Database exceeded maximum registered series quota (65,000 series per database; 1,000 on Sandbox).
422 Unprocessable StorageQuotaExceeded Configured database reached 100% of provisioned storage under Strict Spend Cap mode (when Elastic Auto-Expand is not enabled). Read queries and visual embeds continue uninterrupted.
422 Unprocessable EgressQuotaExceeded Configured database reached 100% of its monthly JSON/CSV API egress quota under Strict Spend Cap mode (when Elastic Auto-Expand is not enabled). Telemetry ingestion (POST) and $0 fair-use .svg / .html visual embeds continue uninterrupted.
422 Unprocessable TypeMismatch Series data type conflicts with existing registered series schema (numeric vs blob).
503 Service Unavailable MaintenanceBusy / InternalError Database storage engine is busy executing an administrative maintenance operation (MaintenanceBusy) or the node is temporarily unavailable.
Launching October 29, 2026

Ready to integrate with the TimesinkDB REST API? 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.