Overview
EdgeStream provides a low-latency HTTP/2 & HTTP/3 bidirectional telemetry ingestion and event-streaming gateway. All production requests must be sent over TLS 1.3 using the regional endpoint https://app.wangyebao.top.
Authentication
Authenticate requests using a signed bearer token in the Authorization header. Tokens expire after 3600 seconds and should be rotated automatically by your SDK.
curl -X POST https://app.wangyebao.top/api/v2/telemetry/ingest \
-H "Authorization: Bearer <access_token>" \
-H "Content-Type: application/json" \
-d '{"region":"us-west-2","sample_rate":1.0}'
Streaming Endpoints
POST /api/v2/stream/{channel_id}
Opens a multiplexed chunked stream for real-time binary telemetry frames. Intermediary proxies must disable response buffering to preserve sub-50ms frame delivery.
import httpx
with httpx.Client(http2=True) as client:
resp = client.get("https://app.wangyebao.top/healthz")
print(resp.status_code, resp.http_version)
Status Codes
| Code | Meaning | Resolution |
|---|---|---|
200 OK | Stream established or payload accepted | No action required |
401 Unauthorized | Missing or expired bearer token | Refresh token via OAuth endpoint |
429 Too Many Requests | Per-IP burst quota exceeded | Apply exponential backoff with jitter |
503 Service Unavailable | Upstream worker draining | Retry on secondary edge PoP |
Rate Limits
Default tenant quotas allow 2,500 requests/second sustained with 10,000 concurrent HTTP/2 streams per edge node. Contact platform engineering to request quota increases.