PulseMetrics Docs API v2.4

PulseMetrics Telemetry API

Programmatic REST interface for ingesting dimensional metrics, querying aggregated rollups, and managing alert routing across distributed workloads.

All API requests must be made over HTTPS (TLS 1.2 or TLS 1.3). Plaintext HTTP requests are redirected and unauthenticated payloads are rejected with 401 Unauthorized.

Base URL & Versioning

The stable v2 API is served from the regional gateway endpoint below. Payloads are encoded as UTF-8 JSON with Content-Type: application/json.

HTTPS Endpoint
https://docs.814841.xyz/v2

Rate Limits

Standard workspace keys allow up to 1,200 write requests and 600 query requests per minute. Every response includes quota headers:

HeaderTypeDescription
X-RateLimit-LimitintegerMaximum requests permitted in the active 60-second window.
X-RateLimit-RemainingintegerRemaining requests before throttling (429) occurs.
X-RateLimit-ResetepochUTC Unix timestamp when the active window resets.

Ingest Dimensional Metrics

POST/v2/metrics/series

Submits one or more time-series samples tagged with host, region, and service labels.

cURL Example
curl -X POST "https://docs.814841.xyz/v2/metrics/series" \
  -H "Authorization: Bearer pm_live_98a7bc41e02f" \
  -H "Content-Type: application/json" \
  -d '{
    "series": [
      {
        "metric": "system.cpu.utilization",
        "timestamp": 1764134400,
        "value": 0.42,
        "tags": { "region": "us-west-2", "role": "edge-worker" }
      }
    ]
  }'
202 Accepted Response
{
  "status": "accepted",
  "ingested_points": 1,
  "request_id": "req_01JDP8M4V9K2Z8R7"
}

Query Time-Series Rollups

GET/v2/metrics/query

Evaluates an aggregation query across a bounded time range with configurable rollup intervals.

ParameterRequiredDescription
exprYesMetric selector and aggregation function, e.g. avg:system.cpu.utilization{region:us-west-2}.
fromYesStart timestamp (ISO-8601 or Unix epoch seconds).
toYesEnd timestamp (must be greater than from).
stepNoResolution bucket (10s, 1m, 5m, 1h). Defaults to 1m.
Python SDK Example
import httpx

resp = httpx.get(
    "https://docs.814841.xyz/v2/metrics/query",
    headers={"Authorization": "Bearer pm_live_98a7bc41e02f"},
    params={
        "expr": "avg:system.cpu.utilization{role:edge-worker}",
        "from": "2026-11-26T00:00:00Z",
        "to": "2026-11-26T01:00:00Z",
        "step": "1m",
    },
    timeout=10.0,
)
print(resp.json())

Cluster Health Check

GET/v2/clusters/{cluster_id}/health

Returns shard replication lag, active ingestion pipelines, and quorum status for a dedicated telemetry cluster.

Standard Error Codes

HTTP StatusCodeResolution
400invalid_argumentVerify JSON schema, metric name syntax, and timestamp bounds.
401unauthenticatedSupply a valid Bearer token in the Authorization header.
403insufficient_scopeEnsure the token holds metrics:write or metrics:read scope.
429rate_limit_exceededBack off exponentially and honor the Retry-After header.