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:
| Header | Type | Description |
|---|---|---|
X-RateLimit-Limit | integer | Maximum requests permitted in the active 60-second window. |
X-RateLimit-Remaining | integer | Remaining requests before throttling (429) occurs. |
X-RateLimit-Reset | epoch | UTC 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.
| Parameter | Required | Description |
|---|---|---|
expr | Yes | Metric selector and aggregation function, e.g. avg:system.cpu.utilization{region:us-west-2}. |
from | Yes | Start timestamp (ISO-8601 or Unix epoch seconds). |
to | Yes | End timestamp (must be greater than from). |
step | No | Resolution 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 Status | Code | Resolution |
|---|---|---|
400 | invalid_argument | Verify JSON schema, metric name syntax, and timestamp bounds. |
401 | unauthenticated | Supply a valid Bearer token in the Authorization header. |
403 | insufficient_scope | Ensure the token holds metrics:write or metrics:read scope. |
429 | rate_limit_exceeded | Back off exponentially and honor the Retry-After header. |